mcp-toolkit
Verified Safeby nuxt-modules
Overview
Develop a Model Context Protocol (MCP) server directly within a Nuxt application, allowing AI agents to interact with application functionalities, access data, and utilize predefined prompts.
Installation
pnpm devEnvironment Variables
- AI_GATEWAY_API_KEY
- STUDIO_GITHUB_CLIENT_ID
- STUDIO_GITHUB_CLIENT_SECRET
- MCP_URL
- GITHUB_CLIENT_ID
- GITHUB_CLIENT_SECRET
- BETTER_AUTH_URL
- REDIS_URL
- CLIENT_PORT
- SERVER_PORT
- MCP_INSPECTOR_PORT
Security Notes
The core functionality involves exposing HTTP server endpoints for AI agents. Implementers must ensure robust authentication and authorization, especially for sensitive operations. Examples provided use API keys and middleware for authentication, which is good practice. However, the 'file' resource example (e.g., `apps/playground/server/mcp/resources/file.ts`) demonstrates reading local files via a dynamic path (`file:///project/{+path}`). While its `list` function attempts to filter sensitive directories like `.git` and `node_modules`, the `handler` directly uses `variables.path` joined with `process.cwd()`. This poses a risk of arbitrary file access if the AI client is not strictly constrained or if the application layer does not implement comprehensive path validation or allow-listing. The documentation correctly notes that the application (not the AI) controls which resources are included in context, implying the implementer's responsibility to manage this risk.
Similar Servers
mcphub.nvim
Integrates Model Context Protocol (MCP) servers with Neovim to enable AI agent interaction for tools, resources, and prompts within the editing workflow.
nuxt-mcp-dev
This server provides development context and real-time insights from Vite/Nuxt applications to AI models via a Model Context Protocol (MCP) server.
mcp-handler
Provides a Vercel adapter for the Model Context Protocol (MCP), enabling real-time communication between applications and AI models through Next.js or Nuxt.
claude-prompts-mcp
Enhances AI assistant behavior through structured prompt management, multi-step chains, quality gates, and autonomous verification loops, primarily for development tasks.