Skip to content

Fix Den MCP tool input schemas - #1634

Merged
src-opn merged 1 commit into
devfrom
check-mcp-post-commands
May 1, 2026
Merged

src-opn merged 1 commit into
devfrom
check-mcp-post-commands

Conversation

@OmarMcAdam

Copy link
Copy Markdown
Member

Summary

  • Generate per-operation MCP input schemas from OpenAPI path/query parameters instead of exposing a generic input envelope.
  • Add tool-description guidance that tells agents to put URL params under path, query params under query, and JSON fields under body.
  • Preserve the existing MCP invoker contract while making path parameters like teamId explicit and required.

Validation

  • pnpm --filter @openwork-ee/den-api exec tsc -p tsconfig.json --noEmit
  • pnpm --filter @openwork-ee/den-api build
  • Validated real generated OpenAPI catalog for patchV1TeamsByTeamId: { path: { teamId }, body: { name } } accepted and { body: { parameters, requestBody } } rejected.
  • Validated invokeMcpOperation() builds /v1/teams/{teamId} from toolInput.path.teamId and returns Missing path parameter: teamId for wrapper-shaped input.

@vercel

vercel Bot commented May 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview, Comment May 1, 2026 2:55pm
openwork-den Ready Ready Preview, Comment May 1, 2026 2:55pm
openwork-den-worker-proxy Ready Ready Preview, Comment May 1, 2026 2:55pm
openwork-landing Ready Ready Preview, Comment, Open in v0 May 1, 2026 2:55pm
openwork-share Ready Ready Preview, Comment May 1, 2026 2:55pm

@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

This branch was successfully deployed

5 active deployments
Preview – openwork-den-worker-proxy — 698df8f8 Deployed May 1, 2026 by vercel[bot]
Preview – openwork-den — 698df8f8 Deployed May 1, 2026 by vercel[bot]
Preview – openwork-landing — 698df8f8 Deployed May 1, 2026 by vercel[bot]
Preview – openwork-app — 698df8f8 Deployed May 1, 2026 by vercel[bot]
Preview – openwork-share — 698df8f8 Deployed May 1, 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