Skip to content

feat(mcp): add list_skills and get_skill to the agent gateway - #5208

Merged
benjaminshafii merged 4 commits into
devfrom
feature/skill-list-get-mcp-tools
Sep 22, 2026
Merged

benjaminshafii merged 4 commits into
devfrom
feature/skill-list-get-mcp-tools

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

What is this about?

The OpenWork MCP gateway (/mcp/agent) gets two direct, read-only skill tools: list_skills returns every built-in and marketplace skill the member may use, and get_skill returns 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 by type: skills, then executing an opaque plugin:… or skill:… 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_capabilities and execute_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_capabilities and execute_capability still work for skills exactly as before; the skill:// 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 through list_skills then get_skill with 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_skills lists it with its plugin source, get_skill returns the same SKILL.md by capability or name, a member without a grant gets unknown_skill, and sharing the plugin makes both work.

Unit: ee/apps/den-api/test/mcp-skill-tools.test.ts and test/agent-codemode-script.test.ts cover the tool contract and registration; apps/server prompt tests and evals/packages/labs/test/mock-cloud-skills.test.ts pin the updated wording and mock tools.

Linear: ENG-244

@reachjalil
reachjalil requested a review from a team September 22, 2026 00:27
@vercel

vercel Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 22, 2026 1:13am UTC
openwork-den Ready Ready Preview Sep 22, 2026 1:13am UTC
openwork-diagnostics Ready Ready Preview Sep 22, 2026 1:13am UTC
openwork-landing Ready Ready Preview, v0 Sep 22, 2026 1:13am UTC

@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Selected evidence: Passed · 1/1 tests · 3/3 assertions · 4 images

Commit de3ef955f52722729a1a385ceb9390e6c7681519 · selected evidence
Required verification is reported separately by the current-head Required verification check.

Open review report

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
@reachjalil

Copy link
Copy Markdown
Member Author

Local run of evals/specs/connect-readiness-preseeded.e2e.test.ts on this head, real Electron desktop signed into a launched Den, scripted fixture model, no keyword search.

Before — the signed-in desktop composer, with the organization skill assigned and the fixture model selected:

Before: signed-in desktop composer

After — the agent calls list_skills ("Listed skills · Openwork Cloud") then get_skill ("Fetched skill · Openwork Cloud") and shows the skill's unique phrase:

After: skill read through list_skills and get_skill

CI's evidence comment above holds the same run from the PR head with all four images.

@benjaminshafii
benjaminshafii merged commit 8c7eed7 into dev Sep 22, 2026
23 checks passed

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — de3ef955 Deployed Sep 22, 2026 by vercel[bot]
Preview – openwork-app — de3ef955 Deployed Sep 22, 2026 by vercel[bot]
Preview – openwork-den — de3ef955 Deployed Sep 22, 2026 by vercel[bot]
Preview – openwork-diagnostics — de3ef955 Deployed Sep 22, 2026 by vercel[bot]
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.

2 participants