Nfs Add MCP

Add an MCP (Model Context Protocol) entry point to an existing project scaffolded with nextjs-fullstack-starter. Use when the user wants AI clients (Claude Desktop, Cursor) to query the project's data over OAuth, mentions MCP, wants to expose tools to AI, or invokes /nfs-add-mcp. Wires up /api/mcp/route.ts inside an (mcp) route group, the MCP plugin in Better Auth (the project's OAuth provider), the .well-known OAuth discovery endpoints, a tool registry at src/server/mcp/registry.ts, one example tool, and the migration for the three OAuth tables. Requires Better Auth to be wired — if not, prompts to run /nfs-add-auth first.

juncoding a2edd2b 8.5 KB Updated

File contents

juncoding/nextjs-fullstack-starter/tree/main/skills/nfs-add-mcp commit a2edd2b1bd

Frequently asked questions

npx skillmds@latest add juncoding/nfs-add-mcp