Repository navigation
feat(mcp): add list_skills and get_skill to the agent gateway - #5208
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Selected evidence: Passed · 1/1 tests · 3/3 assertions · 4 images Commit |
Skills on /mcp/agent were only reachable through search_capabilities (type skills) followed by execute_capability on an opaque plugin:/skill: name, so agents guessed keywords or skipped org skills entirely. Register two read-only tools next to the routing pair: list_skills returns every built-in and marketplace skill the member may use (optional query and limit), and get_skill returns one skill's SKILL.md by name or exact capability with the same framing as the skill:// resource. The catalog is resolved once per request and only by the methods that need it. The server instructions and tool descriptions point at the direct path; search and execute keep working for skills. Desktop: the agent prompt, on-demand steering, remote skill catalog instruction, and the composer connect-skill prompt now name get_skill first with execute_capability as the fallback for gateways that do not expose it. The routing sentence is a shared constant so the v2 native-skill swap can no longer drift from it. Analytics and error attribution count the new tools as Cloud skill tools. The evals mock Cloud advertises and serves both tools; Connect docs describe them. Linear: ENG-244
Extend the grant-native skill boundary journey so the creator lists the new skill and reads it by capability and by name through the direct tools, the denied member neither lists it nor reads it (unknown_skill), and sharing the plugin makes both work. Same Den, same tokens, same framing as the skill:// resource. Linear: ENG-244
…d get_skill The preseeded Connect journey is where the desktop agent uses an assigned organization skill. Its scripted model now takes the path the desktop prompt recommends: list_skills narrows the catalog to the assigned skill, get_skill reads it by the returned capability, and the transcript shows the skill's unique phrase. The journey also proves the direct tools over the gateway next to the existing search/execute check, and captures the composer before the prompt and the answer after it. The mock model server learns a "skill-list" argument source that hands the single listed capability to the next tool, mirroring "capability-search". Linear: ENG-244
…oss-origin redirect On a split local Den, den-web answers /api/den/* with a 307 to den-api on another origin, and fetch drops Authorization on cross-origin redirects, so every bearer call through the fault proxy came back 401 and proxy-shaped desktop journeys could not even sign the desktop in (local lane and the CI proof lane alike). The local proxy now sends /api/den/* straight to den-api with the prefix stripped, keeping the original path in its request log so token-path assertions are unchanged. A single-origin Den, as the Daytona remote and the existing unit test present, is forwarded as before. Linear: ENG-244
efce5ad to
de3ef95
Compare
|
Local run of Before — the signed-in desktop composer, with the organization skill assigned and the fixture model selected: After — the agent calls CI's evidence comment above holds the same run from the PR head with all four images. |


What is this about?
The OpenWork MCP gateway (
/mcp/agent) gets two direct, read-only skill tools:list_skillsreturns every built-in and marketplace skill the member may use, andget_skillreturns one skill's SKILL.md by its name or exact capability. The desktop prompts, the Connect skill docs, and the evals mock Cloud now point at them.What problem does it solve?
Reaching a skill through the gateway meant guessing keywords for
search_capabilities, filtering bytype: skills, then executing an opaqueplugin:…orskill:…name. Models skipped that dance or got it wrong, so org skills went unused. Now an agent can ask "what skills do I have?" and "give me this one" with no keywords and no indirection.What was the situation before?
An agent in Codex, Claude Code, or Cursor connected to OpenWork saw only
search_capabilitiesandexecute_capability. Listing all skills required a keyword search that only returned the closest few matches, and reading one required executing a capability whose name the agent had to discover first.search_capabilitiesandexecute_capabilitystill work for skills exactly as before; theskill://resources are unchanged.Evidence
evals/specs/connect-readiness-preseeded.e2e.test.ts— before: the signed-in desktop composer, ready to send a request for the assigned organization skill; after: the answer shows the skill's unique phrase, reached throughlist_skillsthenget_skillwith no keyword search.evals/specs/skill-grant-access.test.ts— before: a member can only reach a skill by searching for its capability and executing it; after:list_skillslists it with its plugin source,get_skillreturns the same SKILL.md by capability or name, a member without a grant getsunknown_skill, and sharing the plugin makes both work.Unit:
ee/apps/den-api/test/mcp-skill-tools.test.tsandtest/agent-codemode-script.test.tscover the tool contract and registration;apps/serverprompt tests andevals/packages/labs/test/mock-cloud-skills.test.tspin the updated wording and mock tools.Linear: ENG-244