Skip to content

feat(module): mention mcp in llms.txt if detected - #327

Open
larbish wants to merge 3 commits into
mainfrom
feat/llms-mcp-mention
Open

feat(module): mention mcp in llms.txt if detected#327
larbish wants to merge 3 commits into
mainfrom
feat/llms-mcp-mention

Conversation

@larbish

@larbish larbish commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary

Advertise the MCP server in /llms.txt when nuxt-llms is registered, so agents that discover a site through llms.txt can find its MCP endpoint without a hand-configured URL.

Comes out of a broader Docus review (PR coming) to improve its isAgentic note: agentic audits keep asking for a discovery path, and llms.txt is the one that actually exists today (seems like the good option for the llms x mcp nuxt combo)

Changes

Nitro plugin (runtime/server/plugins/llms.ts, module.ts)

Registered only when hasNuxtModule('nuxt-llms') and mcp.llms !== false. Appends one section through nuxt-llms' own llms:generate hook, it stays the owner of the file.

## MCP Server

Query Example data from your agent.

- [Example MCP](https://example.com/mcp): Streamable HTTP endpoint — connect an MCP client to this URL…
- [MCP documentation](https://example.com/docs/mcp): How to connect to this MCP server.

Built from llms.domain + mcp.route, mcp.name, mcp.description and mcp.browserRedirect.

Docs (advanced/llms-txt, getting-started/configuration, skills/manage-mcp)

New page, llms option, and a skill section.

Tests (test/llms.test.ts, test/llms-disabled.test.ts)

E2E fixtures covering the generated section and the opt-out.

Aside fix

pnpm automd pointed at a nonexistent .github/automd.json (config is .config/automd.json), so both READMEs had drifted from snippets/features.md. Fixes the path and regenerates, which also restores two missing MCP Apps lines.

@vercel

vercel Bot commented Aug 25, 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 25, 2026 3:15pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

@pkg-pr-new

pkg-pr-new Bot commented Aug 25, 2026

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

commit: 20132f2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant