{"_id":"use-mcp","_rev":"18-1a28577736cff9e467fe79c84800f780","name":"use-mcp","dist-tags":{"latest":"0.0.21"},"versions":{"0.0.4":{"name":"use-mcp","version":"0.0.4","_id":"use-mcp@0.0.4","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"bin":{"use-mcp":"dist/proxy.js"},"dist":{"shasum":"0f6ab359686048c78d36c417bc360dadc385f930","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.4.tgz","fileCount":3,"integrity":"sha512-uN2xadhB2buLtVRaZY1QbKE7TbhbBRLFW470NH9hgMK3enLKmQJjMVOFda5cjVIRnKm3VIUrZoLkQ2xPlGNFdg==","signatures":[{"sig":"MEYCIQCZP6QTAz+ma8SdCzf4O943EkeUJFkHZ/0Mgj3S+rDF9QIhAIflBYooO40dsCeCcljJuT8jH07oJ4MlslnoZTrrBBmA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2041},"type":"module","gitHead":"23c8d325003d9f8a9f57596a3ee26495896802cb","scripts":{"build":"tsup"},"_npmUser":{"name":"geelen","email":"glen@glenmaddern.com"},"_npmVersion":"10.9.2","description":"**EXPERIMENTAL PROOF OF CONCEPT**","directories":{},"_nodeVersion":"22.14.0","dependencies":{"open":"^10.1.0","express":"^4.21.2","@modelcontextprotocol/sdk":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","prettier":"^3.5.3","typescript":"^5.8.2","@types/node":"^22.13.10","@types/express":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.4_1742612842720_0.7376204237369455","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"use-mcp","version":"0.0.5","_id":"use-mcp@0.0.5","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"dist":{"shasum":"c729657f28a1e252f600c0c8742789c902e3877e","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.5.tgz","fileCount":8,"integrity":"sha512-EQ6779TfNWF4H50RsUN+4MpuItwxO9xOcdmDtrgDr7Uplrgnm1c9PnfO/W3NTuEWmscleN9FxFm+58icGILMrQ==","signatures":[{"sig":"MEQCICeMWgm82Nu1j+S9ykJerWRxxnZ4FItoqa33/+f0RBAuAiBGsNznqL3eaEOiyi0QhBnXAIflM4+ZnoHh5HAMANVDbQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":244944},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"5d3317b740035d90567bcdc40adf3b485b3d8c67","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc"},"_npmUser":{"name":"geelen","email":"glen@glenmaddern.com"},"_npmVersion":"10.9.2","description":"**⚠️ Experimental: This library is new and under active development. Expect breaking changes. Please report all issues to [https://github.com/geelen/use-mcp/issues](https://github.com/geelen/use-mcp/issues).**","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","typescript":"^5.8.2","@types/react":"^19.0.12","@modelcontextprotocol/sdk":"^1.11.0"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.5_1746508417338_0.15710624030533693","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"use-mcp","version":"0.0.6","_id":"use-mcp@0.0.6","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"dist":{"shasum":"81d797b427f485b36c8c937cbadbb98d8714f953","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.6.tgz","fileCount":8,"integrity":"sha512-p2LZjuxCDyS7sRJPVvqYixR4L4nqfOc3+yF6Kv+sJcPgUJLMIM9vaS2S1XdRSvvzobiDNdUvCoWXF0iXbFX//w==","signatures":[{"sig":"MEUCIGubg6s7rLUujX0qV4F1cRCOF3jK5EA3EB3TdtpC6k/VAiEAvRxuftMmMshmXAR+HXdlqjvwY5Ow+rLyIkzWYHxK0Dg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":256791},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"53515b8fb31c6d645beab9fc5d2998f6a61ceaa7","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc"},"_npmUser":{"name":"geelen","email":"glen@glenmaddern.com"},"_npmVersion":"10.9.2","description":"A lightweight React hook for connecting to [Model Context Protocol (MCP)](https://github.com/modelcontextprotocol) servers. Simplifies authentication and tool calling for AI systems implementing the MCP standard.","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","typescript":"^5.8.2","@types/react":"^19.0.12","@modelcontextprotocol/sdk":"^1.11.0"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.6_1746597921382_0.5135728922948488","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"use-mcp","version":"0.0.7","_id":"use-mcp@0.0.7","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"dist":{"shasum":"ad3f83436e7521568439b9338a782a3c21cb20e1","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.7.tgz","fileCount":8,"integrity":"sha512-YPT4ywJLZPfNSSuPdndwK8k7YwtNGqIlk9XjCHiE2BvYC3ptBEUlC8bGsemvz83E6Xtp6OYDEGR3Z/+sURB7EQ==","signatures":[{"sig":"MEYCIQCgb5MB+a/kijaGc2cpUKJ+N2M4UfsKTPhcm6krYPL5AwIhAKMSOiGcA+2gQa3JTvPyonXX8mTT12oOOveFK7QGbIQp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42330},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"5a31434b6237665ed9278df45d179835324a6057","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc"},"_npmUser":{"name":"geelen","email":"glen@glenmaddern.com"},"_npmVersion":"10.9.2","description":"A lightweight React hook for connecting to [Model Context Protocol (MCP)](https://github.com/modelcontextprotocol) servers. Simplifies authentication and tool calling for AI systems implementing the MCP standard.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@modelcontextprotocol/sdk":"^1.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","typescript":"^5.8.2","@types/react":"^19.0.12"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.7_1746611890586_0.946272752510666","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"use-mcp","version":"0.0.8","_id":"use-mcp@0.0.8","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/geelen/use-mcp#readme","bugs":{"url":"https://github.com/geelen/use-mcp/issues"},"dist":{"shasum":"c0d2a028ed7e459cd97d678722b0e4f1ccd85e9d","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.8.tgz","fileCount":8,"integrity":"sha512-3TsakITemVQm454HBdHL7RBqL6O4oPUsNouIUu0VGnMwptbB6AgCzBdac1dRBXUDgjSWOFxhhGoMoL+ovUWdLg==","signatures":[{"sig":"MEQCIArv9wwBekbrfKuZ3aZ+xdm1DJ3HmHT6VoTDTy2GQdu2AiBFmPZD2oTDcv/ZQtO7IkXqOzEy+Ol+AEwhXeuqWQN8Xw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42956},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"d5c7bd3e2e49bec4d450f6b5caab80d5c7d33b99","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc"},"_npmUser":{"name":"geelen","email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/geelen/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"**Note:** this is currently powering https://playground.ai.cloudflare.com/ but hasn't yet been properly released as a standalone project. Technically you could use it now, but probably don't, yet.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@modelcontextprotocol/sdk":"^1.11.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","typescript":"^5.8.2","@types/react":"^19.0.12"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.8_1749601811224_0.5505497508896677","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"use-mcp","version":"0.0.9","_id":"use-mcp@0.0.9","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"d3d7c301e264ca94dd90627f57f8db02ee42d068","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.9.tgz","fileCount":8,"integrity":"sha512-YzvVz+K/Clg8sO573RPXQdr7N/NFkVNeOetiX+yse62gcws8lY9wkoROdNkf6eAfN7kkrGvcHlfQW3mavpywlQ==","signatures":[{"sig":"MEUCIQDoN24Q5cJie3R5I//cFZ++szo0IPdVrUI6jyYVq1nz5QIgaQkzGqguY6vyZhwzUh+zCI4QXHtgLZXAYjgAWXo8xeQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44652},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"de9e20bf899b41d4665929487a6d31e1e70ca18f","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy"},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.16.0","dependencies":{"@modelcontextprotocol/sdk":"^1.11.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.9_1750247550553_0.3106412416024926","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"use-mcp","version":"0.0.10","_id":"use-mcp@0.0.10","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"166fe84bb3aad1f4763323427bdd01a68a46258d","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.10.tgz","fileCount":8,"integrity":"sha512-IlemS/8udX35wbgmP6AtepT8gEX9JtAOUcsGkfqWLKIuVsL8PuBAm1ENOUXHMJUvSO3W3nuQLJT50L1FbNFlNA==","signatures":[{"sig":"MEQCIFBKYQeuHOEar77vVmzYm+w2d2dfVzSS40fdnh9mygTyAiA58voDYjMK7mJ2kSFBspCKhCO/dnH3Fd6ikghQKDEP7Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45027},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"ef08e97a5f8608868f3335669686e0046c459fd9","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy"},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.16.0","dependencies":{"strict-url-sanitise":"^0.0.1","@modelcontextprotocol/sdk":"^1.11.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.10_1750937109312_0.983434817725247","host":"s3://npm-registry-packages-npm-production"}},"0.0.11":{"name":"use-mcp","version":"0.0.11","_id":"use-mcp@0.0.11","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"e8b534d6fbe70b840f1ed45275bec7b36f89f36b","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.11.tgz","fileCount":8,"integrity":"sha512-r7rUTFmk3ST5l0raef08JnqzZ5L3ONQ0SUQM3su0vuccUU2HNRVLv4eqQdwK/cRbnUgwMnUP0YxhG7u53f1kRQ==","signatures":[{"sig":"MEUCICFVxDMT3jM4LII247WL/tEYpynuztwriFsQHsWr1F8uAiEA5lXVZFFF2lgaCDe4rHh3LnQbyabRU8rd9cCKxzzxNNI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47309},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"fa0180330ff70cef92caba2e9d78596dabefd9bc","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.16.0","dependencies":{"strict-url-sanitise":"^0.0.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5","@modelcontextprotocol/sdk":"^1.13.1"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.11_1751004793337_0.5230195717727841","host":"s3://npm-registry-packages-npm-production"}},"0.0.12":{"name":"use-mcp","version":"0.0.12","_id":"use-mcp@0.0.12","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"3ce73837b33d8688be92ec48f4105260ef15a4d6","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.12.tgz","fileCount":8,"integrity":"sha512-kfXhUEo60SE2R7HCfA4eaBKURxigYaMnHMzf0OeAlMZty4INkcDf08bC4CUaTneoG1prf+cQWHHnd/vK5z42Tw==","signatures":[{"sig":"MEYCIQD2uZPu8ZhQw+8ZU+TE5dtMzKFazEnSRtpIJTsro6EMswIhAJ963ZwA5uxIdoGrc63xlv9O8/biy3nTyAb6LJY3/zLD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47309},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"31d3108225626e8ccd323d562c896cf7a0d31b00","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.16.0","dependencies":{"strict-url-sanitise":"^0.0.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5","@modelcontextprotocol/sdk":"^1.13.1"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.12_1751005469262_0.6897075761006968","host":"s3://npm-registry-packages-npm-production"}},"0.0.13":{"name":"use-mcp","version":"0.0.13","_id":"use-mcp@0.0.13","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"0ad8da0634efeb08a2e7571d387b2085ca986cbc","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.13.tgz","fileCount":8,"integrity":"sha512-GRaRESGk1CAk/gpIWPWi1GhE07I8/PO+tI79yC9We3+2sN9domHJ730pL9nFhe4583k2iZrpJMwaBxID4IqF1Q==","signatures":[{"sig":"MEYCIQCscylZADSUPVI3I5RuEslqwNdNRUiB+uovC1Hzl7J1CgIhAJCEhRskdg3Fg2y1orl9PTCA+RVMJAl1RZikghcCUPzs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47309},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"8276b337fef17e6b02bc7b0011fde500c0287369","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.16.0","dependencies":{"strict-url-sanitise":"^0.0.1","@modelcontextprotocol/sdk":"^1.13.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.13_1751005721702_0.24777670826519493","host":"s3://npm-registry-packages-npm-production"}},"0.0.14":{"name":"use-mcp","version":"0.0.14","_id":"use-mcp@0.0.14","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"0e163623df0f1bdf28027b7e7f582b45868e5fcb","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.14.tgz","fileCount":8,"integrity":"sha512-U+AC2X9BvYBQzi91latkeGTyqlKhUmvAHYtLVnQXI4k5XxagrYQlG+GXeSvktEsW1GsAZoJ+ojU7ct0X1ORZNw==","signatures":[{"sig":"MEUCIAf6O/48RgIDz43RKViw9Swcy6zimUlK3L7RRR4mkbY7AiEA6cGCfpXaKNvc+CmAjcvxOszhKqpsnNGiMgpHnQkcSVg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46895},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"6a3130a07560e8cf1810a1f944779544396c76f8","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.16.0","dependencies":{"strict-url-sanitise":"^0.0.1","@modelcontextprotocol/sdk":"^1.13.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.14_1751027879175_0.0944935829997895","host":"s3://npm-registry-packages-npm-production"}},"0.0.15":{"name":"use-mcp","version":"0.0.15","_id":"use-mcp@0.0.15","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"e557622f42d4555099ca9fa06e6d77d7be669e58","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.15.tgz","fileCount":8,"integrity":"sha512-C93Z6rgD6bYY75XwnRcL2zQ4R20ifsyWf/7xQiBQDd4L6C189fx4gnQYNyGsiD6OrmbZulTf1ZN5XefsMdT+SA==","signatures":[{"sig":"MEUCIQCDD56y8eR5SnNI7Ekh9wXeKFDAyUGDGrS9qxEYGm9PxAIgdfj6h0+73IDquCG37GrGwKT3TJNMB/NhNnbXz0NBfmM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47077},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"feeaade511de6511fedb80e3c45b227bedf62a4d","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy","postinstall":"ln -sf ../../scripts/pre-commit .git/hooks/pre-commit","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.17.0","dependencies":{"strict-url-sanitise":"^0.0.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5","@modelcontextprotocol/sdk":"^1.13.3"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.15_1751417108285_0.553859037574167","host":"s3://npm-registry-packages-npm-production"}},"0.0.16":{"name":"use-mcp","version":"0.0.16","_id":"use-mcp@0.0.16","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"70517ef290b2abddc2acf7112f2bcad62fcb7d0d","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.16.tgz","fileCount":8,"integrity":"sha512-cJqmmPEvhBn/xdLQSYBbQdqJryT3gpOA84OVxBIgD/XO29q2gBHcX2WxZkNadnpRMpvMgEddUgfJ4nesDtJ5wA==","signatures":[{"sig":"MEUCIAoI49INRw4F7fuswSHvYnaAV+GVxRNXHw2wFbWDGk3nAiEAnfqjqUMS3/HcqlxnP72duCb+c8gSgKVBC0e5CSZrjUg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47077},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"c189d5af65c78efa64c08a157bd7f3f520325a70","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy","postinstall":"ln -sf ../../scripts/pre-commit .git/hooks/pre-commit","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.17.0","dependencies":{"strict-url-sanitise":"^0.0.1","@modelcontextprotocol/sdk":"^1.13.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.16_1751418783291_0.14639936526362174","host":"s3://npm-registry-packages-npm-production"}},"0.0.17":{"name":"use-mcp","version":"0.0.17","_id":"use-mcp@0.0.17","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"6a2850c4a200382a96efcc695d7d436585195062","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.17.tgz","fileCount":8,"integrity":"sha512-rmNDkpnROu2ennACXW5KfhHXHnfqrLsEZSlCNkUeXmkGTMxYuD65hm1q/PCKwgCTGosfahMtvdQwYOxcrMHr4w==","signatures":[{"sig":"MEUCICgQIaqtGDdPxXNSYNreWxZlk1LmjYFi514IrEDzqDxgAiEA//WYI7c3ZvHd0aorboc+EuW7o8ttbVOA8MKXiZWYnRE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50067},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"ec0eae5ea301334261f97cc7ca1a0610e8e4823e","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy","postinstall":"ln -sf ../../scripts/pre-commit .git/hooks/pre-commit","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.17.0","dependencies":{"strict-url-sanitise":"^0.0.1","@modelcontextprotocol/sdk":"^1.13.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.17_1751437531829_0.3253150348692184","host":"s3://npm-registry-packages-npm-production"}},"0.0.18":{"name":"use-mcp","version":"0.0.18","_id":"use-mcp@0.0.18","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"9b6e8a35ae8910d9aeed5e47dc687ef88ac37dd5","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.18.tgz","fileCount":8,"integrity":"sha512-4NU93NElE3XT5gqskaPp68Eot6aOtRedooaPXmfB4dVqnlH2MiS6Q1J+d1HNPbYTEC9aa/OJPkf53uZNN5vNEA==","signatures":[{"sig":"MEQCIBmyabrzu2SG61pBa/gWsp0XW/ph3Z3bpxIvVPcRu2moAiAAnzD2YgO2Du+6SkkXqZw4p1NOMA79sgHgiwbzWMVSxw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49991},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"25797dd4bba997beed961fa91a484fc1248bb871","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.17.0","dependencies":{"strict-url-sanitise":"^0.0.1","@modelcontextprotocol/sdk":"^1.13.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.18_1751452899325_0.7538075666890462","host":"s3://npm-registry-packages-npm-production"}},"0.0.19":{"name":"use-mcp","version":"0.0.19","_id":"use-mcp@0.0.19","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"dc97ccb173af2de4678a9dca2e03071ad69d72e7","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.19.tgz","fileCount":8,"integrity":"sha512-iVWgBOlz6MR9jczQUycnYfe21RLGCWIpv0NV6QTLoZfAIKqjDBuRTFxerAOMB8owFDI+zWeBCwlDDnrwkNEJ7Q==","signatures":[{"sig":"MEYCIQDyujlj49DOqYHBQpHgzr0V1gwk9vtESITFeqRiOPF0GwIhAMUgXEnY2vwGUHf9vv+9gv/uLyMc+WS4DYC9jblLxz13","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59004},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"42621bfe0283818b92c13aedeaf8b36282d47a61","scripts":{"dev":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","prepare":"husky","build:site":"npx @axodotdev/oranda build","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","deploy:site":"npx wrangler deploy","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","actor":{"name":"geelen","type":"user","email":"glen@glenmaddern.com"},"email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.17.0","dependencies":{"strict-url-sanitise":"^0.0.1","@modelcontextprotocol/sdk":"^1.13.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","husky":"^9.1.7","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","@axodotdev/oranda":"^0.6.5"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.19_1751515990237_0.7436095682226886","host":"s3://npm-registry-packages-npm-production"}},"0.0.20":{"name":"use-mcp","version":"0.0.20","_id":"use-mcp@0.0.20","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"dist":{"shasum":"1854abd48de5cc761fb064896e19cb5bcb98b546","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.20.tgz","fileCount":8,"integrity":"sha512-Sk3uyJrUwL8xopr/X8kM2RGTc5Q6CE6LJoYGDMs4f6xS6+GRwlYwemNBKw45vM1/GEX7Mp03djcikYk9i6LZTQ==","signatures":[{"sig":"MEUCIEIPsrzpWAgY7ZFr4wE6ON87kOXTgz67vFXInaZnf8PbAiEAvhY+FI6aqpFN7gm8FiRiVphn4ALk06dmPoOGSq8zekw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61371},"tsup":{"dts":true,"clean":true,"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js","require":"./dist/react/index.js"}},"gitHead":"8952e3b47d5eed15381d4871897f054b23dec759","scripts":{"dev":"concurrently 'pnpm:build:watch' 'cd examples/chat-ui && pnpm dev' 'cd examples/inspector && pnpm dev' 'sleep 1 && cd examples/servers/hono-mcp && pnpm dev' 'sleep 2 && cd examples/servers/cf-agents && pnpm dev'","build":"tsup","check":"prettier --check . && tsc","prepare":"husky","build:site":"npx @axodotdev/oranda build","deploy:all":"concurrently 'pnpm build:site && pnpm deploy:site' 'cd examples/chat-ui && pnpm run deploy' 'cd examples/inspector && pnpm run deploy'","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","build:watch":"tsup --watch","deploy:site":"npx wrangler deploy","install:all":"concurrently 'pnpm install' 'cd examples/chat-ui && pnpm install' 'cd examples/inspector && pnpm install' 'cd examples/servers/hono-mcp && pnpm install' 'cd examples/servers/cf-agents && pnpm install'","prettier:fix":"prettier --write ."},"_npmUser":{"name":"geelen","email":"glen@glenmaddern.com"},"repository":{"url":"git+https://github.com/modelcontextprotocol/use-mcp.git","type":"git"},"_npmVersion":"11.4.2","description":"<div class=\"oranda-hide\">","directories":{},"_nodeVersion":"22.17.0","dependencies":{"strict-url-sanitise":"^0.0.1","@modelcontextprotocol/sdk":"^1.13.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","husky":"^9.1.7","react":"^19.0.0","prettier":"^3.5.3","wrangler":"^4.20.2","typescript":"^5.8.2","@types/react":"^19.0.12","concurrently":"^9.2.0","@axodotdev/oranda":"^0.6.5"},"_npmOperationalInternal":{"tmp":"tmp/use-mcp_0.0.20_1753343241007_0.053456637737141266","host":"s3://npm-registry-packages-npm-production"}},"0.0.21":{"name":"use-mcp","repository":{"type":"git","url":"git+https://github.com/modelcontextprotocol/use-mcp.git"},"version":"0.0.21","type":"module","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.js","import":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","require":"./dist/react/index.js","import":"./dist/react/index.js"}},"scripts":{"install:all":"concurrently 'pnpm install' 'cd examples/chat-ui && pnpm install' 'cd examples/inspector && pnpm install' 'cd examples/servers/hono-mcp && pnpm install' 'cd examples/servers/cf-agents && pnpm install'","dev":"concurrently 'pnpm:build:watch' 'cd examples/chat-ui && pnpm dev' 'cd examples/inspector && pnpm dev' 'sleep 1 && cd examples/servers/hono-mcp && pnpm dev' 'sleep 2 && cd examples/servers/cf-agents && pnpm dev'","deploy:all":"concurrently 'pnpm build:site && pnpm deploy:site' 'cd examples/chat-ui && pnpm run deploy' 'cd examples/inspector && pnpm run deploy'","build:watch":"tsup --watch","build":"tsup","check":"prettier --check . && tsc","prettier:fix":"prettier --write .","fix:oranda":"sed -i 's/```tsx/```ts/g' README.md","build:site":"npx @axodotdev/oranda build","deploy:site":"npx wrangler deploy","prepare":"husky"},"dependencies":{"@modelcontextprotocol/sdk":"^1.13.3","strict-url-sanitise":"^0.0.1"},"devDependencies":{"@axodotdev/oranda":"^0.6.5","@types/react":"^19.0.12","concurrently":"^9.2.0","husky":"^9.1.7","prettier":"^3.5.3","react":"^19.0.0","tsup":"^8.4.0","tsx":"^4.19.3","typescript":"^5.8.2","wrangler":"^4.20.2"},"tsup":{"entry":["src/index.ts","src/react/index.ts"],"format":["esm"],"dts":true,"clean":true,"outDir":"dist","external":["react","@modelcontextprotocol/sdk"]},"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","_id":"use-mcp@0.0.21","gitHead":"40c02d2d982a4fd99d08b931801e10728993c79f","description":"<div class=\"oranda-hide\">","bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","_nodeVersion":"22.17.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-mF6WlWEnOWubUphXeNE3sc7/5dvlvN2AsUNla20EHPmwqqrt/LCdRIW0TWY+OgAX6O7HjZ+z2p8sKWG5OiObSg==","shasum":"e5f9235e7d86d18c91dfede65198537d09b224be","tarball":"https://registry.npmjs.org/use-mcp/-/use-mcp-0.0.21.tgz","fileCount":8,"unpackedSize":61595,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDQRT8iKyjOytYCaYIGF7eJg3Ne4GmAJZeRENinryOqSwIgXg26qNkw28rAlf/0oPcWMiSNGwi0fNOY67nSNniN1yE="}]},"_npmUser":{"name":"geelen","email":"glen@glenmaddern.com"},"directories":{},"maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/use-mcp_0.0.21_1753438563876_0.7562280786321038"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-22T03:07:22.719Z","modified":"2025-07-25T10:16:04.269Z","0.0.4":"2025-03-22T03:07:22.919Z","0.0.5":"2025-05-06T05:13:37.537Z","0.0.6":"2025-05-07T06:05:21.568Z","0.0.7":"2025-05-07T09:58:10.764Z","0.0.8":"2025-06-11T00:30:11.437Z","0.0.9":"2025-06-18T11:52:30.722Z","0.0.10":"2025-06-26T11:25:09.496Z","0.0.11":"2025-06-27T06:13:13.511Z","0.0.12":"2025-06-27T06:24:29.501Z","0.0.13":"2025-06-27T06:28:41.913Z","0.0.14":"2025-06-27T12:37:59.328Z","0.0.15":"2025-07-02T00:45:08.502Z","0.0.16":"2025-07-02T01:13:03.508Z","0.0.17":"2025-07-02T06:25:32.023Z","0.0.18":"2025-07-02T10:41:39.509Z","0.0.19":"2025-07-03T04:13:10.424Z","0.0.20":"2025-07-24T07:47:21.165Z","0.0.21":"2025-07-25T10:16:04.081Z"},"bugs":{"url":"https://github.com/modelcontextprotocol/use-mcp/issues"},"homepage":"https://github.com/modelcontextprotocol/use-mcp#readme","repository":{"type":"git","url":"git+https://github.com/modelcontextprotocol/use-mcp.git"},"description":"<div class=\"oranda-hide\">","maintainers":[{"name":"geelen","email":"glen@glenmaddern.com"}],"readme":"<div class=\"oranda-hide\">\n\n# 🦑 use-mcp 🦑\n\n</div>\n\n[![GitHub last commit](https://img.shields.io/github/last-commit/modelcontextprotocol/use-mcp?logo=github&style=flat&label=​)](https://github.com/modelcontextprotocol/use-mcp)&nbsp; [![npm](https://img.shields.io/npm/v/use-mcp?label=​&logo=npm)](https://www.npmjs.com/package/use-mcp) ![GitHub License](https://img.shields.io/github/license/modelcontextprotocol/use-mcp)\n\nA lightweight React hook for connecting to [Model Context Protocol (MCP)](https://github.com/modelcontextprotocol) servers. Simplifies authentication and tool calling for AI systems implementing the MCP standard.\n\nTry it out: [Chat Demo](https://chat.use-mcp.dev) | [MCP Inspector](https://inspector.use-mcp.dev) | [Cloudflare Workers AI Playground](https://playground.ai.cloudflare.com/)\n\n## Installation\n\n```bash\nnpm install use-mcp\n# or\npnpm add use-mcp\n# or\nyarn add use-mcp\n```\n\n## Development\n\nTo run the development environment with all examples and servers:\n\n```bash\npnpm dev\n```\n\nThis starts:\n- **Inspector**: http://localhost:5001 - MCP server debugging tool\n- **Chat UI**: http://localhost:5002 - Example chat interface\n- **Hono MCP Server**: http://localhost:5101 - Example MCP server\n- **CF Agents MCP Server**: http://localhost:5102 - Cloudflare Workers AI MCP server\n\n### Testing\n\nIntegration tests are located in the `test/` directory and run headlessly by default:\n\n```bash\ncd test && pnpm test              # Run tests headlessly (default)\ncd test && pnpm test:headed       # Run tests with visible browser\ncd test && pnpm test:watch        # Run tests in watch mode\ncd test && pnpm test:ui           # Run tests with interactive UI\n```\n\n## Features\n\n- 🔄 Automatic connection management with reconnection and retries\n- 🔐 OAuth authentication flow handling with popup and fallback support\n- 📦 Simple React hook interface for MCP integration\n- 🧰 Full support for MCP tools, resources, and prompts\n- 📄 Access server resources and read their contents\n- 💬 Use server-provided prompt templates\n- 🧰 TypeScript types for editor assistance and type checking\n- 📝 Comprehensive logging for debugging\n- 🌐 Works with both HTTP and SSE (Server-Sent Events) transports\n\n## Quick Start\n\n```tsx\nimport { useMcp } from 'use-mcp/react'\n\nfunction MyAIComponent() {\n  const {\n    state,          // Connection state: 'discovering' | 'pending_auth' | 'authenticating' | 'connecting' | 'loading' | 'ready' | 'failed'\n    tools,          // Available tools from MCP server\n    resources,      // Available resources from MCP server\n    prompts,        // Available prompts from MCP server\n    error,          // Error message if connection failed\n    callTool,       // Function to call tools on the MCP server\n    readResource,   // Function to read resource contents\n    getPrompt,      // Function to get prompt messages\n    retry,          // Retry connection manually\n    authenticate,   // Manually trigger authentication\n    clearStorage,   // Clear stored tokens and credentials\n  } = useMcp({\n    url: 'https://your-mcp-server.com',\n    clientName: 'My App',\n    autoReconnect: true,\n  })\n\n  // Handle different states\n  if (state === 'failed') {\n    return (\n      <div>\n        <p>Connection failed: {error}</p>\n        <button onClick={retry}>Retry</button>\n        <button onClick={authenticate}>Authenticate Manually</button>\n      </div>\n    )\n  }\n\n  if (state !== 'ready') {\n    return <div>Connecting to AI service...</div>\n  }\n\n  // Use available tools\n  const handleSearch = async () => {\n    try {\n      const result = await callTool('search', { query: 'example search' })\n      console.log('Search results:', result)\n    } catch (err) {\n      console.error('Tool call failed:', err)\n    }\n  }\n\n  return (\n    <div>\n      <h2>Available Tools: {tools.length}</h2>\n      <ul>\n        {tools.map(tool => (\n          <li key={tool.name}>{tool.name}</li>\n        ))}\n      </ul>\n      <button onClick={handleSearch}>Search</button>\n      \n      {/* Example: Display and read resources */}\n      {resources.length > 0 && (\n        <div>\n          <h3>Resources: {resources.length}</h3>\n          <button onClick={async () => {\n            const content = await readResource(resources[0].uri)\n            console.log('Resource content:', content)\n          }}>\n            Read First Resource\n          </button>\n        </div>\n      )}\n      \n      {/* Example: Use prompts */}\n      {prompts.length > 0 && (\n        <div>\n          <h3>Prompts: {prompts.length}</h3>\n          <button onClick={async () => {\n            const result = await getPrompt(prompts[0].name)\n            console.log('Prompt messages:', result.messages)\n          }}>\n            Get First Prompt\n          </button>\n        </div>\n      )}\n    </div>\n  )\n}\n```\n\n## Setting Up OAuth Callback\n\nTo handle the OAuth authentication flow, you need to set up a callback endpoint in your app.\n\n### With React Router\n\n```tsx\n// App.tsx with React Router\nimport { BrowserRouter as Router, Routes, Route } from 'react-router-dom'\nimport { useEffect } from 'react'\nimport { onMcpAuthorization } from 'use-mcp'\n\nfunction OAuthCallback() {\n  useEffect(() => {\n    onMcpAuthorization()\n  }, [])\n\n  return (\n    <div>\n      <h1>Authenticating...</h1>\n      <p>This window should close automatically.</p>\n    </div>\n  )\n}\n\nfunction App() {\n  return (\n    <Router>\n      <Routes>\n        <Route path=\"/oauth/callback\" element={<OAuthCallback />} />\n        <Route path=\"/\" element={<YourMainComponent />} />\n      </Routes>\n    </Router>\n  )\n}\n```\n\n### With Next.js Pages Router\n\n```tsx\n// pages/oauth/callback.tsx\nimport { useEffect } from 'react'\nimport { onMcpAuthorization } from 'use-mcp'\n\nexport default function OAuthCallbackPage() {\n  useEffect(() => {\n    onMcpAuthorization()\n  }, [])\n\n  return (\n    <div>\n      <h1>Authenticating...</h1>\n      <p>This window should close automatically.</p>\n    </div>\n  )\n}\n```\n\n## API Reference\n\n### `useMcp` Hook\n\n```ts\nfunction useMcp(options: UseMcpOptions): UseMcpResult\n```\n\n#### Options\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `url` | `string` | **Required**. URL of your MCP server |\n| `clientName` | `string` | Name of your client for OAuth registration |\n| `clientUri` | `string` | URI of your client for OAuth registration |\n| `callbackUrl` | `string` | Custom callback URL for OAuth redirect (defaults to `/oauth/callback` on the current origin) |\n| `storageKeyPrefix` | `string` | Storage key prefix for OAuth data in localStorage (defaults to \"mcp:auth\") |\n| `clientConfig` | `object` | Custom configuration for the MCP client identity |\n| `debug` | `boolean` | Whether to enable verbose debug logging |\n| `autoRetry` | `boolean \\| number` | Auto retry connection if initial connection fails, with delay in ms |\n| `autoReconnect` | `boolean \\| number` | Auto reconnect if an established connection is lost, with delay in ms (default: 3000) |\n| `transportType` | `'auto' \\| 'http' \\| 'sse'` | Transport type preference: 'auto' (HTTP with SSE fallback), 'http' (HTTP only), 'sse' (SSE only) (default: 'auto') |\n| `preventAutoAuth` | `boolean` | Prevent automatic authentication popup on initial connection (default: false) |\n| `onPopupWindow` | `(url: string, features: string, window: Window \\| null) => void` | Callback invoked just after the authentication popup window is opened |\n\n#### Return Value\n\n| Property | Type | Description |\n|----------|------|-------------|\n| `state` | `string` | Current connection state: 'discovering', 'pending_auth', 'authenticating', 'connecting', 'loading', 'ready', 'failed' |\n| `tools` | `Tool[]` | Available tools from the MCP server |\n| `resources` | `Resource[]` | Available resources from the MCP server |\n| `resourceTemplates` | `ResourceTemplate[]` | Available resource templates from the MCP server |\n| `prompts` | `Prompt[]` | Available prompts from the MCP server |\n| `error` | `string \\| undefined` | Error message if connection failed |\n| `authUrl` | `string \\| undefined` | Manual authentication URL if popup is blocked |\n| `log` | `{ level: 'debug' \\| 'info' \\| 'warn' \\| 'error'; message: string; timestamp: number }[]` | Array of log messages |\n| `callTool` | `(name: string, args?: Record<string, unknown>) => Promise<any>` | Function to call a tool on the MCP server |\n| `listResources` | `() => Promise<void>` | Refresh the list of available resources |\n| `readResource` | `(uri: string) => Promise<{ contents: Array<...> }>` | Read the contents of a specific resource |\n| `listPrompts` | `() => Promise<void>` | Refresh the list of available prompts |\n| `getPrompt` | `(name: string, args?: Record<string, string>) => Promise<{ messages: Array<...> }>` | Get a specific prompt with optional arguments |\n| `retry` | `() => void` | Manually attempt to reconnect |\n| `disconnect` | `() => void` | Disconnect from the MCP server |\n| `authenticate` | `() => void` | Manually trigger authentication |\n| `clearStorage` | `() => void` | Clear all stored authentication data |\n\n## License\n\nMIT","readmeFilename":"README.md"}