Skip to content

feat(mcp): allow requiring projectPath#1006

Open
jiangyq9 wants to merge 1 commit into
colbymchenry:mainfrom
jiangyq9:feat/require-project-path-env
Open

feat(mcp): allow requiring projectPath#1006
jiangyq9 wants to merge 1 commit into
colbymchenry:mainfrom
jiangyq9:feat/require-project-path-env

Conversation

@jiangyq9

Copy link
Copy Markdown

Summary

  • add CODEGRAPH_MCP_REQUIRE_PROJECT_PATH=true to require explicit project paths in MCP calls
  • reflect that requirement in exposed tool schemas so clients see projectPath as required
  • reject calls that omit projectPath while the env var is enabled

Fixes #993.

Testing

  • pnpm exec vitest run __tests__/mcp-tool-allowlist.test.ts
  • pnpm exec tsc --noEmit

@jiangyq9 jiangyq9 force-pushed the feat/require-project-path-env branch from 1f01116 to 37750ee Compare June 27, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent omits projectPath by default

1 participant