Skip to content

feat(nitro): honor X-MCP-Tools header to subset the tool catalog - #320

Merged
HugoRCD merged 2 commits into
mainfrom
feat/nitro-x-mcp-tools
Aug 14, 2026
Merged

feat(nitro): honor X-MCP-Tools header to subset the tool catalog#320
HugoRCD merged 2 commits into
mainfrom
feat/nitro-x-mcp-tools

Conversation

@HugoRCD

@HugoRCD HugoRCD commented Aug 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Stacked on feat(module): honor X-MCP-Tools header to subset the tool catalog #319. Same X-MCP-Tools allowlist for nitro-mcp-toolkit: comma-separated names, HTTP 400 on unknowns, resources and prompts untouched.
  • Applied ahead of sdk.fetch (same place as origin/auth). handler.definitions stays the full catalog.
  • Parse/filter is duplicated rather than shared with the Nuxt module — the two packages do not share a runtime.

Test plan

  • Unit tests for parse/filter
  • tools/list subsets to requested names; resources and prompts still listed
  • Empty allowlist exposes no tools
  • Unknown name returns HTTP 400
  • handler.definitions is unchanged

Same client allowlist as the Nuxt module, applied ahead of sdk.fetch so unknown names fail the request before the protocol starts.
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
nuxt-mcp-toolkit-docs Ready Ready Preview Aug 14, 2026 9:39am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

Base automatically changed from feat/module-x-mcp-tools to main August 14, 2026 09:32
@pkg-pr-new

pkg-pr-new Bot commented Aug 14, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/nitro-mcp-toolkit@320
npm i https://pkg.pr.new/@nuxtjs/mcp-toolkit@320

commit: 87b626b

@HugoRCD HugoRCD self-assigned this Aug 14, 2026
@HugoRCD
HugoRCD merged commit d5cb261 into main Aug 14, 2026
15 checks passed
@HugoRCD
HugoRCD deleted the feat/nitro-x-mcp-tools branch August 14, 2026 09:39
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.

1 participant