Repository navigation
Conversation
…recated clawdcursor mcp and clawdcursor agent now serve the 6 compound tools with no flag. The plugin, the .mcpb and every config in the README already passed --compact, so for them nothing changes. --compact and CLAWD_MCP_COMPACT=1 are still accepted. The 90 granular tools need --granular or CLAWD_MCP_GRANULAR=1, and print a deprecation line on stderr. This is step 1 of making compact the only public surface: once granular has shipped deprecated for a release, a major release can drop it from MCP and the projection layer that exists to publish it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BKm7nbpP8aK35EfAYVt7NL
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Amr · project thread
Summary
This is step 1 of making the compact surface the only public one. This is 4 of 5 separate simplification PRs.
clawdcursor mcpandclawdcursor agentnow serve the 6 compound tools when no flag is given. The 90 granular tools need--granularorCLAWD_MCP_GRANULAR=1, and print a deprecation line on stderr.--compactandCLAWD_MCP_COMPACT=1are still accepted, so existing configs keep working.The plugin, the
.mcpband every config in the README already pass--compact, so nothing changes for them. Only someone runningmcporagentwith no flag who relies on granular tool names is affected.Why only step 1: the real simplification is deleting granular from the MCP surface, plus the
projected/layer (tools.ts,project-mcp.ts,tool-meta.ts, about 2.6k lines) that exists to publish it. That change breaks anyone on granular, so it belongs in a major release after one release of this deprecation. I can open that PR whenever you want it.Changes
src/surface/serve.ts:pickCompact(flags, env)picks the surface: compact unless--granularorCLAWD_MCP_GRANULAR=1.GRANULAR_DEPRECATIONis printed on stderr for both stdio and HTTP.src/surface/cli.ts:--granularis added tomcp,agentandstart.--compacthelp text says it's the default.src/__tests__/surface-default.test.ts: new tests for the selection rules.README.md,docs/llms.txtand thecompact.tsheader no longer say granular is the default.Our rule is that only you change existing SKILL.md text. After this PR, these lines are wrong:
--granular)"name": "open_app"is a granular name. On a default daemon it's nowwindowwith{"action":"open_app","name":"Notepad"}.Test plan
typecheck:testsand lint: clean (0 errors)vitest --project unit: 4116 passed, 6 skipped. That's 4111 plus the 5 new tests.npm run test:mcp-schema-snapshot: OK, no change (it builds both surfaces explicitly)mcpandmcp --compactlist 6 tools.mcp --granularandCLAWD_MCP_GRANULAR=1 mcplist 90 tools, andget_screen_sizeworks.agent --acceptserves the 6 tools at/mcp.Risk / scope
cursor_position,minimize_window,logs_recent,submit_report,resume_task,screenshot_full,verifyand granularbatch. Default users lose direct access to them, the same as plugin users today. Before step 2, each one needs a compound action or a decision to drop it.Generated by Claude Code