{"_id":"@agenite/mcp","_rev":"2-1b1cffb318db74a370e193937223b522","name":"@agenite/mcp","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@agenite/mcp","version":"0.1.0","keywords":["ai","generative-ai","aws","bedrock","claude","titan","llm","provider","typescript","function-calling","streaming","agenite","mcp","model-context-protocol"],"license":"MIT","_id":"@agenite/mcp@0.1.0","maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"homepage":"https://github.com/subeshb1/agenite/tree/main/packages/mcp#readme","bugs":{"url":"https://github.com/subeshb1/agenite/issues"},"dist":{"shasum":"479442da77967ddef6548af21b61295e24176162","tarball":"https://registry.npmjs.org/@agenite/mcp/-/mcp-0.1.0.tgz","fileCount":10,"integrity":"sha512-6Jup3gKZr+5tm15si1/ooMc3yR2dm4HmajQ4FHCA844fNUTtaoAccIf6QthRTj9/+QPk8+Uw09vCFpN5XoyHdQ==","signatures":[{"sig":"MEUCIAJcm6jZj5xk8tf79krZzQQ5PvUtj4DomLxyJ1F3/6wcAiEA9Ax/yFeQZVRgNkW91My9pBM5c0JU8S1AgDNvBt08mmU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37328},"main":"./dist/index.js","type":"module","_from":"file:agenite-mcp-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"private":false,"scripts":{"dev":"tsup --watch","lint":"eslint . --max-warnings 0","build":"tsup","check-types":"tsc --noEmit"},"_npmUser":{"name":"subeshb1","email":"subeshb1@gmail.com"},"_resolved":"/private/var/folders/6t/00njv37d2bn4hm5pmsq993zr0000gp/T/e5f25e6fb7122278ef7dd25ae2f1f9bd/agenite-mcp-0.1.0.tgz","_integrity":"sha512-6Jup3gKZr+5tm15si1/ooMc3yR2dm4HmajQ4FHCA844fNUTtaoAccIf6QthRTj9/+QPk8+Uw09vCFpN5XoyHdQ==","repository":{"url":"git+https://github.com/subeshb1/agenite.git","type":"git","directory":"packages/mcp"},"_npmVersion":"11.1.0","description":"A MCP implementation for Agenite","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@agenite/tool":"0.4.0","@modelcontextprotocol/sdk":"^1.8.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.2","@types/node":"^20.17.25","@repo/tsup-config":"0.0.3","@repo/eslint-config":"0.1.0","@repo/typescript-config":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_0.1.0_1743267775061_0.21145921114374922","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@agenite/mcp","version":"0.2.0","description":"A MCP implementation for Agenite","private":false,"type":"module","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"dependencies":{"@modelcontextprotocol/sdk":"^1.9.0","@agenite/tool":"0.5.0"},"devDependencies":{"@types/node":"^20.17.30","tsup":"^8.4.0","typescript":"^5.8.3","@repo/eslint-config":"0.2.0","@repo/tsup-config":"0.1.0","@repo/typescript-config":"0.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["ai","generative-ai","aws","bedrock","claude","titan","llm","provider","typescript","function-calling","streaming","agenite","mcp","model-context-protocol"],"repository":{"type":"git","url":"git+https://github.com/subeshb1/agenite.git","directory":"packages/mcp"},"homepage":"https://github.com/subeshb1/agenite/tree/main/packages/mcp#readme","bugs":{"url":"https://github.com/subeshb1/agenite/issues"},"license":"MIT","scripts":{"lint":"eslint . --max-warnings 0","check-types":"tsc --noEmit","build":"tsup","dev":"tsup --watch"},"_id":"@agenite/mcp@0.2.0","_integrity":"sha512-NaUKkCsRID40M7hyH2oCZ/dFN9nCmauHRN2pww0eEzn2KLAbnszjONzgqouvwGsOXPXIn3tCZ/3Q76ap8YuwRQ==","_resolved":"/private/var/folders/6t/00njv37d2bn4hm5pmsq993zr0000gp/T/2bcb1df0a829c3f1a18ae57fbdca15a0/agenite-mcp-0.2.0.tgz","_from":"file:agenite-mcp-0.2.0.tgz","_nodeVersion":"22.13.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-NaUKkCsRID40M7hyH2oCZ/dFN9nCmauHRN2pww0eEzn2KLAbnszjONzgqouvwGsOXPXIn3tCZ/3Q76ap8YuwRQ==","shasum":"9b636edc44d0664b37859a6122318293ec090edf","tarball":"https://registry.npmjs.org/@agenite/mcp/-/mcp-0.2.0.tgz","fileCount":10,"unpackedSize":37500,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFKWSbi+bhDtPb8hg06z6k/meBZUO4IOhGYmIhG61aPgAiEAvJY7IDwMh2jpqcwecC1hVRPRGVmhFHhBnm3ZcOSL5Ss="}]},"_npmUser":{"name":"subeshb1","email":"subeshb1@gmail.com"},"directories":{},"maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_0.2.0_1744351900524_0.3835829295631774"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-29T17:02:54.991Z","modified":"2025-04-11T06:11:40.886Z","0.1.0":"2025-03-29T17:02:55.226Z","0.2.0":"2025-04-11T06:11:40.696Z"},"bugs":{"url":"https://github.com/subeshb1/agenite/issues"},"license":"MIT","homepage":"https://github.com/subeshb1/agenite/tree/main/packages/mcp#readme","keywords":["ai","generative-ai","aws","bedrock","claude","titan","llm","provider","typescript","function-calling","streaming","agenite","mcp","model-context-protocol"],"repository":{"type":"git","url":"git+https://github.com/subeshb1/agenite.git","directory":"packages/mcp"},"description":"A MCP implementation for Agenite","maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"readme":"# @agenite/mcp\n\nA Model Context Protocol (MCP) implementation for Agenite.\n\n## Installation\n\n```bash\nnpm install @agenite/mcp\n```\n\n## Usage\n\n### Creating a client\n\n```typescript\nimport { MCPClient } from '@agenite/mcp';\n\n// Create an MCPClient to connect to a filesystem MCP server\nconst client = new MCPClient({\n  name: 'filesystem',\n  version: '1.0.0', // optional, defaults to '1.0.0'\n  serverConfig: {\n    command: 'npx',\n    args: [\n      '-y',\n      '@modelcontextprotocol/server-filesystem',\n      '/path/to/allowed/dir',\n      '/path/to/other/allowed/dir',\n    ],\n    // Optional environment variables\n    env: {\n      // NODE_ENV: 'production'\n    }\n  }\n});\n\n// Connect to the server (automatically called when needed)\nclient.connect();\n```\n\n### Getting available tools\n\n```typescript\n// Get all available tools from the MCP server\nconst tools = await client.getTools();\n\n// Use these tools in your agent\nconst agent = createAgent({\n  // ...\n  tools: [\n    ...tools,\n    // other tools\n  ]\n});\n```\n\n### Calling a tool directly\n\n```typescript\n// Call a tool directly\nconst result = await client.callTool('listFiles', {\n  directory: '/path/to/allowed/dir'\n});\n\nif (result.isError) {\n  console.error('Error calling tool:', result.data);\n} else {\n  console.log('Tool result:', result.data);\n}\n```\n\n### Disconnecting\n\n```typescript\n// Disconnect when done\nclient.disconnect();\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}