chore(repo): version packages#249
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
809a731 to
a408b0d
Compare
c254cae to
61ccd86
Compare
61ccd86 to
e4265b7
Compare
e4265b7 to
81bd5cf
Compare
81bd5cf to
3118f38
Compare
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@nuxtjs/mcp-toolkit@0.17.0
Minor Changes
#248
067ab3eThanks @HugoRCD! - Route MCP Apps to any named handler — no manual filtering required. Until now everydefineMcpAppSFC was hard-attributed to the implicitappshandler, so multipleapp/mcp/*.vuefiles could only be exposed together on/mcp/apps. Two new mechanisms (consistent with the rest of the module) let you split apps across handlers.Sub-folder convention
The first sub-directory under
app/mcp/becomes the named-handler attribution — same idea asserver/mcp/handlers/<name>/for tools, resources, and prompts:Pair each sub-folder with its handler index file (one-liner is fine):
With
defaultHandlerStrategy: 'orphans'(the default), each app surfaces on exactly one route.Explicit
attachTo/group/tagsoverridesThree new fields on
defineMcpApplet an SFC opt out of the folder convention or add filterable metadata. They override any sub-folder default:The generated tool and resource carry
_meta.handler = 'finder', top-levelgroupandtags, sogetMcpTools({ handler: 'finder' })/getMcpTools({ tags: ['searchable'] })filters work the same way they do for ordinary tools.Build-time validation
attachTo,group, andtagsmust be string literals (e.g.'finder',['a', 'b']). The toolkit reads them statically from thedefineMcpAppmacro at build time so routing decisions are deterministic across dev, build, and deploy. A dynamic expression (attachTo: someVar) fails the build with a clear message.Back-compat
100% additive — apps without sub-folders or explicit overrides keep their previous behaviour (attached to
apps, surfaced on/mcp/apps). The previous "manual filter insidedefineMcpHandler" workaround documented in MCP Apps internals is no longer required.See Apps · Authoring → Routing apps to a specific handler.
#250
1ad6f3dThanks @HugoRCD! - Expose two Nitro runtime hooks for the MCP request lifecycle. Subscribe from aserver/plugins/*.tsplugin to inject custom logic without owning adefineMcpHandler— listeners that throw are logged via consola and the request continues.mcp:config:resolvedFires per request after dynamic
tools/resources/promptsresolvers andenabled(event)guards have run, before the per-requestMcpServeris built. Mutatectx.configin place to add, remove or transform definitions for this request only.mcp:server:createdFires per request after every tool / resource / prompt has been registered, before the server is connected to the transport. Receives the SDK
McpServerinstance — callserver.registerTool(...)to add definitions late, or usegetSdkServer(server)to reach the low-levelServerandsetRequestHandler(...)for custom JSON-RPC methods.Public API additions
McpResolvedConfig— type of the resolved per-request server config.getSdkServer(server)— reach the underlying SDKServerinstance from anMcpServer.Both are exported from
@nuxtjs/mcp-toolkit/server. See Hooks · Runtime hooks.