Repository navigation
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Production bundleComparing Initial page load
All client assets
Largest module increases
|
HugoRCD
force-pushed
the
feat/mcp-toolkit-beta
branch
from
November 10, 2026 09:58
75977d0 to
805e9c8
Compare
This branch was successfully deployed
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.
Written by an AI agent on behalf of @HugoRCD, who shaped the solution. @HugoRCD has not reviewed it yet.
Migrate nuxt.com’s MCP endpoints to the shared Nitro runtime using mcp-toolkit#406, including its runtime authentication and DX improvements. Pin
@nuxtjs/mcp-toolkittohttps://pkg.pr.new/@nuxtjs/mcp-toolkit@2fa99b1; the preview package pins its matching Nitro runtime to the same commit. Local verification used packed builds of both packages, followed by the published preview. Keep this draft for testing and switch to a published beta before merging.satisfiesboilerplate and empty input schemas. Preserve tool names, descriptions and examples.server/mcp/index.tsandserver/mcp-admin/index.ts, usingdefineMcpServer(). The admin index also defines runtime authentication. Remove rootmcp.config.tsand the separate auth file; Nuxt config only selects each server’s directory.name,titleandgroupfields. Existing unit-test handlers supply their own names because they compose definitions directly.mcp.servers: public definitions inserver/mcp, admin definitions inserver/mcp-admin. Replace the manually composed admin route and its definition imports with discovery and per-folder configuration.Per-folder configuration with discovery
nuxt.config.tsonly selects servers:server/mcp/index.tsholds the public name, icons and documentation link.server/mcp-admin/index.tsholds the existing admin metadata/instructions and reads the private token when a request arrives:Set
NUXT_MCP_ADMIN_TOKENwhen starting the app. The same production artifact is checked with and without a demo token, without rebuilding. New admin definitions are discovered without adding imports. The complete admin instruction text is unchanged. Installation links use the public name from its index.Endpoint separation and inferred metadata
A temporary check compares each complete tool/prompt catalog with the files under that server’s own directory, rejects cross-server tool calls, checks that the complete admin instruction text is preserved, and verifies that installation links read the public index. Both protocol generations pass; missing and wrong admin tokens are refused. The earlier metadata cleanup also compared inferred names/titles against the preceding production build.
Current raw output from the published preview, exit 0:
The production build, type check, lint and all 447 existing unit tests also pass after the metadata cleanup. Moving the configuration preserves the admin instructions exactly; Nuxt preparation and generated type checking pass with the per-folder indexes. No new test or verification file is committed.
Validation
vue-tsc -b --noEmit)Earlier raw output from the temporary production check against locally packed candidates, exit 0:
The same build started without
NUXT_MCP_ADMIN_TOKEN, exit 0:The final published-preview production build, frozen install, lint, type checking and all 493 tests pass. Its focused protocol checks above pass on both revisions. Repeating the broader documentation-content smoke against that artifact was blocked by the external GitHub source lookup:
That run exits 1; it is not reported as a successful documentation-content check. The preceding local-candidate build had content available and passed the broader check shown above.
These checks read local public Nuxt documentation, public blog/deployment content and a harmless admin prompt. Admin tools that access private chats, feedback or Google APIs were not invoked; the existing unit suites use fixtures to check those restrictions.
The temporary smoke runner stays outside the repository. The extra auth spec and committed verification script were removed as requested; the PR no longer advertises
pnpm test:mcp. Browser screenshots, model-backed MCP evals, live provider login and a fresh development-server smoke test were not run for this update. The final production build emitted dependency/bundler warnings and completed successfully. Its generated discovery report confirmsindex.tsfor both endpoints. The 391 toolkit tests also pass, including index/layer discovery, reloads, runtime auth, and Nuxt installation-link/llms.txtintegration.The local pnpm 12.18 install needed its URL-subdependency block disabled for the explicitly pinned preview runtime; the repo itself remains on pnpm 12.15. No policy override was committed.
Each MCP server now keeps its settings beside its tools. Public documentation stays public, and team tools read their access token at runtime before serving requests.