Repository navigation
fix(core): canonical verb-first MCP tool vocabulary with legacy aliases (#590) - #633
Merged
Merged
Conversation
…es (#590) Implements the remainder of #590 (protocol negotiation already landed in #602): rename ambiguous/inconsistent MCP tool names to a verb-first vocabulary (capabilities->list_capabilities, import_preview->preview_import, export_preview->preview_export, recipes_list->list_recipes, recipes_show->get_recipe, review_project->review, matching CLI `urlcode review`), keeping every pre-#590 name working as a deprecated alias with its own "Deprecated alias for ..." description in tools/list. Fix the `target` ambiguity (a route path in `explain` vs. a deployment target elsewhere) by introducing `deployTarget` as the canonical argument on inspect, list_capabilities, get_context, plan_feature and review, with the old `target` argument still accepted (deprecated) on those tools. get_context is now first in tools/list, matching its documented role as the first call. Every successful tools/call reply also carries structuredContent mirroring the JSON already in its text content. Add a read-only run_tests tool that runs tests/requests.json fixtures the way `urlcode test` does, reusing runProjectTests against a disposable server/data directory; it never writes a project file. list_skills/get_skill now return the real canonical inventory of all three shipped skills (skills/urlcode, .claude/skills/urlcode-authoring, .claude/skills/urlcode-operations) with each skill's own SKILL.md frontmatter description, read at call time so the inventory cannot drift from the skill it describes. Align llms.txt's skill list and llms-full.txt guidance (reconciled to: search_docs/get_context first, llms-full.txt only as a by-heading fallback, never a whole-file read or grep) accordingly, and update docs/TOOLING.md and docs/RECIPES.md to the canonical names and alias/ structuredContent/run_tests behavior. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 24, 2026
jimhoyd
added a commit
that referenced
this pull request
Sep 24, 2026
…agent-context.ts (#648) skills.ts's listShippedSkills (added in #627 for #574) and agent-context.ts's listSkills/getSkill (added in #633 for #590) each maintained their own copy of the same {name, file} triples for the three shipped SKILL.md files. Move that list into a new packages/core/src/shipped-skills.ts and have both modules import it, so a renamed, moved, or added skill only needs to change in one place. Neither module's public return shape or behavior changes. Closes #639 Co-authored-by: Claude Sonnet 5 <[email protected]>
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.
Summary
Implements the remainder of #590 (protocol negotiation already landed in #602 and is not touched here).
capabilities→list_capabilities,import_preview→preview_import,export_preview→preview_export,recipes_list→list_recipes,recipes_show→get_recipe,review_project→review(matching the CLI'surlcode review). Every old name still appears intools/listand still works — same schema, same handler — with its own"Deprecated alias for ..."description.targetambiguity.explain'starget(a route path) is unrelated to the deployment-target sense used byinspect,capabilities,get_context,plan_featureandreview. Those five tools now accept the canonicaldeployTarget(self-hosted/cloudflare/aws/vercel/static); their oldtargetargument still works but is marked deprecated in its description.get_contextis first intools/list, matching its documented role as the first call.structuredContentnow accompanies the existing text content on every successfultools/callreply whose result is a JSON object (per the MCPstructuredContentshape — an object, not a bare array/scalar).run_teststool. Runstests/requests.jsonfixtures the wayurlcode testdoes, reusingrunProjectTestsagainst a disposable local server/data directory. It never writes a project file.list_skills/get_skillnow return all three shipped skills (skills/urlcode,.claude/skills/urlcode-authoring,.claude/skills/urlcode-operations), each with the realdescription:read live from its ownSKILL.mdfrontmatter (previouslylist_skillsreturned onlyurlcodewith a hand-written, drifted description).llms.txt's skill list now includes all three.llms-full.txtguidance. One consistent rule everywhere:get_context/capabilities/search_docs/search_recipesanswer routine questions;llms-full.txtis a deliberate fallback, located by heading, never opened or grepped whole.docs/TOOLING.mdanddocs/RECIPES.mdupdated to the canonical names, alias behavior,deployTarget,structuredContentandrun_tests.Design decisions
list_x,get_x,search_x,preview_x,run_x), matching the majority of the pre-existing surface (search_recipes,list_skills,get_example, …) rather than inventing a new convention.tools/calldispatch (aliasOf[name] ?? name), so every handler is written only once against its canonical name. Alias tool listings are derived mechanically from the canonicaldefinitionsarray (alegacy:field) rather than hand-duplicated, so the two can't drift apart.deployTargetvstarget: rather than a hard rename (which would break existing callers ofinspect/capabilities/get_context/plan_feature/review_projectsince those tool names are otherwise unchanged), both argument names are accepted for one release;deployTargetwins if both are present.run_testsis read-only in the sense the issue asked for: it never writes a project file. It does start a real disposable local server (likeurlcode test), so a fixture with a granted proxy/signal binding can still perform a real outbound call — same as the CLI. No--policysupport exists on the MCP server today, so bindings needing an operator grant simply fail closed, same as other MCP tools.Check status
npm run typecheck— cleannpm run lint— cleannpm run check:code— cleannpm run check:docs(trust-model prose, version statements, local links, guidance-claims, agent-facts — the tool-count check specifically — YAML reference, llms-full.txt, cookbook index, Claude plugin generation) — cleantest/mcp.test.ts,test/mcp-authoring.test.ts— all pass, including new tests for: alias tool-name and alias-argument equivalence,get_contextordering,run_tests(read-only + correct fixture results),structuredContentpresence, and the full three-skill inventorynpm run test:package— clean (packed tarball install + starter/cookbook smoke)npm run test— ran under heavy sandbox load; the only failures were pre-existing, unrelated timing-sensitive tests (test/cli.test.ts's secret-argument spawn test,test/verify-deployment.test.ts's wall-clock deadline tests, a ReDoS-bound timing test) that reproduce onorigin/mainunder the same load and pass in isolation — none touch MCP, agent-context or skills codeWhat's left
Nothing scoped out. Per the triage decision this PR covers everything except protocol negotiation (#602, already merged).
structuredContentis added for every read tool whose result is already a JSON object, which is effectively all of them except the handful returning a bare array (list_recipes,list_skills, etc. — their text content is unchanged and still fully usable).Closes #590
🤖 Generated with Claude Code