{"_id":"@codebolt/mcp","_rev":"4-3814161fc02a36479f30debbf7fa6d1d","name":"@codebolt/mcp","dist-tags":{"latest":"1.2.1"},"versions":{"1.1.0":{"name":"@codebolt/mcp","version":"1.1.0","keywords":["mcp","model-context-protocol","server","tools","ai","llm"],"author":{"name":"Codebolt"},"license":"MIT","_id":"@codebolt/mcp@1.1.0","maintainers":[{"name":"utkarshx","email":"utk.shukla@gmail.com"}],"homepage":"https://codeboltai.github.io","bugs":{"url":"https://github.com/codeboltai/codeboltjs/issues"},"dist":{"shasum":"6eb64659430e5d44127b06a1ead04594713684dc","tarball":"https://registry.npmjs.org/@codebolt/mcp/-/mcp-1.1.0.tgz","fileCount":8,"integrity":"sha512-D0lO8raebb1GjQTLbhPt+eb1cflK5grR7oZmyN5UPRxf84U7ByR4WhDMozYv2OPfg5CBtRMeg4O2rMy29x5Hsw==","signatures":[{"sig":"MEUCIQC3A0liu8ENNXw2Az3zYujwBu5Q7UFWTaJ+cqj5aqwugQIgFY01qxS67L9in4OKQWZKoQSQuDullm7tsTMoNSlbzMk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70570},"main":"dist/index.js","_from":"file:codebolt-mcp-1.1.0.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"tsc --noEmit","test":"jest --passWithNoTests","build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"utkarshx","email":"utk.shukla@gmail.com"},"_resolved":"/private/var/folders/rx/lntsxpxx7h9b79h0j7mv34gc0000gn/T/9f93939d7e76aec7654d167e1f0f5eb7/codebolt-mcp-1.1.0.tgz","_integrity":"sha512-D0lO8raebb1GjQTLbhPt+eb1cflK5grR7oZmyN5UPRxf84U7ByR4WhDMozYv2OPfg5CBtRMeg4O2rMy29x5Hsw==","repository":{"url":"git+https://github.com/codeboltai/codeboltjs.git","type":"git","directory":"packages/mcp"},"_npmVersion":"11.5.1","description":"Model Context Protocol (MCP) server implementation for Codebolt","directories":{},"_nodeVersion":"20.18.3","dependencies":{"zod":"^3.24.1","undici":"^7.4.0","fuse.js":"^7.0.0","load-esm":"^1.0.1","file-type":"^19.6.0","mcp-proxy":"^2.4.0","uri-templates":"^0.2.0","zod-to-json-schema":"^3.24.1","@modelcontextprotocol/sdk":"^1.4.1","strict-event-emitter-types":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.4.5","@types/node":"^20.14.2","@types/uri-templates":"^0.1.34"},"_npmOperationalInternal":{"tmp":"tmp/mcp_1.1.0_1754976724676_0.3761528658504012","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@codebolt/mcp","version":"1.2.0","keywords":["mcp","model-context-protocol","server","tools","ai","llm"],"author":{"name":"Codebolt"},"license":"MIT","_id":"@codebolt/mcp@1.2.0","maintainers":[{"name":"utkarshx","email":"utk.shukla@gmail.com"}],"homepage":"https://codeboltai.github.io","bugs":{"url":"https://github.com/codeboltai/codeboltjs/issues"},"dist":{"shasum":"6e9c5a4d3a0729091b75e132dfac5f035f0f5e03","tarball":"https://registry.npmjs.org/@codebolt/mcp/-/mcp-1.2.0.tgz","fileCount":8,"integrity":"sha512-oPt60rrqf1mxa6HkAvo9SiWAQeXTAV8ewHS801cb08t4bE2d+8ylprvHRpC9oXiMcKUHgivweDyTCJYIo5iVgA==","signatures":[{"sig":"MEUCIQDLf7+rzAaoidq18JGRrt5L+WQo2IgpHpJbieakGlHkJgIgVI7CakDoxlFcrv2VNn9NGU6NIUoGcharVNgR422ztbY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70570},"main":"dist/index.js","_from":"file:codebolt-mcp-1.2.0.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"tsc --noEmit","test":"jest --passWithNoTests","build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"utkarshx","email":"utk.shukla@gmail.com"},"_resolved":"/private/var/folders/rx/lntsxpxx7h9b79h0j7mv34gc0000gn/T/df7ec480e90998310571894a2349a2a6/codebolt-mcp-1.2.0.tgz","_integrity":"sha512-oPt60rrqf1mxa6HkAvo9SiWAQeXTAV8ewHS801cb08t4bE2d+8ylprvHRpC9oXiMcKUHgivweDyTCJYIo5iVgA==","repository":{"url":"git+https://github.com/codeboltai/codeboltjs.git","type":"git","directory":"packages/mcp"},"_npmVersion":"11.5.1","description":"Model Context Protocol (MCP) server implementation for Codebolt","directories":{},"_nodeVersion":"20.18.3","dependencies":{"zod":"^3.24.1","undici":"^7.4.0","fuse.js":"^7.0.0","load-esm":"^1.0.1","file-type":"^19.6.0","mcp-proxy":"^2.4.0","uri-templates":"^0.2.0","zod-to-json-schema":"^3.24.1","@modelcontextprotocol/sdk":"^1.4.1","strict-event-emitter-types":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.4.5","@types/node":"^20.14.2","@types/uri-templates":"^0.1.34"},"_npmOperationalInternal":{"tmp":"tmp/mcp_1.2.0_1754977729040_0.46339343415473677","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@codebolt/mcp","version":"1.2.1","keywords":["mcp","model-context-protocol","server","tools","ai","llm"],"author":{"name":"Codebolt"},"license":"MIT","_id":"@codebolt/mcp@1.2.1","maintainers":[{"name":"utkarshx","email":"utk.shukla@gmail.com"}],"homepage":"https://codeboltai.github.io","bugs":{"url":"https://github.com/codeboltai/codeboltjs/issues"},"dist":{"shasum":"eabcecfa86e765c4a761b344a53b411033d2ddc1","tarball":"https://registry.npmjs.org/@codebolt/mcp/-/mcp-1.2.1.tgz","fileCount":8,"integrity":"sha512-KEPRJOqwUejs5Zzrayy10W45JxaEJrrGaMxDJHq4GjKWme6zrpRlTav6GH/nCRjxBCBFL5GoWUNv0pLqqZME4A==","signatures":[{"sig":"MEQCIC148nrb9TzLL8i0C64B8PdZ2I8IUs++aoQ0cJRgV2G8AiBqjpBTPKg6dCdgBY4wIV9XaUbyceofyaDfbYeyEdiPRg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70570},"main":"dist/index.js","_from":"file:codebolt-mcp-1.2.1.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"tsc --noEmit","test":"jest --passWithNoTests","build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"utkarshx","email":"utk.shukla@gmail.com"},"_resolved":"/private/var/folders/rx/lntsxpxx7h9b79h0j7mv34gc0000gn/T/b9d92408d68259b7fc3ebbea2168b620/codebolt-mcp-1.2.1.tgz","_integrity":"sha512-KEPRJOqwUejs5Zzrayy10W45JxaEJrrGaMxDJHq4GjKWme6zrpRlTav6GH/nCRjxBCBFL5GoWUNv0pLqqZME4A==","repository":{"url":"git+https://github.com/codeboltai/codeboltjs.git","type":"git","directory":"packages/mcp"},"_npmVersion":"11.5.1","description":"Model Context Protocol (MCP) server implementation for Codebolt","directories":{},"_nodeVersion":"20.18.3","dependencies":{"zod":"^3.24.1","undici":"^7.4.0","fuse.js":"^7.0.0","load-esm":"^1.0.1","file-type":"^19.6.0","mcp-proxy":"^2.4.0","uri-templates":"^0.2.0","zod-to-json-schema":"^3.24.1","@modelcontextprotocol/sdk":"^1.4.1","strict-event-emitter-types":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.4.5","@types/node":"^20.14.2","@types/uri-templates":"^0.1.34"},"_npmOperationalInternal":{"tmp":"tmp/mcp_1.2.1_1754978093069_0.022031923769041173","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-08-12T05:32:04.566Z","modified":"2025-10-29T13:31:59.179Z","1.1.0":"2025-08-12T05:32:04.859Z","1.2.0":"2025-08-12T05:48:49.192Z","1.2.1":"2025-08-12T05:54:53.261Z"},"bugs":{"url":"https://github.com/codeboltai/codeboltjs/issues"},"author":{"name":"Codebolt"},"license":"MIT","homepage":"https://codeboltai.github.io","keywords":["mcp","model-context-protocol","server","tools","ai","llm"],"repository":{"url":"git+https://github.com/codeboltai/codeboltjs.git","type":"git","directory":"packages/mcp"},"description":"Model Context Protocol (MCP) server implementation for Codebolt","maintainers":[{"email":"ravi@arrowai.com","name":"ravirawatsingh"},{"email":"utk.shukla@gmail.com","name":"utkarshx"}],"readme":"# @codebolt/codeboltjs-mcp\n\nModel Context Protocol (MCP) server implementation for Codebolt.\n\n## Features\n\n- Complete MCP server implementation with tools, resources, and prompts support\n- Session management and authentication\n- Image content handling with URL, file path, and buffer support\n- Event emitter for session lifecycle management\n- Support for both stdio and SSE transports\n- Built-in error handling and logging\n\n## Installation\n\n```bash\nnpm install @codebolt/codeboltjs-mcp\n```\n\n## Usage\n\n```typescript\nimport { MCPServer, imageContent } from '@codebolt/codeboltjs-mcp';\n\n// Create a new MCP server\nconst server = new MCPServer({\n  name: 'my-server',\n  version: '1.0.0'\n});\n\n// Add a tool\nserver.addTool({\n  name: 'hello',\n  description: 'Say hello',\n  execute: async (args, context) => {\n    return `Hello, ${args.name || 'World'}!`;\n  }\n});\n\n// Start the server\nawait server.start({ transportType: 'stdio' });\n```\n\n## API\n\n### Classes\n\n- `MCPServer<T>` - Main MCP server class\n- `FastMCPSession<T>` - Session management class\n- `UnexpectedStateError` - Error class for unexpected states\n- `UserError` - Error class for user-facing errors\n\n### Functions\n\n- `imageContent(input)` - Generate image content from URL, file path, or buffer\n\n### Types\n\n- `Tool<T, Params>` - Tool interface\n- `Resource` - Resource interface\n- `ResourceTemplate<Arguments>` - Resource template interface\n- `Prompt<Arguments>` - Prompt interface\n- `Content` - Content union type (text or image)\n- `ContentResult` - Tool execution result type\n","readmeFilename":"README.md"}