{"_id":"@7nohe/adonis-mcp","_rev":"4-d3dc96f1e52e86c379638a271e68c15f","name":"@7nohe/adonis-mcp","dist-tags":{"latest":"1.1.0-0"},"versions":{"1.0.0-0":{"name":"@7nohe/adonis-mcp","version":"1.0.0-0","keywords":["adonisjs","adonis","adonisjs-mcp","adonis-mcp","adonisjs-plugin","adonis-plugin","modelcontextprotocol","llm","mcp","remote-mcp","remote-mcp-server","ai","cursor","copilot","cline","claude","gpt"],"author":{"name":"Daiki Urata"},"license":"MIT","_id":"@7nohe/adonis-mcp@1.0.0-0","maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"c8":{"exclude":["tests/**"],"reporter":["text","html"]},"np":{"tag":"latest","branch":"main","message":"chore(release): %s","anyBranch":false},"dist":{"shasum":"06840c83125edd1d8a1e9276cbab68918f2c7dc1","tarball":"https://registry.npmjs.org/@7nohe/adonis-mcp/-/adonis-mcp-1.0.0-0.tgz","fileCount":20,"integrity":"sha512-A8t9qHuhU6U0NtnJiRkSLV7Qsab3yV/+BjrlQPdlWsAM9tg7/m+8gxwAbElQN3Do0sEgRgZMyaeC1rTUQrJjHw==","signatures":[{"sig":"MEQCIGl64mKfyuz0izmjKlFBsNeZiBGPfCD8imVSLyB6GCGpAiBW27Xbaw2kRO6yORmhliyZbt0LjOfGwaYAOtaw5BOSEQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16247},"type":"module","engines":{"node":">=20.6.0"},"exports":{".":"./build/index.js","./types":"./build/src/types.js","./mcp_provider":"./build/providers/mcp_provider.js","./services/main":"./build/services/mcp.js"},"gitHead":"36cb3614bf556bbb26a926675c4d4723efe7176e","scripts":{"lint":"eslint .","test":"c8 npm run quick:test","build":"tsc","clean":"del-cli build","format":"prettier --write .","pretest":"npm run lint","release":"np","version":"npm run build","prebuild":"npm run lint && npm run clean","postbuild":"npm run copy:templates","typecheck":"tsc --noEmit","quick:test":"node --import=./tsnode.esm.js --enable-source-maps bin/test.ts","copy:templates":"copyfiles \"stubs/**/*.stub\" build","prepublishOnly":"npm run build"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"prettier":"@adonisjs/prettier-config","_npmVersion":"11.2.0","description":"Remote MCP server for AdonisJS","directories":{},"_nodeVersion":"22.13.1","publishConfig":{"tag":"latest","access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","np":"^10.0.6","eslint":"^9.15.0","del-cli":"^5.1.0","prettier":"^3.3.2","@swc/core":"^1.6.3","copyfiles":"^2.4.1","typescript":"^5.4.5","@types/node":"^20.14.5","@japa/assert":"^4.0.1","@japa/runner":"^3.1.4","@adonisjs/core":"^6.17.2","@adonisjs/tsconfig":"^1.3.0","ts-node-maintained":"^10.9.4","@adonisjs/assembler":"^7.8.2","@adonisjs/eslint-config":"2.0.0-beta.7","@adonisjs/prettier-config":"^1.4.0","@modelcontextprotocol/sdk":"^1.8.0"},"peerDependencies":{"@adonisjs/core":"^6.2.0"},"_npmOperationalInternal":{"tmp":"tmp/adonis-mcp_1.0.0-0_1743341470081_0.8214658216334141","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@7nohe/adonis-mcp","version":"1.0.0","keywords":["adonisjs","adonis","adonisjs-mcp","adonis-mcp","adonisjs-plugin","adonis-plugin","modelcontextprotocol","llm","mcp","remote-mcp","remote-mcp-server","ai","cursor","copilot","cline","claude","gpt"],"author":{"name":"Daiki Urata"},"license":"MIT","_id":"@7nohe/adonis-mcp@1.0.0","maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"homepage":"https://github.com/7nohe/adonis-mcp","bugs":{"url":"https://github.com/7nohe/adonis-mcp/issues"},"c8":{"exclude":["tests/**"],"reporter":["text","html"]},"np":{"tag":"latest","branch":"main","message":"chore(release): %s","anyBranch":false},"dist":{"shasum":"4ccc42d2552bcf901ed48f5f9f9b978123f09a23","tarball":"https://registry.npmjs.org/@7nohe/adonis-mcp/-/adonis-mcp-1.0.0.tgz","fileCount":20,"integrity":"sha512-E1JrIRiVCuaZ//29qaq7eWjZmp4lFOpsGuJYPNioctu2cCVGR1E3wVq8donu8EhaD4GJ4N0MuE38wvcWR0+HJw==","signatures":[{"sig":"MEUCIQDdQszyDtleLxQ/yQ7k6tsypVoDpNRGBag4kYNBws9XbwIgSiN5E/FoaAkdw9QyRnkeonBRdK5Fvgytpyp1Cr0La+4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13019},"type":"module","engines":{"node":">=20.6.0"},"exports":{".":"./build/index.js","./types":"./build/src/types.js","./mcp_provider":"./build/providers/mcp_provider.js","./services/main":"./build/services/mcp.js"},"gitHead":"b5b2e4e67b371502be34b5aa6cbeda95459c5b36","scripts":{"lint":"eslint .","test":"c8 npm run quick:test","build":"tsc","clean":"del-cli build","format":"prettier --write .","pretest":"npm run lint","release":"np","version":"npm run build","prebuild":"npm run lint && npm run clean","postbuild":"npm run copy:templates","typecheck":"tsc --noEmit","quick:test":"node --import=./tsnode.esm.js --enable-source-maps bin/test.ts","copy:templates":"copyfiles \"stubs/**/*.stub\" build","prepublishOnly":"npm run build"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"prettier":"@adonisjs/prettier-config","repository":{"url":"git+https://github.com/7nohe/adonis-mcp.git","type":"git"},"_npmVersion":"11.2.0","description":"Remote MCP server for AdonisJS","directories":{},"_nodeVersion":"22.13.1","dependencies":{"@modelcontextprotocol/sdk":"^1.8.0"},"publishConfig":{"tag":"latest","access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","np":"^10.0.6","eslint":"^9.15.0","del-cli":"^5.1.0","prettier":"^3.3.2","@swc/core":"^1.6.3","copyfiles":"^2.4.1","typescript":"^5.4.5","@types/node":"^20.14.5","@japa/assert":"^4.0.1","@japa/runner":"^3.1.4","@adonisjs/core":"^6.17.2","@adonisjs/tsconfig":"^1.3.0","ts-node-maintained":"^10.9.4","@adonisjs/assembler":"^7.8.2","@adonisjs/eslint-config":"2.0.0-beta.7","@adonisjs/prettier-config":"^1.4.0"},"peerDependencies":{"@adonisjs/core":"^6.2.0"},"_npmOperationalInternal":{"tmp":"tmp/adonis-mcp_1.0.0_1743344567841_0.43093585124475076","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@7nohe/adonis-mcp","version":"1.0.1","keywords":["adonisjs","adonis","adonisjs-mcp","adonis-mcp","adonisjs-plugin","adonis-plugin","modelcontextprotocol","llm","mcp","remote-mcp","remote-mcp-server","ai","cursor","copilot","cline","claude","gpt"],"author":{"name":"Daiki Urata"},"license":"MIT","_id":"@7nohe/adonis-mcp@1.0.1","maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"homepage":"https://github.com/7nohe/adonis-mcp","bugs":{"url":"https://github.com/7nohe/adonis-mcp/issues"},"c8":{"exclude":["tests/**"],"reporter":["text","html"]},"np":{"tag":"latest","branch":"main","message":"chore(release): %s","anyBranch":false},"dist":{"shasum":"335cf00376aab3332674c87f6c2721521382fdd2","tarball":"https://registry.npmjs.org/@7nohe/adonis-mcp/-/adonis-mcp-1.0.1.tgz","fileCount":20,"integrity":"sha512-DnLHqsdQUVNuEafF6HINDfIDg7hWOJ6rLyqGjGxR3EdcI5+X9jP9TMWPNogaaE90EZ045KeasbW6duYwt55Fig==","signatures":[{"sig":"MEUCIHxusckTb6MwHtnV2uzhohiPqGcedU2R/K8OJAS8GwuLAiEA1/cnfFWJrGMXDXTmrSrLn65NARylvzvl9Z65V8MTE+Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12937},"type":"module","engines":{"node":">=20.6.0"},"exports":{".":"./build/index.js","./types":"./build/src/types.js","./mcp_provider":"./build/providers/mcp_provider.js","./services/main":"./build/services/mcp.js"},"gitHead":"b7d5ceafba551613a6ed76a7e8d04fc385f5dbe2","scripts":{"lint":"eslint .","test":"c8 npm run quick:test","build":"tsc","clean":"del-cli build","format":"prettier --write .","pretest":"npm run lint","release":"np","version":"npm run build","prebuild":"npm run lint && npm run clean","postbuild":"npm run copy:templates","typecheck":"tsc --noEmit","quick:test":"node --import=./tsnode.esm.js --enable-source-maps bin/test.ts","copy:templates":"copyfiles \"stubs/**/*.stub\" build","prepublishOnly":"npm run build"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"prettier":"@adonisjs/prettier-config","repository":{"url":"git+https://github.com/7nohe/adonis-mcp.git","type":"git"},"_npmVersion":"11.2.0","description":"Remote MCP server for AdonisJS","directories":{},"_nodeVersion":"22.13.1","dependencies":{"@modelcontextprotocol/sdk":"^1.8.0"},"publishConfig":{"tag":"latest","access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","np":"^10.0.6","eslint":"^9.15.0","del-cli":"^5.1.0","prettier":"^3.3.2","@swc/core":"^1.6.3","copyfiles":"^2.4.1","typescript":"^5.4.5","@types/node":"^20.14.5","@japa/assert":"^4.0.1","@japa/runner":"^3.1.4","@adonisjs/core":"^6.17.2","@adonisjs/tsconfig":"^1.3.0","ts-node-maintained":"^10.9.4","@adonisjs/assembler":"^7.8.2","@adonisjs/eslint-config":"2.0.0-beta.7","@adonisjs/prettier-config":"^1.4.0"},"peerDependencies":{"@adonisjs/core":"^6.2.0"},"_npmOperationalInternal":{"tmp":"tmp/adonis-mcp_1.0.1_1743345391297_0.012080575477051658","host":"s3://npm-registry-packages-npm-production"}},"1.1.0-0":{"name":"@7nohe/adonis-mcp","description":"Remote MCP server for AdonisJS","version":"1.1.0-0","engines":{"node":">=20.6.0"},"type":"module","exports":{".":"./build/index.js","./types":"./build/src/types.js","./mcp_provider":"./build/providers/mcp_provider.js","./services/main":"./build/services/mcp.js"},"scripts":{"clean":"del-cli build","copy:templates":"copyfiles \"stubs/**/*.stub\" build","typecheck":"tsc --noEmit","lint":"eslint .","format":"prettier --write .","quick:test":"node --import=./tsnode.esm.js --enable-source-maps bin/test.ts","pretest":"npm run lint","test":"c8 npm run quick:test","prebuild":"npm run lint && npm run clean","build":"tsc","postbuild":"npm run copy:templates","release":"np","version":"npm run build","prepublishOnly":"npm run build"},"keywords":["adonisjs","adonis","adonisjs-mcp","adonis-mcp","adonisjs-plugin","adonis-plugin","modelcontextprotocol","llm","mcp","remote-mcp","remote-mcp-server","ai","cursor","copilot","cline","claude","gpt"],"author":{"name":"Daiki Urata"},"license":"MIT","homepage":"https://github.com/7nohe/adonis-mcp","repository":{"type":"git","url":"git+https://github.com/7nohe/adonis-mcp.git"},"bugs":{"url":"https://github.com/7nohe/adonis-mcp/issues"},"devDependencies":{"@adonisjs/assembler":"^7.8.2","@adonisjs/core":"^6.17.2","@adonisjs/eslint-config":"2.0.0-beta.7","@adonisjs/prettier-config":"^1.4.0","@adonisjs/tsconfig":"^1.3.0","@japa/assert":"^4.0.1","@japa/runner":"^3.1.4","@swc/core":"^1.6.3","@types/node":"^20.14.5","c8":"^10.1.2","copyfiles":"^2.4.1","del-cli":"^5.1.0","eslint":"^9.15.0","np":"^10.0.6","prettier":"^3.3.2","ts-node-maintained":"^10.9.4","typescript":"^5.4.5"},"dependencies":{"@modelcontextprotocol/sdk":"^1.16.0"},"peerDependencies":{"@adonisjs/core":"^6.2.0"},"publishConfig":{"access":"public","tag":"latest"},"np":{"message":"chore(release): %s","tag":"latest","branch":"main","anyBranch":false},"c8":{"reporter":["text","html"],"exclude":["tests/**"]},"prettier":"@adonisjs/prettier-config","_id":"@7nohe/adonis-mcp@1.1.0-0","gitHead":"87b693de2d6a72a4f04b567bacdc3c40269e8071","_nodeVersion":"22.14.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-Tp5eAu6mcqLhrMYRo8WrKkzFuKc1A1JDRNoyucpttbCtjr345aA3p0SINi6v12gG88bd9Awg8ge9pSrWZ9X/bw==","shasum":"43c3990fbdd926b916c53a3727a23ac23eee4fb3","tarball":"https://registry.npmjs.org/@7nohe/adonis-mcp/-/adonis-mcp-1.1.0-0.tgz","fileCount":20,"unpackedSize":14602,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC7GfOpoe2A6u9WTwqW45B49AkHBhpIw61VrHoZALvejQIhAM94ZPh8FEcSeGN7ihj3c/RxAT4kbro7Hgy34V82oUqS"}]},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adonis-mcp_1.1.0-0_1753105748712_0.46015475102856196"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-30T13:31:10.006Z","modified":"2025-07-21T13:49:09.074Z","1.0.0-0":"2025-03-30T13:31:10.307Z","1.0.0":"2025-03-30T14:22:48.038Z","1.0.1":"2025-03-30T14:36:31.488Z","1.1.0-0":"2025-07-21T13:49:08.883Z"},"bugs":{"url":"https://github.com/7nohe/adonis-mcp/issues"},"author":{"name":"Daiki Urata"},"license":"MIT","homepage":"https://github.com/7nohe/adonis-mcp","keywords":["adonisjs","adonis","adonisjs-mcp","adonis-mcp","adonisjs-plugin","adonis-plugin","modelcontextprotocol","llm","mcp","remote-mcp","remote-mcp-server","ai","cursor","copilot","cline","claude","gpt"],"repository":{"type":"git","url":"git+https://github.com/7nohe/adonis-mcp.git"},"description":"Remote MCP server for AdonisJS","maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"readme":"# Adonis MCP\n\nAdonis MCP is a package designed for the AdonisJS framework that provides support for the Model Context Protocol (MCP). With this package, you can easily build remote MCP servers using Server-Sent Events (SSE).\n\n## Installation\n\nRun the following command to install the package:\n\n```bash\nnode ace add @7nohe/adonis-mcp\n```\n\n## Configuration\n\nAfter installation, a `config/mcp.ts` file will be generated. Edit this file to customize the MCP server settings.\n\nExample:\n\n```ts\nimport { defineConfig } from '@7nohe/adonis-mcp'\n\nexport default defineConfig({\n  path: '/mcp',\n  serverOptions: {\n    name: 'mymcp',\n    version: '0.0.1',\n  },\n})\n```\n\n## Usage\n\n### Registering Routes\n\nYou can use the `registerRoutes` method in `start/routes.ts` to define tools and prompts. Below is an example:\n\n```ts\nimport mcp from '@7nohe/adonis-mcp/services/main'\nimport { ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js'\nimport { z } from 'zod'\n\nawait mcp.registerRoutes((server) => {\n  server.resource(\n    'echo',\n    new ResourceTemplate('echo://{message}', { list: undefined }),\n    async (uri, { message }) => ({\n      contents: [\n        {\n          uri: uri.href,\n          text: `Resource echo: ${message}`,\n        },\n      ],\n    })\n  )\n\n  server.tool('echo', { message: z.string() }, async ({ message }) => ({\n    content: [{ type: 'text', text: `Tool echo: ${message}` }],\n  }))\n\n  server.prompt('echo', { message: z.string() }, ({ message }) => ({\n    messages: [\n      {\n        role: 'user',\n        content: {\n          type: 'text',\n          text: `Please process this message: ${message}`,\n        },\n      },\n    ],\n  }))\n})\n```\n\n### Starting the Server\n\nAfter defining the routes, start the MCP server by running the following command:\n\n```bash\nnpm run dev\n```\n\n## Debugging\n\n### Using Configuration File\n\nTo debug, edit the MCP server configuration file (e.g., for Claude Desktop or Cursor) as follows:\n\n```json\n{\n  \"mcpServers\": {\n    \"mymcp\": {\n      \"url\": \"http://localhost:3333/sse\"\n    }\n  }\n}\n```\n\n### Using Inspector\n\nAnother debugging method is to use the Inspector. Start it with the following command:\n\n```bash\nnpx @modelcontextprotocol/inspector\n```\n\n1. Set the Transport Type to `SSE`.\n2. Enter the URL `http://localhost:3333/sse`.\n3. Click the `Connect` button.\n4. Confirm that the status changes to `Connected`.\n\nFor more details, refer to the [Inspector Documentation](https://modelcontextprotocol.io/docs/tools/inspector).\n\n## License\n\nThis project is provided under the [MIT License](./LICENSE.md).\n","readmeFilename":"README.md"}