feat(server): add read-only mode enforcement and execution guard tests

This commit is contained in:
Lucas Winther
2026-09-06 19:14:25 +02:00
parent d49e0fc881
commit af2a8f3af8
2 changed files with 287 additions and 2 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ export function createServer(config: AppConfig): OpenProjectMcpServer {
if (config.readOnly && !tool.readOnly) {
return formatToolError(
new OpenProjectError(
"SERVER_READ_ONLY",
"Operation rejected. OpenProject MCP server is running in read-only mode."
"Operation rejected. OpenProject MCP server is running in read-only mode.",
{ code: "SERVER_READ_ONLY" }
)
);
}