{"_id":"@clerk/mcp-tools","_rev":"22-7065e9bfc8515d59756b87012892ded9","name":"@clerk/mcp-tools","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"@clerk/mcp-tools","version":"0.0.1","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.0.1","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"2197fe49d069fe372cc76bc001ab28dcb9c84c02","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.0.1.tgz","fileCount":14,"integrity":"sha512-WFzDKXNTFP3CjZrEHbkTx2kN/8oXY076aZw5dj6uf5T6HNewlMTd07E8Zia7ZljyzzHD3Hhwfdfw2n/xYU+YWQ==","signatures":[{"sig":"MEQCIC6pJ1uZbPPo0ithqqHxNwybB48Xa5VnpSxtNbT31NBdAiBl4E1ImwB48mkDnZI7sJb8ETtMqSMDEwjeFcWBnLH4Mg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50689},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","stores/fs.ts"],"format":["esm"]},"type":"module","gitHead":"025865e999a5eb15329fff2e1cca1593c975d740","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.3.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@modelcontextprotocol/sdk":"^1.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^15.3.2","tsup":"^8.5.0","typescript":"^5.8.3","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.0.1_1748900299625_0.31226123680777906","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@clerk/mcp-tools","version":"0.0.2","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.0.2","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"211d46139c3072a83e1f218b7280ce7000ea1bd5","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.0.2.tgz","fileCount":20,"integrity":"sha512-uXqsRXeKYHXp1HiWVc48s/xE2frjxIK5Foz2X10bPqMoRoIdgtbdfoy/9rQXps2UQ+ZBUo7xG2G3duR4ci44FQ==","signatures":[{"sig":"MEYCIQCON9y+OPrjQLZLwC84rBgFbXQGPlEAPJMjYS5WNyRkgAIhAJy4jY+mLt7AH8rRhsPU26einzvobGozIfqHa1JU02if","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84918},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"a65ad095bead681508285d743fbe977779ea48f9","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.3.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@modelcontextprotocol/sdk":"^1.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.11.0","next":"^15.3.2","tsup":"^8.5.0","redis":"^4.0.0","@types/pg":"^8.10.0","typescript":"^5.8.3","@types/node":"^22.15.21","better-sqlite3":"^8.7.0","@types/better-sqlite3":"^7.6.0"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.0.2_1748919723419_0.3356276702591756","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@clerk/mcp-tools","version":"0.0.3","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.0.3","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"6f6678933187aad1321b170687d4df3fd0007728","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.0.3.tgz","fileCount":20,"integrity":"sha512-0JjDmWlIw6XpvrLuz/MGtImOd8Cwgy4f5DySUCHatgQ87vHCcqdYE8iW9hgvc4SYbbvoBmJvsI0tyDx+/kuwcQ==","signatures":[{"sig":"MEUCIDKl3fK1Jb/IucJWwoK4/uBeXi956HNEgXHxJ0yo8vfOAiEAo68ouZT2Y1TiGaF99O3rEYATojnQG6Ngq7TwdemS1Zs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":83407},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"4e1168bfea7ff85db52597dc4c6394a73731d5a4","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.3.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@modelcontextprotocol/sdk":"^1.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.11.0","next":"^15.3.2","tsup":"^8.5.0","redis":"^4.0.0","@types/pg":"^8.10.0","typescript":"^5.8.3","@types/node":"^22.15.21","better-sqlite3":"^8.7.0","@types/better-sqlite3":"^7.6.0"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.0.3_1749257053580_0.09695960343988608","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@clerk/mcp-tools","version":"0.0.4","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.0.4","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"3db6da076da8db52fadad1b95227682014412474","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.0.4.tgz","fileCount":22,"integrity":"sha512-vOagqtUSe2tKKxfPszTom/4HFCiQPNamdgWpqUsrGhJiYkJYOi9IYnSx7yodhef9AAbUCtf4PIxVl4Wg33uxNw==","signatures":[{"sig":"MEQCIEx7Bx4glM2vhnS571LuIR8aCDsBbZHV0I0w57jBE8K6AiBm5OCgZOU+zMafEvxnHzVmWY7bGUsODk03s7Bsei0a8A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":301760},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","express/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.ts","import":"./dist/express/index.js"},"./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"5ceae9d8cff9a6fba52458ef538bcb0aaa96af67","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","actor":{"name":"jescalan","type":"user","email":"soft.joy1514@fastmail.com"},"email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.3.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@modelcontextprotocol/sdk":"^1.12.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.0","next":"^15.3.3","tsup":"^8.5.0","redis":"^5.5.6","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.0.3","@clerk/express":"^1.7.0","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.0.4_1750272810808_0.7772628745162713","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@clerk/mcp-tools","version":"0.0.5","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.0.5","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"e958d5be5af76e12d764a13d08eb357683a98edd","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.0.5.tgz","fileCount":22,"integrity":"sha512-5GCDCLh7lwzealSFAoo7Hn4Dq+HNoCMuJs/jiWZ77kR+gLon6XWmNdFAUv5BNO20/H7nkghUEeEIBpHr7wagJQ==","signatures":[{"sig":"MEQCIEw8aw6UmgNsQeDT1l++mLA/moOgd7kR4ASSOOq4GtdFAiBaeztLmmnFPe4RY1UvyGzXOpCzYinfafcp96KRdxUN5A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":302321},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","express/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.ts","import":"./dist/express/index.js"},"./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"ad8c884546767fad491bd9be0200d60bf03e643e","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","actor":{"name":"jescalan","type":"user","email":"soft.joy1514@fastmail.com"},"email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.3.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@modelcontextprotocol/sdk":"^1.12.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.0","next":"^15.3.3","tsup":"^8.5.0","redis":"^5.5.6","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.0.3","@clerk/express":"^1.7.0","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.0.5_1750716719352_0.20636346185191168","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@clerk/mcp-tools","version":"0.1.0","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.1.0","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"751e1d36e3610e8742865027dd3ba4160062fac7","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.1.0.tgz","fileCount":27,"integrity":"sha512-z6DWbdxxlc2PeKx8LwRMsGFaWmbjypCX1RPypnLws4twRXb0YR7B2LU8mP0xezTshGKhZ4udVmGGJvGpieQ21w==","signatures":[{"sig":"MEYCIQDLWdltAto1OMOxQ6/WZC0ahJwYqnUL2Ewb9lExysXbogIhAMaVgzDpPUn+LzkmLX+/uSzGINut5B2/6TYCKUKZYOM0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":687896},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","express/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.ts","import":"./dist/express/index.js"},"./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"99277cb743e5ffa3336cbcabd9041b0e66e1cad2","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","actor":{"name":"jescalan","type":"user","email":"soft.joy1514@fastmail.com"},"email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.3.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@modelcontextprotocol/sdk":"^1.12.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.0","next":"^15.3.3","tsup":"^8.5.0","redis":"^5.5.6","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.0.3","@clerk/nextjs":"^6.23.0","@clerk/express":"^1.7.0","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.1.0_1750859689062_0.8961534320921332","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@clerk/mcp-tools","version":"0.1.1","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.1.1","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"611d5f098850bb1a783a8187e8f0f9b2bb258e9e","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.1.1.tgz","fileCount":22,"integrity":"sha512-SHoLmSAXtG4lXoVI4rbFScPP5GHK8YAvFFFh/NtKO8enaSnytv8gm7JKxymaxP7+OvRasQpmIJ8KmMR84sxhig==","signatures":[{"sig":"MEUCIF3VJ1g0VLoVSM/wQCNBp+1azNb6vlfL1PMhg0cZaq1YAiEApa/MI+FR0pImAzKaPmY3RT5LQ3y4qAHIVsBWSzkZUjw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":307242},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","express/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.ts","import":"./dist/express/index.js"},"./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"39ac87d576e18f906a6b2a852d04ecc4bb0b97aa","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","actor":{"name":"jescalan","type":"user","email":"soft.joy1514@fastmail.com"},"email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.3.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@modelcontextprotocol/sdk":"^1.12.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.0","next":"^15.3.3","tsup":"^8.5.0","redis":"^5.5.6","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.0.3","@clerk/nextjs":"^6.23.0","@clerk/express":"^1.7.0","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.1.1_1750864822382_0.5501396149164224","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@clerk/mcp-tools","version":"0.2.1","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.2.1","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"161fee43b39ddeb056b354752964ac5a276e3293","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.2.1.tgz","fileCount":22,"integrity":"sha512-SodIzwCrOCZ8QglJVk5eI+0xCi+Je32k+1kfiYXk3ku3TDguLRp6BHoeFHcIEsKN5mQolW/AQs4e/Kc7483/wQ==","signatures":[{"sig":"MEUCIFNXDoO7LIwZ9S8DX+3bUv39gC0rIMwZCKIWFyx1MiGkAiEAvtdjTruJmJp/NGMCFJ9dPlrovv0LbBdkBkgNFLpk/ls=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":308233},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","express/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.ts","import":"./dist/express/index.js"},"./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"bb9bbf46ff1fcff838ecb10fafa7a7dbdc934620","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.3.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@modelcontextprotocol/sdk":"^1.12.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.0","next":"^15.3.3","tsup":"^8.5.0","redis":"^5.5.6","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.0.3","@clerk/nextjs":"^6.23.0","@clerk/express":"^1.7.0","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.2.1_1753418473731_0.041229445582956936","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@clerk/mcp-tools","version":"0.2.2","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.2.2","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"4e8521b53830f3251c6cfb166e05ca52b9636b11","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.2.2.tgz","fileCount":22,"integrity":"sha512-ntYtvCvWAHVS8hDcLdo3KbEfevrOuO63mTEeoqaGiUq6JM4hNEKRrWIBiQfojjxi+8miQ/XEo0e/nu4i4YHLxA==","signatures":[{"sig":"MEUCIHTy8xv04VMcqf0N+XnuHELVL/AA1Yw+Vohcjvey+DwpAiEAmOtwVhBie/9vddddBVxX28Oi8j2imp0bU2oUO2GSZEc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":312181},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","express/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.ts","import":"./dist/express/index.js"},"./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"af22e53e5cfc0bed51b885473642d7f386f5e0b5","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"10.9.2","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.17.1","dependencies":{"@modelcontextprotocol/sdk":"^1.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.3","next":"^15.4.4","tsup":"^8.5.0","redis":"^5.5.6","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.1.0","@clerk/nextjs":"^6.26.0","@clerk/express":"^1.7.12","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.2.2_1753458072227_0.15294149994242212","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@clerk/mcp-tools","version":"0.3.0","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.3.0","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"18dfabd2136748fab639dfa41528f32ecab3adf1","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.3.0.tgz","fileCount":22,"integrity":"sha512-53YMTUFJELtNwuSatJN+FSGAiC98Jn76jKaiZr0m73ch60xh6BN9Hqpchktpgl9zqKfZ1ZfYJQmLh3tjQVP7Hw==","signatures":[{"sig":"MEQCIGaibgvR5yA/rqykZ9OGNtTr5t+ad66YeAHBD+U2e5xTAiB1Nl11wxQVjH/Hxj1pI3HmSxSlkcyAYOqz8lyXPKlNyA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":312048},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","express/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.ts","import":"./dist/express/index.js"},"./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"0acbbd82e6644f06007afac953492be3b763f787","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"10.9.2","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.17.1","dependencies":{"@modelcontextprotocol/sdk":"^1.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.3","next":"^15.4.4","tsup":"^8.5.0","redis":"^5.5.6","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.1.0","@clerk/nextjs":"^6.26.0","@clerk/express":"^1.7.12","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.3.0_1753486209043_0.8612253763841","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@clerk/mcp-tools","version":"0.3.1","keywords":["mcp","model","context","protocol","clerk","auth"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.3.1","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"ce28d2a97d68a4b66d5749637af2543389878fbb","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.3.1.tgz","fileCount":22,"integrity":"sha512-c/7bmT9KxA3CYVhCS08RGmVwjU8+zJ6ZCuIA5KpcJfE5xh8XLKKvZzOD4mP0GgvUGjcnT+IViaqBRlRKAyE5rw==","signatures":[{"sig":"MEUCIH4kSdMqqmziV+hqhpbxJXuBH4vTAjoUJUKIa5XYw8y1AiEA2eFXalGKhL2vnJ3NZXOFwSqyDuv1ebBqvpyZlL7Hp+o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":312047},"main":"dist/","tsup":{"dts":true,"clean":true,"entry":["client.ts","server.ts","next/index.ts","express/index.ts","stores/fs.ts","stores/redis.ts","stores/postgres.ts","stores/sqlite.ts"],"format":["esm"],"external":["redis","pg","better-sqlite3"]},"type":"module","exports":{"./next":{"types":"./dist/next/index.d.ts","import":"./dist/next/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.ts","import":"./dist/express/index.js"},"./stores/fs":{"types":"./dist/stores/fs.d.ts","import":"./dist/stores/fs.js"},"./stores/redis":{"types":"./dist/stores/redis.d.ts","import":"./dist/stores/redis.js"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.ts","import":"./dist/stores/sqlite.js"},"./stores/postgres":{"types":"./dist/stores/postgres.d.ts","import":"./dist/stores/postgres.js"}},"gitHead":"b7357e5c84f2e7205001c8be2f7858b55dcb9e1f","scripts":{"build":"tsup","watch":"tsup --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"jescalan","email":"soft.joy1514@fastmail.com"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.3.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"22.11.0","dependencies":{"@modelcontextprotocol/sdk":"^1.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.3","next":"^15.4.4","tsup":"^8.5.0","redis":"^5.5.6","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.1.0","@clerk/nextjs":"^6.26.0","@clerk/express":"^1.7.12","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","redis":"^4.0.0","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"redis":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.3.1_1754689258046_0.6490492817741913","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@clerk/mcp-tools","version":"0.5.0","keywords":["auth","clerk","context","mcp","model","protocol"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.5.0","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikosdouvlis@gmail.com"},{"name":"chanioxaris","email":"haris@clerk.dev"},{"name":"jescalan","email":"soft.joy1514@fastmail.com"},{"name":"bkalow","email":"hello@brycekalow.name"},{"name":"dominic-clerk","email":"dominic@clerk.dev"},{"name":"mwickett","email":"mike@wickett.ca"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"688c256496ad443d89e4ab05354fa0c8adeaaad7","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.5.0.tgz","fileCount":20,"integrity":"sha512-phMaAffY/Jc0B84R59opIMJCHw/aMYtJZV/wmBzJSbLlbYkwdtNa8EECiIaHylvIfCd2j5vXuZBpBa7fOng0oQ==","signatures":[{"sig":"MEQCIHoKOhtHegD5iRdkRsNQ1HzLiZ/QfG6HLzgNFhzwKVisAiA1GuMdd+4OTfbKciC1BvjDbjnKXWAXAWpLx/xgVxKfCg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clerk%2fmcp-tools@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":113839},"main":"dist/","type":"module","_from":"file:clerk-mcp-tools-0.5.0.tgz","exports":{"./next":{"types":"./dist/next/index.d.mts","import":"./dist/next/index.mjs"},"./client":{"types":"./dist/client.d.mts","import":"./dist/client.mjs"},"./server":{"types":"./dist/server.d.mts","import":"./dist/server.mjs"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.mts","import":"./dist/express/index.mjs"},"./stores/fs":{"types":"./dist/stores/fs.d.mts","import":"./dist/stores/fs.mjs"},"./stores/redis":{"types":"./dist/stores/redis.d.mts","import":"./dist/stores/redis.mjs"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.mts","import":"./dist/stores/sqlite.mjs"},"./stores/postgres":{"types":"./dist/stores/postgres.d.mts","import":"./dist/stores/postgres.mjs"}},"scripts":{"fmt":"oxfmt","lint":"oxlint","build":"tsdown","watch":"tsdown --watch","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:192c4ef0-655b-4615-a498-1854c5ea160b"}},"_resolved":"/tmp/a898b35217dfd348de529afe8e85324b/clerk-mcp-tools-0.5.0.tgz","_integrity":"sha512-phMaAffY/Jc0B84R59opIMJCHw/aMYtJZV/wmBzJSbLlbYkwdtNa8EECiIaHylvIfCd2j5vXuZBpBa7fOng0oQ==","repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.11.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"24.14.1","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.3","next":"^15.5.15","oxfmt":"^0.45.0","redis":"^5.5.6","oxlint":"^1.60.0","tsdown":"^0.21.9","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.1.0","@clerk/nextjs":"^7.2.3","@clerk/backend":"^3.2.13","@clerk/express":"^2.1.5","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","next":"^15.2.8 || ^15.3.8 || ^15.4.10 || ^15.5.9 || ^15.6.0-0 || ^16.0.10 || ^16.1.0-0","redis":"^4.0.0","express":"^5.0.0","@clerk/nextjs":"^7.2.3","@clerk/express":"^2.1.5","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"next":{"optional":true},"redis":{"optional":true},"express":{"optional":true},"@clerk/nextjs":{"optional":true},"@clerk/express":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.5.0_1776878208096_0.030733593328333475","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@clerk/mcp-tools","version":"0.6.0","keywords":["auth","clerk","context","mcp","model","protocol"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.6.0","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikos@clerk.dev"},{"name":"jescalan","email":"jeff@clerk.dev"},{"name":"brkalow-clerk","email":"bryce@clerk.dev"},{"name":"dominic-clerk","email":"dominic@clerk.dev"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"7bd8bf0e5aa36b1e987817bf24b8d1852d6408eb","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.6.0.tgz","fileCount":23,"integrity":"sha512-YXGZujj6oxD5T4XOi08UsLbPiWYD88Fe1uOwqZQekak8i2vitOgugRw7guwat3GuzQearRGdsW1P5AweQ043Sg==","signatures":[{"sig":"MEYCIQC5P72rgRowuCv2mk1/DSOceJ+cUVUAzYGh8HBnEbr6VAIhAN9r7wuW+jm2BtpnGRQbU0Sf2hVRVNn4VCN4Dg1pKc6A","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clerk%2fmcp-tools@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":122450},"main":"dist/","type":"module","_from":"file:clerk-mcp-tools-0.6.0.tgz","exports":{"./hono":{"types":"./dist/hono/index.d.mts","import":"./dist/hono/index.mjs"},"./next":{"types":"./dist/next/index.d.mts","import":"./dist/next/index.mjs"},"./client":{"types":"./dist/client.d.mts","import":"./dist/client.mjs"},"./server":{"types":"./dist/server.d.mts","import":"./dist/server.mjs"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.mts","import":"./dist/express/index.mjs"},"./stores/fs":{"types":"./dist/stores/fs.d.mts","import":"./dist/stores/fs.mjs"},"./stores/redis":{"types":"./dist/stores/redis.d.mts","import":"./dist/stores/redis.mjs"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.mts","import":"./dist/stores/sqlite.mjs"},"./stores/postgres":{"types":"./dist/stores/postgres.d.mts","import":"./dist/stores/postgres.mjs"}},"scripts":{"fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","watch":"tsdown --watch","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:192c4ef0-655b-4615-a498-1854c5ea160b"}},"_resolved":"/tmp/61a69c6ae20ecd41565487ce47a8528a/clerk-mcp-tools-0.6.0.tgz","_integrity":"sha512-YXGZujj6oxD5T4XOi08UsLbPiWYD88Fe1uOwqZQekak8i2vitOgugRw7guwat3GuzQearRGdsW1P5AweQ043Sg==","repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.16.0","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.3","hono":"^4.12.14","next":"^15.5.15","oxfmt":"^0.45.0","redis":"^5.5.6","oxlint":"^1.60.0","tsdown":"^0.21.9","vitest":"^4.1.4","@types/pg":"^8.15.4","typescript":"^5.8.3","@clerk/hono":"^0.1.15","@types/node":"^24.1.0","@clerk/nextjs":"^7.2.3","@clerk/backend":"^3.2.13","@clerk/express":"^2.1.5","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","hono":"^4.0.0","next":"^15.2.8 || ^15.3.8 || ^15.4.10 || ^15.5.9 || ^15.6.0-0 || ^16.0.10 || ^16.1.0-0","redis":"^4.0.0","express":"^5.0.0","@clerk/hono":"^0.1.0","@clerk/nextjs":"^7.2.3","@clerk/express":"^2.1.5","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"hono":{"optional":true},"next":{"optional":true},"redis":{"optional":true},"express":{"optional":true},"@clerk/hono":{"optional":true},"@clerk/nextjs":{"optional":true},"@clerk/express":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.6.0_1784053869079_0.4409626527691437","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@clerk/mcp-tools","version":"0.7.0","keywords":["auth","clerk","context","mcp","model","protocol"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.7.0","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikos@clerk.dev"},{"name":"jescalan","email":"jeff@clerk.dev"},{"name":"brkalow-clerk","email":"bryce@clerk.dev"},{"name":"dominic-clerk","email":"dominic@clerk.dev"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"6673ae0ff69b36a8d11a9f6673fcfc574e83f806","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.7.0.tgz","fileCount":25,"integrity":"sha512-WVmU/sbrQptdVEQUlUEWmsIkQifCB68ypJi4C1joPrBecjT/b9LyfxDLHOKZ4CGzx2rYSsOsxm2awpL6fzupFQ==","signatures":[{"sig":"MEUCIHjlsVKLrA/DDABlRUZvzOEgat5lUfmb3M3Lyr6Cv+/UAiEAgsnrdab1fergInqEAFwN7BgeqteeYK5yjHu/t8r34WE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCHIa9uap9H70xaBJCvEPWhu7GNfklPB3WZhKuX7N9SXQIgeItB1MnAase2ea48FGWJomiKosMSN6hM/yLp4+/W/Ok=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":140411},"main":"dist/","type":"module","exports":{"./hono":{"types":"./dist/hono/index.d.mts","import":"./dist/hono/index.mjs"},"./next":{"types":"./dist/next/index.d.mts","import":"./dist/next/index.mjs"},"./client":{"types":"./dist/client.d.mts","import":"./dist/client.mjs"},"./server":{"types":"./dist/server.d.mts","import":"./dist/server.mjs"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.mts","import":"./dist/express/index.mjs"},"./feedback":{"types":"./dist/feedback.d.mts","import":"./dist/feedback.mjs"},"./stores/fs":{"types":"./dist/stores/fs.d.mts","import":"./dist/stores/fs.mjs"},"./stores/redis":{"types":"./dist/stores/redis.d.mts","import":"./dist/stores/redis.mjs"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.mts","import":"./dist/stores/sqlite.mjs"},"./stores/postgres":{"types":"./dist/stores/postgres.d.mts","import":"./dist/stores/postgres.mjs"}},"gitHead":"eb0a96fcf50f2e7f6716a8dc6d46b242e11e9a45","scripts":{"fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","watch":"tsdown --watch","release":"changeset publish && git push --follow-tags","lint:fix":"oxlint --fix","changeset":"changeset","fmt:check":"oxfmt --check","test:watch":"vitest","prepublishOnly":"npm run build","changeset:empty":"pnpm changeset --empty","version-packages":"changeset version && pnpm install --lockfile-only --engine-strict=false"},"_npmUser":{"name":"brkalow-clerk","email":"bryce@clerk.dev"},"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"10.9.2","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"23.11.1","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b","devDependencies":{"pg":"^8.16.3","zod":"^3.25.27","hono":"^4.12.14","next":"^15.5.15","oxfmt":"^0.45.0","redis":"^5.5.6","oxlint":"^1.60.0","tsdown":"^0.21.9","vitest":"^4.1.4","express":"^5","@types/pg":"^8.15.4","typescript":"^5.8.3","@clerk/hono":"^0.1.15","@types/node":"^24.1.0","@clerk/nextjs":"^7.2.3","@clerk/backend":"^3.2.13","@clerk/express":"^2.1.5","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@changesets/cli":"^2.29.4","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"^8.11.0","zod":"^3.25 || ^4.0","hono":"^4.0.0","next":"^15.2.8 || ^15.3.8 || ^15.4.10 || ^15.5.9 || ^15.6.0-0 || ^16.0.10 || ^16.1.0-0","redis":"^4.0.0","express":"^5.0.0","@clerk/hono":"^0.1.0","@clerk/nextjs":"^7.2.3","@clerk/express":"^2.1.5","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"hono":{"optional":true},"next":{"optional":true},"redis":{"optional":true},"express":{"optional":true},"@clerk/hono":{"optional":true},"@clerk/nextjs":{"optional":true},"@clerk/express":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.7.0_1792729754805_0.44661525070378905","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@clerk/mcp-tools","version":"0.8.0","keywords":["auth","clerk","context","mcp","model","protocol"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.8.0","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikos@clerk.dev"},{"name":"jescalan","email":"jeff@clerk.dev"},{"name":"brkalow-clerk","email":"bryce@clerk.dev"},{"name":"dominic-clerk","email":"dominic@clerk.dev"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"27fbe2ab970be39487d80e15e1d36e5e1ab15513","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.8.0.tgz","fileCount":25,"integrity":"sha512-u8tQpK5ay4jLqOrZEZRFgGNCGYrPAUjJaJjMA9ggK0IxMb3bSyx76gaKaCd4yDEbdHaco0kW7UHw9FefAKT5gw==","signatures":[{"sig":"MEUCIQDqYf3rxoicqKOsUqkgtXmFqCY5clQ19WlFGkLRGaFV0wIgaTHInN6e5omJOpx4jqtVyRAdGJBPFy1LG4cEwbJs54Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDimcaxGq1on6q0ufYDaFFLd0b5Oj0RcZz+EC1LXdypFwIhALMdCxG09NH32LPNp7EM/QGAw9AJnD8njJ7MjoQlbpzB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clerk%2fmcp-tools@0.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":141885},"main":"dist/","type":"module","_from":"file:clerk-mcp-tools-0.8.0.tgz","exports":{"./hono":{"types":"./dist/hono/index.d.mts","import":"./dist/hono/index.mjs"},"./next":{"types":"./dist/next/index.d.mts","import":"./dist/next/index.mjs"},"./client":{"types":"./dist/client.d.mts","import":"./dist/client.mjs"},"./server":{"types":"./dist/server.d.mts","import":"./dist/server.mjs"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.mts","import":"./dist/express/index.mjs"},"./feedback":{"types":"./dist/feedback.d.mts","import":"./dist/feedback.mjs"},"./stores/fs":{"types":"./dist/stores/fs.d.mts","import":"./dist/stores/fs.mjs"},"./stores/redis":{"types":"./dist/stores/redis.d.mts","import":"./dist/stores/redis.mjs"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.mts","import":"./dist/stores/sqlite.mjs"},"./stores/postgres":{"types":"./dist/stores/postgres.d.mts","import":"./dist/stores/postgres.mjs"}},"scripts":{"fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","watch":"tsdown --watch","release":"changeset publish && git push --follow-tags","lint:fix":"oxlint --fix","changeset":"changeset","fmt:check":"oxfmt --check","test:watch":"vitest","changeset:empty":"pnpm changeset --empty","version-packages":"changeset version && pnpm install --lockfile-only --engine-strict=false"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"192c4ef0-655b-4615-a498-1854c5ea160b"}},"_resolved":"/tmp/e1fdf12bc29c17e1d62482bfbe00f2e0/clerk-mcp-tools-0.8.0.tgz","_integrity":"sha512-u8tQpK5ay4jLqOrZEZRFgGNCGYrPAUjJaJjMA9ggK0IxMb3bSyx76gaKaCd4yDEbdHaco0kW7UHw9FefAKT5gw==","repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.21.1","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"24.22.1","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.3","zod":"^4.6.7","hono":"^4.12.14","next":"^15.5.15","oxfmt":"^0.45.0","redis":"^5.5.6","oxlint":"^1.60.0","tsdown":"^0.21.9","vitest":"^4.1.4","express":"^5","@types/pg":"^8.15.4","typescript":"^5.8.3","@clerk/hono":"^0.1.15","@types/node":"^24.1.0","@clerk/nextjs":"^7.2.3","@clerk/backend":"^3.2.13","@clerk/express":"^2.1.5","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@changesets/cli":"^2.29.4","@types/better-sqlite3":"^7.6.13","@modelcontextprotocol/server":"2.0.0"},"peerDependencies":{"pg":"^8.11.0","zod":"^3.25 || ^4.0","hono":"^4.0.0","next":"^15.2.8 || ^15.3.8 || ^15.4.10 || ^15.5.9 || ^15.6.0-0 || ^16.0.10 || ^16.1.0-0","redis":"^4.0.0","express":"^5.0.0","@clerk/hono":"^0.1.0","@clerk/nextjs":"^7.2.3","@clerk/express":"^2.1.5","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"hono":{"optional":true},"next":{"optional":true},"redis":{"optional":true},"express":{"optional":true},"@clerk/hono":{"optional":true},"@clerk/nextjs":{"optional":true},"@clerk/express":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.8.0_1793386378493_0.3369461353634473","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@clerk/mcp-tools","version":"0.9.0","keywords":["auth","clerk","context","mcp","model","protocol"],"author":{"name":"Jeff Escalante"},"license":"MIT","_id":"@clerk/mcp-tools@0.9.0","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikos@clerk.dev"},{"name":"jescalan","email":"jeff@clerk.dev"},{"name":"brkalow-clerk","email":"bryce@clerk.dev"},{"name":"dominic-clerk","email":"dominic@clerk.dev"}],"homepage":"https://github.com/clerk/mcp-tools#readme","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"5e01dde159652192913e114fdc65fcc39cbbd714","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-0.9.0.tgz","fileCount":30,"integrity":"sha512-JyX2ny3y6Lve8A66rLEr2jM2P//ONkyBznVMpT5UyzJ21kgqPJ+FjCQEQGXku+Vq2zi1Hihv5pU4Wvn+G2+KHQ==","signatures":[{"sig":"MEUCIDjaLZnd9Wfl3ey3JXpm8Fo0NDPnIFP9eB4m18CCqBNtAiEAqGAmWA5WJ9KXFd7RX8vhQtDka/IGQAP8FIs62/Jx/BU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQC3xEtCR6aTWkPrkZSmanoK6WI9JUYjh14U+ph1Lz0XlQIgVYYl6oZEsLTgFVFpRaIXlHzq5qGh3BGaC9PzkKgtOAE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clerk%2fmcp-tools@0.9.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":186543},"main":"dist/","type":"module","_from":"file:clerk-mcp-tools-0.9.0.tgz","exports":{"./hono":{"types":"./dist/hono/index.d.mts","import":"./dist/hono/index.mjs"},"./next":{"types":"./dist/next/index.d.mts","import":"./dist/next/index.mjs"},"./client":{"types":"./dist/client.d.mts","import":"./dist/client.mjs"},"./server":{"types":"./dist/server.d.mts","import":"./dist/server.mjs"},"./stores":"./dist/stores","./express":{"types":"./dist/express/index.d.mts","import":"./dist/express/index.mjs"},"./feedback":{"types":"./dist/feedback.d.mts","import":"./dist/feedback.mjs"},"./stores/fs":{"types":"./dist/stores/fs.d.mts","import":"./dist/stores/fs.mjs"},"./stores/redis":{"types":"./dist/stores/redis.d.mts","import":"./dist/stores/redis.mjs"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.mts","import":"./dist/stores/sqlite.mjs"},"./stores/postgres":{"types":"./dist/stores/postgres.d.mts","import":"./dist/stores/postgres.mjs"},"./create-browser-session":{"types":"./dist/create-browser-session.d.mts","import":"./dist/create-browser-session.mjs"}},"scripts":{"fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","watch":"tsdown --watch","release":"changeset publish && git push --follow-tags","lint:fix":"oxlint --fix","changeset":"changeset","fmt:check":"oxfmt --check","test:watch":"vitest","changeset:empty":"pnpm changeset --empty","version-packages":"changeset version && pnpm install --lockfile-only --engine-strict=false"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"192c4ef0-655b-4615-a498-1854c5ea160b"}},"_resolved":"/tmp/06901c60d80370ea43569ce5564cc28f/clerk-mcp-tools-0.9.0.tgz","_integrity":"sha512-JyX2ny3y6Lve8A66rLEr2jM2P//ONkyBznVMpT5UyzJ21kgqPJ+FjCQEQGXku+Vq2zi1Hihv5pU4Wvn+G2+KHQ==","repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.21.2","description":"Tools for writing MCP clients and servers without pain","directories":{},"_nodeVersion":"24.22.2","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.3","zod":"^4.6.7","hono":"^4.12.14","next":"^15.5.15","oxfmt":"^0.45.0","redis":"^5.5.6","oxlint":"^1.60.0","tsdown":"^0.21.9","vitest":"^4.1.4","express":"^5","@types/pg":"^8.15.4","typescript":"^5.8.3","@clerk/hono":"^0.1.15","@types/node":"^24.1.0","@clerk/nextjs":"^7.2.3","@clerk/backend":"^3.2.13","@clerk/express":"^2.1.5","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@changesets/cli":"^2.29.4","@types/better-sqlite3":"^7.6.13","@modelcontextprotocol/server":"2.4.0"},"peerDependencies":{"pg":"^8.11.0","zod":"^3.25 || ^4.0","hono":"^4.0.0","next":"^15.2.8 || ^15.3.8 || ^15.4.10 || ^15.5.9 || ^15.6.0-0 || ^16.0.10 || ^16.1.0-0","redis":"^4.0.0","express":"^5.0.0","@clerk/hono":"^0.1.0","@clerk/nextjs":"^7.2.3","@clerk/express":"^2.1.5","better-sqlite3":"^8.7.0"},"peerDependenciesMeta":{"pg":{"optional":true},"hono":{"optional":true},"next":{"optional":true},"redis":{"optional":true},"express":{"optional":true},"@clerk/hono":{"optional":true},"@clerk/nextjs":{"optional":true},"@clerk/express":{"optional":true},"better-sqlite3":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mcp-tools_0.9.0_1794002183634_0.73059186647137","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"_id":"@clerk/mcp-tools@1.0.0","bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"dist":{"shasum":"d48912b3f623de6d951fb0335c26a79a2b8314be","tarball":"https://registry.npmjs.org/@clerk/mcp-tools/-/mcp-tools-1.0.0.tgz","fileCount":34,"integrity":"sha512-X6LzFdk6TJodOR8J9USHtkKj2oJvi3E1EPUizuyLL53ZZ/5RGf0gvLJYEPQlPLRyM77bUENCA1LwwsN9w6+zrw==","signatures":[{"sig":"MEUCIGjmrU8/0vP7cWkp/daJ0mxYsxgzFGoG2jbOdDCWk7NrAiEA2yJ15rqrvufm4/7HMJ5XoEq6QB3NOE+igQ3JTqdjIT4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDI6JzTRi2QxqeV6K0UVkI0eHHFeJkElZPmzNRR172XmAiA1d0lSYN4wnSIwoPq467IQG1G8SJ+IXTYG4i/nb4biqA=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clerk%2fmcp-tools@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":527353},"name":"@clerk/mcp-tools","type":"module","_from":"file:clerk-mcp-tools-1.0.0.tgz","author":{"name":"Jeff Escalante"},"exports":{"./hono":{"types":"./dist/hono/index.d.mts","import":"./dist/hono/index.mjs","default":"./dist/hono/index.mjs"},"./next":{"types":"./dist/next/index.d.mts","import":"./dist/next/index.mjs","default":"./dist/next/index.mjs"},"./tools":{"types":"./dist/tools.d.mts","import":"./dist/tools.mjs","default":"./dist/tools.mjs"},"./client":{"types":"./dist/client.d.mts","import":"./dist/client.mjs","default":"./dist/client.mjs"},"./server":{"types":"./dist/server.d.mts","import":"./dist/server.mjs","default":"./dist/server.mjs"},"./express":{"types":"./dist/express/index.d.mts","import":"./dist/express/index.mjs","default":"./dist/express/index.mjs"},"./stores/fs":{"types":"./dist/stores/fs.d.mts","import":"./dist/stores/fs.mjs","default":"./dist/stores/fs.mjs"},"./next/client":{"types":"./dist/next/client.d.mts","import":"./dist/next/client.mjs","default":"./dist/next/client.mjs"},"./package.json":"./package.json","./stores/redis":{"types":"./dist/stores/redis.d.mts","import":"./dist/stores/redis.mjs","default":"./dist/stores/redis.mjs"},"./stores/sqlite":{"types":"./dist/stores/sqlite.d.mts","import":"./dist/stores/sqlite.mjs","default":"./dist/stores/sqlite.mjs"},"./stores/postgres":{"types":"./dist/stores/postgres.d.mts","import":"./dist/stores/postgres.mjs","default":"./dist/stores/postgres.mjs"}},"license":"MIT","scripts":{"fmt":"oxfmt","lint":"oxlint","test":"vitest run","build":"tsdown","watch":"tsdown --watch","release":"changeset publish && git push --follow-tags","lint:fix":"oxlint --fix","changeset":"changeset","fmt:check":"oxfmt --check","typecheck":"tsc --noEmit","test:watch":"vitest","changeset:empty":"pnpm changeset --empty","version-packages":"changeset version && pnpm install --lockfile-only --engine-strict=false"},"version":"1.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"192c4ef0-655b-4615-a498-1854c5ea160b"}},"homepage":"https://github.com/clerk/mcp-tools#readme","keywords":["auth","clerk","context","mcp","model","protocol"],"_resolved":"/tmp/d3f357dc9c8418fb363586ef7bd914d7/clerk-mcp-tools-1.0.0.tgz","_integrity":"sha512-X6LzFdk6TJodOR8J9USHtkKj2oJvi3E1EPUizuyLL53ZZ/5RGf0gvLJYEPQlPLRyM77bUENCA1LwwsN9w6+zrw==","repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"_npmVersion":"11.21.3","description":"Tools for writing MCP clients and servers without pain","directories":{},"maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikos@clerk.dev"},{"name":"jescalan","email":"jeff@clerk.dev"},{"name":"brkalow-clerk","email":"bryce@clerk.dev"},{"name":"dominic-clerk","email":"dominic@clerk.dev"}],"_nodeVersion":"24.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.16.3","ajv":"^8.17.1","zod":"^4.6.7","hono":"^4.12.14","next":"^15.5.15","oxfmt":"^0.67.0","redis":"^5.5.6","oxlint":"^1.60.0","tsdown":"^0.21.9","vitest":"^4.1.4","express":"^5","@types/pg":"^8.15.4","typescript":"^5.8.3","@types/node":"^24.1.0","ajv-formats":"^3.0.1","mcp-handler":"^2.3.1","@clerk/nextjs":"^7.9.5","@clerk/backend":"^3.19.0","@clerk/express":"^2.1.70","@types/express":"^5.0.3","better-sqlite3":"^11.10.0","@changesets/cli":"^2.29.4","@types/better-sqlite3":"^7.6.13","@modelcontextprotocol/sdk":"^1.32.0","@modelcontextprotocol/server":"2.4.0"},"peerDependencies":{"pg":"^8.11.0","zod":"^3.25 || ^4.0","hono":"^4.0.0","next":"^15.2.8 || ^15.3.8 || ^15.4.10 || ^15.5.9 || ^15.6.0-0 || ^16.0.10 || ^16.1.0-0","redis":"^4.0.0","express":"^5.0.0","mcp-handler":"^2.0.0","@clerk/nextjs":"^7.9.5","@clerk/backend":"^3.19.0","@clerk/express":"^2.1.70","better-sqlite3":"^8.7.0","@modelcontextprotocol/sdk":"^1.32.0","@modelcontextprotocol/server":"^2.3.0"},"peerDependenciesMeta":{"pg":{"optional":true},"zod":{"optional":true},"hono":{"optional":true},"next":{"optional":true},"redis":{"optional":true},"express":{"optional":true},"mcp-handler":{"optional":true},"@clerk/nextjs":{"optional":true},"@clerk/backend":{"optional":true},"@clerk/express":{"optional":true},"better-sqlite3":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true},"@modelcontextprotocol/server":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-tools_1.0.0_1795214980380_0.6902085967587538"}}},"time":{"created":"2025-06-02T21:38:19.526Z","modified":"2026-11-20T22:49:40.941Z","0.0.1":"2025-06-02T21:38:19.822Z","0.0.2":"2025-06-03T03:02:03.605Z","0.0.3":"2025-06-07T00:44:13.770Z","0.0.4":"2025-06-18T18:53:31.034Z","0.0.5":"2025-06-23T22:11:59.588Z","0.1.0":"2025-06-25T13:54:49.232Z","0.1.1":"2025-06-25T15:20:22.549Z","0.2.1":"2025-07-25T04:41:13.949Z","0.2.2":"2025-07-25T15:41:12.459Z","0.3.0":"2025-07-25T23:30:09.287Z","0.3.1":"2025-08-08T21:40:58.237Z","0.5.0":"2026-04-22T17:16:48.247Z","0.6.0":"2026-07-14T18:31:09.217Z","0.7.0":"2026-10-23T04:29:14.899Z","0.8.0":"2026-10-30T18:52:58.573Z","0.9.0":"2026-11-06T21:56:23.920Z","1.0.0":"2026-11-20T22:49:40.559Z"},"bugs":{"url":"https://github.com/clerk/mcp-tools/issues"},"author":{"name":"Jeff Escalante"},"license":"MIT","homepage":"https://github.com/clerk/mcp-tools#readme","keywords":["auth","clerk","context","mcp","model","protocol"],"repository":{"url":"git+https://github.com/clerk/mcp-tools.git","type":"git"},"description":"Tools for writing MCP clients and servers without pain","maintainers":[{"name":"colinclerk","email":"colin@clerk.dev"},{"name":"bradenclerk","email":"braden@clerk.dev"},{"name":"nikosdouvlis","email":"nikos@clerk.dev"},{"name":"jescalan","email":"jeff@clerk.dev"},{"name":"brkalow-clerk","email":"bryce@clerk.dev"},{"name":"dominic-clerk","email":"dominic@clerk.dev"}],"readme":"# MCP Tools\n\nA library built on top of the [MCP TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk) that makes it easier to implement MCP with auth into your MCP client and/or server.\n\n### What is MCP?\n\nIt's a protocol that enables AI applications like Claude, ChatGPT, Cursor, etc to ask you for permission to access some of your private information that normally you'd need to sign in with your account to access. For example, your emails, or your private github repositories, etc.\n\nThis allows you to provide AI applications with context and abilities that it would normally not have access to. You could, for example, have an AI application use some code in a private repo as context to answer your questions, or have it write and send an email on your behalf, after you review it. It's kind of like this:\n\n![A diagram of how MCP works in 3 steps: 1) AI app asks for permission to connect to gmail, 2) user grants permission, 3) AI app can now access gmail data](https://p176.p0.n0.cdn.zight.com/items/p9uyYBQL/5743e744-1c37-462c-92a6-2cf30c40d6be.png?v=eeadf50900b2781e996c0f4752dd8949)\n\nWe think this is valuable because it enables people to use AI to access a bunch of extra information that it wasn't able to access before, and does so in a safe way where you as the user are in control over what it has access to and what it can do. We're excited to see what new AI use cases become possible as MCP adoption grows, and we built this library to try to help make it easier for people to integrate MCP into their applications.\n\n### Client vs Server usage\n\nThere are two parties involved in MCP:\n\n- The **client**, which is the one that wants to get access to another service. In the above example would be Claude, which wants to get access to Gmail.\n- The **server**, which is the one that has something that a client wants access to. In the above example, this would be Gmail. This is sometimes referred to as the \"resource server\" or \"MCP server\".\n\nThis library has tools for both of these parties, so step one is to be clear on whether you are building a client or server. We'll address each of these use cases separately.\n\n> _**NOTE:** In web development, the terms \"client\" and \"server\" are often used to refer to the frontend (browser) and backend (web server). This is not the case in this situation, so try not to confuse them!_\n\n### Framework-Specific Documentation\n\nFor detailed implementation guides and examples specific to your framework, see:\n\n- **[Express.js Integration](./express/README.md)** - Complete guide for building MCP servers with Express.js\n- **[Hono Integration](./hono/README.md)** - Complete guide for building MCP servers with Hono and edge runtimes\n- **[Next.js Integration](./next/README.md)** - Complete guide for building both MCP servers and clients with Next.js\n\nUpgrading from 0.9.x? Every entry point was renamed in 1.0.0, with no deprecated aliases. The [changelog](./CHANGELOG.md) maps each old name, such as `mcpAuthClerk`, `protectedResourceHandlerClerk`, `authServerMetadataHandlerClerk`, `verifyClerkToken`, `@clerk/mcp-tools/feedback`, and `@clerk/mcp-tools/create-browser-session`, to its replacement.\n\n### Table of Contents\n\n- [Guide: building a server](#guide-building-a-server)\n- [Guide: building a client](#guide-building-a-client)\n- [Stores](#stores)\n- [Reference docs](#reference-docs)\n\n### Guide: building a server\n\nIf you are building a server that you'd like to introduce MCP support for, you will want to use the `@clerk/mcp-tools/server` import path. With Express, Hono, or Next.js, import from that framework's subpath instead (`@clerk/mcp-tools/express`, `@clerk/mcp-tools/hono`, or `@clerk/mcp-tools/next`): each one exports everything in `@clerk/mcp-tools/server` too.\n\n#### Protected resource metadata\n\nIn order for the [most up to date authentication flow in the MCP spec](https://modelcontextprotocol.io/specification/draft/basic/authorization#authorization-flow-steps) to work correctly, your server will need to expose a static metadata file called \"protected resource metadata\", which is defined by [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728).\n\nThis library exposes a tool that can quickly generate such a metadata file for you. Here's an example of how to use it:\n\n```ts\nimport { generateProtectedResourceMetadata } from '@clerk/mcp-tools/server';\n\nconst result = generateProtectedResourceMetadata({\n  resourceUrl: 'https://myapp.com/current-route',\n  authServerUrl: 'https://auth.example.com',\n});\n```\n\nReturn this result from `/.well-known/oauth-protected-resource` followed by your MCP endpoint's path, such as `/.well-known/oauth-protected-resource/mcp` for an endpoint at `/mcp` (RFC 9728 section 3). This is the URL the `401` challenge's `resource_metadata` points to. A route at the bare `/.well-known/oauth-protected-resource` describes only the origin, so its `resource` doesn't match an endpoint with a path.\n\nIf you are using [Clerk](https://clerk.com) for authentication in your app, pass your publishable key instead of `authServerUrl`. The authorization server is derived from the key. A key that isn't a Clerk publishable key throws a `Clerk error:`. `properties` can't set `resource`, which is always `resourceUrl` so that it matches the URL clients derived the metadata URL from (RFC 9728 section 3.3): setting it, even to `undefined`, throws a `Clerk error:`. Add `resource_documentation`, a page about your own MCP server, in `properties` if you have one:\n\n```ts\nimport { generateProtectedResourceMetadata } from '@clerk/mcp-tools/server';\n\nconst result = generateProtectedResourceMetadata({\n  publishableKey: process.env.CLERK_PUBLISHABLE_KEY!,\n  resourceUrl: 'https://myapp.com/current-route',\n  properties: { resource_documentation: 'https://myapp.com/docs/mcp' },\n});\n```\n\nFor framework-specific implementations of protected resource metadata handlers, see:\n\n- [Express.js implementation](./express/README.md#protected-resource-metadata)\n- [Hono implementation](./hono/README.md)\n- [Next.js implementation](./next/README.md#protectedresourcemetadatahandler)\n\n#### Authorization server metadata\n\nAn [older version of the MCP spec](https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization#authorization-flow-steps) required MCP servers to publish a separate \"authorization server metadata\" document, defined by [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414). Most deployments no longer need this endpoint when they publish protected resource metadata and use an authorization service with its own metadata endpoint. You may still need it for a custom or embedded authorization server or an older MCP client. With Clerk the route is optional: clients that follow RFC 9728 find Clerk's own metadata from the `authorization_servers` in your protected resource metadata. Mount it only to support clients that look for the metadata on your server's origin. Each adapter's `authorizationServerMetadataHandler()` relays Clerk's metadata, and answers with a JSON `502`, `{\"error\":\"server_error\"}`, when it can't be fetched.\n\nIf you use [Clerk](https://clerk.com) for authentication, fetch the metadata from your Clerk Frontend API and return it from your authorization server metadata endpoint.\n\n```ts\nimport { fetchAuthorizationServerMetadata } from '@clerk/mcp-tools/server';\n\n// Return this result from <your-app>/.well-known/oauth-authorization-server\nconst result = await fetchAuthorizationServerMetadata({\n  publishableKey: process.env.CLERK_PUBLISHABLE_KEY!,\n});\n```\n\nFor framework-specific implementations, see:\n\n- [Express.js implementation](./express/README.md#authorizationservermetadatahandler)\n- [Hono implementation](./hono/README.md#authorizationservermetadatahandler)\n- [Next.js implementation](./next/README.md#authorizationservermetadatahandler)\n\n#### Discovery: Server Cards (beta)\n\nA [Server Card](https://github.com/modelcontextprotocol/ext-server-card) is a public JSON document that tells an MCP client what your server is and where to connect, before it connects or signs in. Server Cards are a **beta** MCP extension, and so is this API: it follows the extension as pinned at commit `526201b`, and publishing a card does not mean every MCP host will find or use it.\n\n`generateServerCard` builds a card from a supported subset of the extension, and each adapter's `serverCardHandler` serves one (Hono, Express, and Next.js):\n\n- **Required:** `name`, in reverse-DNS form with one slash, such as `com.example/weather`; `version`, one version such as `1.2.0` in 1 to 255 Unicode code points, not a range; and a `description` of 1 to 100 characters.\n- **Optional:** `title`, `websiteUrl`, `icons`, `repository`, and `_meta`. HTTP URLs in `websiteUrl`, `icons[].src`, and `repository.url` must not contain a username or password; website fragments remain allowed. If supplied, `repository.subfolder` must be a nonempty clean relative path from the repository root, such as `packages/server`: no URL scheme, absolute path, backslashes, leading or trailing `/`, empty segments, or `.` or `..` segments. Each `_meta` key needs a namespace of your own, such as `com.example/tier` (MCP 2025-11-25 reserves prefixes whose second label is `modelcontextprotocol` or `mcp`, such as `io.modelcontextprotocol/` and `dev.mcp/`; while this API is beta, the older forward-DNS forms in the pinned Server Card schema, such as `modelcontextprotocol.io/` and `mcp.dev/`, are rejected too, labels compared without case; `com.example.mcp/` is not reserved), and each value must be JSON.\n- **Generated:** `$schema`, and `remotes`, one static streamable HTTP remote at `resourceUrl`. Setting either, or any other key, throws a `Clerk error:`. SSE remotes, URL templates, and header inputs are not supported.\n\nThe card's `name` identifies the server; it is not a URL. `resourceUrl` is the URL clients connect to. The card is public and is cached, so never put credentials, tokens, or user data in it.\n\n```ts\nimport { generateServerCard } from '@clerk/mcp-tools/server';\n\nconst card = generateServerCard({\n  name: 'com.example/weather',\n  version: '1.2.0',\n  description: 'Forecasts and current conditions.',\n  resourceUrl: 'https://mcp.example.com/mcp',\n});\n```\n\nThe extension recommends serving the card at your MCP endpoint's URL followed by `/server-card`, such as `/mcp/server-card`. The handlers validate the options and generate the card once, when they are created, with no Clerk keys, MCP SDK, or request. Importing them mounts nothing. Every adapter answers the same way:\n\n- `GET` and `HEAD` get the card as `application/mcp-server-card+json` (`HEAD` without a body), a weak `ETag`, and `Cache-Control: public, max-age=3600`. Set `maxAge` to another whole number of seconds; `0` sends `public, no-cache`, which lets caches store the card but has them revalidate it before each use.\n- A `GET` or `HEAD` whose `If-None-Match` lists the card's tag, or is `*`, gets a `304` without a body. `If-Match` is evaluated first: only `*` succeeds, since a weak ETag cannot satisfy its strong comparison; other values get `412` (RFC 9110 §13.1.1, §13.2.2).\n- Any origin can read the card and revalidate it: `Access-Control-Allow-Origin: *`, with `If-Match` and `If-None-Match` allowed and `ETag` exposed. `OPTIONS` gets the CORS preflight, and other methods a JSON `405` with `Allow: GET, HEAD, OPTIONS`. Every error, such as that `405` or a `421`, is sent with `Cache-Control: no-store`, so no cache keeps it.\n- With a list of `resourceUrl`s, one for each origin, a request gets the card for the URL with its own origin, scheme and port included; the browser's `Origin` header plays no part. A request to any other origin gets a JSON `421`, never another origin's card. Errors are not cached.\n\nHeader precedence depends on the adapter. Hono sends the handler's own `ETag`, `Cache-Control`, and `Content-Length` over earlier values (dropping an earlier `ETag` on an answer without one, such as an error, whose `Cache-Control` is `no-store`) and keeps other earlier headers; it merges `ETag` into an earlier `Access-Control-Expose-Headers` unless `*` already exposes every header. An earlier Hono CORS middleware's `Access-Control-Allow-Origin` replaces the handler's `*`. Express writes the discovery answer's headers over earlier values (including its own `Access-Control-Allow-Origin: *`); it merges `ETag` into an earlier expose list, and errors' `Cache-Control: no-store` wins. Next.js route handlers return their own response headers.\n\nFor framework-specific implementations, see:\n\n- [Express.js implementation](./express/README.md#servercardhandler)\n- [Hono implementation](./hono/README.md#servercardhandleroptions)\n- [Next.js implementation](./next/README.md#servercardhandleroptions)\n\n#### Discovery: AI Catalogs (beta)\n\nAn [AI Catalog](https://github.com/Agent-Card/ai-catalog) is a public JSON document, at `/.well-known/ard.json` and `/.well-known/ai-catalog.json`, that lists a domain's AI artifacts so a client can find its MCP servers and then read their Server Cards. It is a separate specification from Server Cards, and this API is **beta** as well: it follows the [v0.9 release candidate pinned at commit `19208af` (#141)](https://github.com/Agent-Card/ai-catalog/blob/19208af/specification/ai-catalog.md), not the final v1.0 specification. The RC uses `specVersion: \"0.9\"`; `\"1.0\"` is reserved for the final specification. Its version-handling guidance says consumers SHOULD reject a catalog with a higher major version they do not support; this generator always emits `0.9`. Publishing a catalog does not mean every MCP host will find or use it.\n\n`generateAICatalog` builds a minimal (Level 1) catalog that links to Server Cards, and each adapter's `aiCatalogHandler` serves one (Hono, Express, and Next.js):\n\n- **Required:** `entries`, a list of `{ identifier, displayName, url }`, one for each Server Card. It may be empty, as the specification allows, for a domain that lists no servers yet.\n- **Optional:** an entry's `trustManifest`, `{ identity, identityType?, attestations? }`, the [ARD](https://agenticresourcediscovery.org/spec) v0.91 trust manifest. Omitted, the entry carries no trust data.\n- **Generated:** `specVersion: \"0.9\"`, the v0.9 release candidate version, and each entry's `type`, `application/mcp-server-card+json`. Setting either, or any other key, throws a `Clerk error:`. Inline documents (`data`), other artifact types, `host` information, versions, the AI Catalog's own contributor-keyed `trustManifests`, signatures, and extensions are not supported.\n\nAn entry's `identifier` is a logical name for the server that stays the same wherever its card is hosted, such as `urn:air:example.com:weather`. The v0.9 RC recommends `urn:air:{publisher}:{name}[:{kind}]`: the publisher's domain, a stable name, and an optional single-segment kind suffix. ARD v0.91 reads the same form as `urn:air:<publisher>:[<namespace>:]<agent-name>`, taking a third segment as the agent name, so the examples here use only a publisher and a name, which both read the same way. This naming structure is a recommendation, not a required scheme; the builder preserves logical identifiers and does not validate the `urn:air` grammar. An identifier is not a retrieval URL, so an `http` or `https` URL is rejected, and each identifier may appear only once. `displayName` is the server's human-readable name, such as `Weather`. The v0.9 RC makes it optional, but [Agentic Resource Discovery](https://agenticresourcediscovery.org/spec) (ARD) v0.91 requires it on every entry, so it is required here; it must have more than whitespace and no control characters. A client shows it instead of the card's `title`, so keep the two the same. `url` is the exact URL the card is retrieved from, and may be on another host. It must be `https`; plain `http` is accepted only on `localhost`, `127.0.0.1`, or `[::1]`, for local development. Nothing is fetched to build or serve the catalog: the URL is not derived from a route or checked against the card it points to.\n\nAn entry's `trustManifest` says who stands behind the server. It follows the `TrustManifest` of the ARD v0.91 entry schema, which requires only `identity`: an absolute URI for the publisher, such as `https://example.com`, `did:web:example.com`, or a SPIFFE ID, but not an `http`, `data`, `file`, or `javascript` URI, nor an `https` URL with credentials. ARD requires its trust domain to match the publisher in the entry's `identifier` (`example.com` in `urn:air:example.com:weather`); the builder does not check that, as it does not parse identifiers. `identityType` is an open hint for the identity's format, such as `https`, `did`, or `spiffe`. `attestations` lists claims, each `{ type, uri, digest?, mediaType? }` whose `uri` is an `https` URL or an inline `data:` URI, as the AI Catalog v0.9 RC's Attestation Object allows, such as `{ type: 'SOC2-Type2', uri: 'https://example.com/compliance/soc2.pdf' }`; list only claims you can back. The manifest is validated when the catalog is created and emitted as given. Its trust schema, provenance, and signature members are not supported, and the AI Catalog v0.9 RC ignores this ARD member, defining a separate `trustManifests` list instead.\n\n```ts\nimport { generateAICatalog } from '@clerk/mcp-tools/server';\n\nconst catalog = generateAICatalog({\n  entries: [\n    {\n      identifier: 'urn:air:example.com:weather',\n      displayName: 'Weather',\n      url: 'https://mcp.example.com/mcp/server-card',\n      trustManifest: { identity: 'https://example.com', identityType: 'https' },\n    },\n    {\n      identifier: 'urn:air:example.com:search',\n      displayName: 'Search',\n      url: 'https://cards.saas.example/search/server-card',\n    },\n  ],\n});\n```\n\nMount the one handler at both paths. [Agentic Resource Discovery](https://agenticresourcediscovery.org/spec/) (ARD) v0.91 [section 5.1](https://agenticresourcediscovery.org/spec/#51-discovery-mechanisms) makes `/.well-known/ard.json` the canonical path, which a consumer MUST fetch, and `/.well-known/ai-catalog.json` its predecessor's path, which a consumer MAY also consult as an equivalent source. ARD says a publisher need not serve the predecessor path; serving both keeps clients that only know `ai-catalog.json` working. The handler doesn't read the path, so it needs no configuration for either, and both answer with the same bytes and headers, `ETag` included.\n\nThe handlers answer as the Server Card handlers do, with the catalog's media type, `application/ai-catalog+json`: the same methods, public CORS, weak `ETag` and conditional `GET` and `HEAD`, `maxAge` (an hour by default, `0` for `public, no-cache`), and errors sent with `Cache-Control: no-store`. The catalog is fixed and the same for every request, so it has no `resourceUrl` and never answers `421`. An app that answers on several origins, each linking its own card, creates one handler for each origin and picks it by the request's origin, scheme and port included, as `matchResourceUrl` does, answering `421` for an origin it has no handler for rather than falling back to another origin's catalog.\n\nFor framework-specific implementations, see:\n\n- [Express.js implementation](./express/README.md#aicataloghandler)\n- [Hono implementation](./hono/README.md#aicataloghandleroptions)\n- [Next.js implementation](./next/README.md#aicataloghandleroptions)\n\n#### Creating an MCP endpoint\n\nTo create an MCP endpoint that handles the actual MCP protocol communication, you'll need to use framework-specific adapters, since each framework has its own way of handling request and response objects, which are critical parts of implementing the MCP protocol:\n\n- **Express.js**: Use the `streamableHttpHandler` from `@clerk/mcp-tools/express` - see [Express.js guide](./express/README.md#mcp-request-handler)\n- **Hono**: Use the `streamableHttpHandler` from `@clerk/mcp-tools/hono` - see [Hono guide](./hono/README.md)\n- **Next.js**: Use Vercel's `mcp-handler` with `withClerkMcpAuth` from `@clerk/mcp-tools/next` - see [Next.js guide](./next/README.md#building-an-mcp-server)\n\nThese adapters handle the MCP protocol details and integrate with your authentication system.\n\nUnknown option keys, such as `requiredScope` instead of `requiredScopes`, throw a `Clerk error:` at setup rather than being ignored. Setting both `clerkClient` and `verifyToken` also throws: choose Clerk verification with `clerkClient` and `resourceUrl`, or your own `verifyToken`. `properties` belongs only to `protectedResourceMetadataHandler`. `onAuthFailure` is accepted only by Next.js's `withClerkMcpAuth` and its metadata handler.\n\nEach adapter's auth entry point (`mcpAuth`, or `withClerkMcpAuth` in Next.js) verifies tokens with Clerk, or with a `verifyToken` function you pass. The result must have a finite `expiresAt`, in seconds since the epoch, and a non-empty `clientId`, or the token gets the `401` `invalid_token` challenge, with an `McpTokenVerificationError` cause whose `code` is `token-claims-missing` and whose `message` names the missing field. [MCP authorization](https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization#token-handling), 2025-06-18 and later, has servers validate tokens as [OAuth 2.1 section 5.2](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-13#section-5.2) describes, which includes checking that the token is not expired, and [RFC 9068 section 2.2](https://datatracker.ietf.org/doc/html/rfc9068#section-2.2) makes `exp` and `client_id` REQUIRED in a JWT access token. JWT libraries such as `jsonwebtoken` and `jose` check `exp` only when the token has one, so pass it through as `expiresAt`. Auth info from `toClerkAuthInfo` is treated as Clerk-verified, so it passes without an `expiresAt` or a `clientId`, since Clerk checks those itself: build it only from a request state returned by `authenticateRequest(req, { acceptsToken: 'oauth_token', audience: resourceUrl })`, using `requestState.toAuth()`, never from `auth({ acceptsToken: 'oauth_token' })` alone, a cached result, or a hand-built one. Otherwise use the built-in Clerk path, `mcpAuth({ clerkClient, resourceUrl })` (or `withClerkMcpAuth(handler, { clerkClient, resourceUrl })` in Next.js). Catch the errors your JWT library throws for a token it rejects, such as `JWTExpired` from `jose` or `TokenExpiredError` from `jsonwebtoken`, and return `undefined` or throw an `McpTokenVerificationError`, so the token gets the `401` `invalid_token` challenge, which [RFC 6750 section 3.1](https://datatracker.ietf.org/doc/html/rfc6750#section-3.1) gives an expired or invalid token, and the client can get a new one. Any other error the function throws means the token could not be verified at all: it gets a `server_error` answer, a `500` unless the error has a `429` or `5xx` `status`, and the client keeps the token (see `McpAuthError` below).\n\n#### Step-up for your own tools\n\nWhen a tool needs an OAuth scope that the access token lacks, the MCP server can answer `403` with `WWW-Authenticate: Bearer error=\"insufficient_scope\", ...`. MCP clients answer that by asking the user to approve more scopes. MCP SDK 2.3.0 or later (`@modelcontextprotocol/server`, which Vercel's `mcp-handler` 2.x also uses) sends this challenge before the tool runs, from the `scopeChallenge` option of `registerTool`. `requireAdditionalScopes` from `@clerk/mcp-tools/server` (also exported from every adapter subpath) builds that option from the scopes the tool needs:\n\n```ts\nimport { requireAdditionalScopes } from '@clerk/mcp-tools/server';\n\nserver.registerTool(\n  'list_projects',\n  {\n    title: 'List projects',\n    description: 'Lists the projects of the signed-in user.',\n    inputSchema: {},\n    scopeChallenge: requireAdditionalScopes('projects:read'),\n  },\n  async () => {\n    // ...\n  },\n);\n```\n\n- Pass `resourceMetadataUrl` on the `authInfo` you give the SDK by adding it to the same object, as `Object.assign(authInfo, { resourceMetadataUrl })`. A copy of a `toClerkAuthInfo` result, such as `{ ...authInfo, resourceMetadataUrl }`, fails `isClerkAuthInfo`, so the prebuilt tools no longer trust its Clerk identity. Without `resourceMetadataUrl`, the challenge has no `resource_metadata`. `mcpAuth` in the Express and Hono adapters and `withClerkMcpAuth` in the Next.js adapter set it for you.\n- The challenge lists the granted scopes followed by the missing ones. Some MCP clients request exactly the challenged scopes, so listing only the missing ones could drop access that other tools need. The SDK's own `requireScopes` helper lists the required scopes only.\n- Enable every scope your tools need for the OAuth application. Its scope settings and the user's approval decide what a token can get. `scopes_supported` in your protected resource metadata only guides what clients request: MCP clients request the scopes named in a challenge, and otherwise usually the whole `scopes_supported` list on first connection. A `401` names scopes only when your server adds them, as `mcp-handler`'s `withMcpAuth` does from its `requiredScopes`, and this package's `mcpAuth` and `withClerkMcpAuth` do from `requiredScopes` and `challengeScopes`. Listing only baseline scopes in `scopes_supported` encourages clients to request extra scopes through step-up, though a client can still request them up front. When the `401` doesn't name scopes, listing a scope there makes most clients request it on first connection, which is usually the only way clients without step-up support ask for it.\n- The SDK sends the challenge only over HTTP (`createMcpHandler` or the Streamable HTTP transport) and for requests with auth info. Elsewhere, including stdio, the tool runs without it.\n- MCP SDK 1.x has no `scopeChallenge` option, and TypeScript rejects it there, so a tool on SDK 1.x must check its scopes itself. `streamableHttpHandler` runs whichever SDK's transport you pass it: in `@clerk/mcp-tools/hono`, pass `McpServer` and `WebStandardStreamableHTTPServerTransport` from `@modelcontextprotocol/server` 2.3.0 or later (this package's minimum for SDK 2.x), and the step-up challenge works through it. The Express handler is documented and tested with SDK 1.x's `StreamableHTTPServerTransport`.\n- List each tool's `requireAdditionalScopes` scopes in `challengeScopes` too, so the client gets one challenge for everything it needs. When a token lacks a `requiredScopes` entry, the `403` from `mcpAuth` or `withClerkMcpAuth` lists the granted scopes followed by every missing `requiredScopes` and `challengeScopes` entry, so after one reauthorization the tool's own challenge passes. Without that, the client reauthorizes for the `403`, then again for the tool. A token that lacks only `challengeScopes` entries is let through.\n- `requireAdditionalScopes` throws a `Clerk error:` message when it is given no scopes or a scope that is not a valid OAuth scope token.\n- `createBrowserSessionTool` sets this option from its `requiredScopes` for you, and leaves it out when `requiredScopes` is empty.\n\n#### Public access: sign in only when needed\n\nA server is discoverable by default: anyone can connect and list its tools, resources, resource templates, and prompts, with their descriptions and schemas, the protected ones included, without a token. Calling them still needs sign-in, so an MCP client is asked to sign in the first time it reaches something protected. `publicAccess` names the calls that are open without a token as well, so a client can also call the tools you list without an account. Claude calls this \"Sign in when needed\" for a custom connector.\n\n```ts\n// Or from @clerk/mcp-tools/hono or @clerk/mcp-tools/next\nimport type { McpAuthOptions } from '@clerk/mcp-tools/express';\n\nconst mcpAuthOptions = {\n  resourceUrl: 'https://mcp.example.com/mcp',\n  // Asked for in the 401, so the first sign-in covers the protected tools\n  challengeScopes: ['profile', 'email'],\n  publicAccess: {\n    tools: ['search_docs'],\n  },\n} satisfies McpAuthOptions;\n```\n\nPass the same object to `mcpAuth` (`withClerkMcpAuth` in Next.js) and to `protectedResourceMetadataHandler`, which ignores `discoverable` and `publicAccess`.\n\nThe example uses `challengeScopes`, not `requiredScopes`. `requiredScopes` makes every request with a token need those scopes, and answers a token without them with a `403`. `challengeScopes` only adds them to the challenges, the `401` and a `403` that `requiredScopes` causes, so the first sign-in asks for them without making them a condition of every request. Use `requiredScopes` for scopes no request may go without.\n\n- `discoverable`: `true`, the default, opens `initialize` with the `notifications/initialized` notification that follows it, `server/discover`, `ping`, `tools/list`, `resources/list`, `resources/templates/list`, and `prompts/list` without a token, so a client on any protocol revision can connect and list. It never opens a call. `false` requires a token for every MCP request, as version 0.9 did. It is only about these MCP methods: protected resource metadata and the [Server Card](#discovery-server-cards-beta) are public either way, and it has nothing to do with OAuth token introspection (RFC 7662).\n- `tools`: the tools a `tools/call` may name without a token. Each tool is listed by name, and no value opens every tool.\n- `resources`: the resources a `resources/read` may ask for without a token. `true` opens every resource, and a list opens only the URIs it names. A URI is compared exactly as the client sends it, so a list cannot open the URIs of a resource template.\n- `prompts`: the prompts a `prompts/get` may ask for without a token. `true` opens every prompt, and a list opens only the prompts it names.\n\nA call is open only when `publicAccess` names it. `tools`, `resources`, and `prompts` need `discoverable`: with `discoverable: false` no client without a token can connect to reach them, so naming any of them is a TypeScript error and throws a `Clerk error:` at startup. Empty placeholders, `tools: []`, and `[]` or `false` for `resources` and `prompts`, name nothing and are accepted, by TypeScript and at startup.\n\n- A request that carries a token is verified as usual, even for an open method, and a token that does not verify gets its `401`.\n- A `POST` without a token passes only when every JSON-RPC message in its body is open. A batch with one protected message, a body that is not sent as `application/json`, and a body over 1 MiB all get the `401`. In Express, `express.json()` reads the body before `mcpAuth`, so its `limit` (100kb by default) is what bounds how much a request without a token makes the server buffer: set `express.json({ limit })` to the size you accept from anonymous clients. A body over 1 MiB still gets the `401`. For a chunked body Express measures the parsed body serialized again, which differs from the bytes sent by whitespace and number formatting, so only `express.json()`'s `limit` bounds the original bytes. Unless `discoverable` is `false`, Express's `mcpAuth` needs `express.json()` mounted before it. Without it, a JSON request without a token gets the `401` challenge, and `mcpAuth` logs a one-time `Clerk warning:` naming `express.json()`. In Hono, a middleware before `mcpAuth` that reads `c.req.raw` itself has the same effect.\n- The `401` for a protected call is the usual challenge, with `resource_metadata` and the `scope` from `requiredScopes` and `challengeScopes`. It is sent before the MCP SDK runs, which is what makes a client start authorization. A tool cannot send it: the SDK turns an error from a tool into a `200` result, which no client treats as a reason to sign in.\n- A `GET` without a token gets a `405` with `Allow: POST` when the handshake is open, as it is when the server is discoverable. MCP clients open a `GET` stream once they have connected, and a `401` there would start authorization before the client reached anything protected. The `GET` has to reach `mcpAuth` for this, so route every method of the endpoint through it, as in `app.all('/mcp', ...)` in Express and Hono. In Next.js, export the wrapped handler as `GET` and `DELETE` as well as `POST`. From protocol revision 2026-07-28, clients open a `subscriptions/listen` `POST` instead, and the same condition opens it without a token, as long as every URI in its `resourceSubscriptions` is one `resources` opens. A listen that subscribes to any other resource gets the `401`.\n- A `DELETE` without a token gets the `401`, as does any other request that isn't open. MCP clients send a `DELETE` only to end a session, and the stateless handlers never start one.\n- `tasks/get`, `tasks/result`, and `tasks/cancel` always need a token, even for a task that a public tool started: a task ID alone doesn't show who may read or cancel the task. A client without a token gets the `401` for them.\n- `notifications/cancelled`, `notifications/progress`, `notifications/roots/list_changed`, and every other notification but `notifications/initialized` always need a token, whatever `discoverable` and `publicAccess` open. They are not checked against the caller, so on a stateful transport of your own a client without a token that knows a session ID and a request ID could otherwise cancel another user's request or report progress on it. A client without a token that cancels a public tool call, for example when the call times out, gets the `401` and starts sign-in.\n- On a stateful transport of your own, one that issues an `Mcp-Session-Id`, set `discoverable: false`. On a discoverable server anyone can open sessions with `initialize` without a token, and each one holds server state until it times out. The `DELETE` that ends a session needs a token, and the MCP SDK client doesn't start sign-in for its `401`, so a client without a token can't end the session it opened. A client that connected without a token also keeps its `Mcp-Session-Id` after it signs in, because the SDK client retries the failed call on the same session, so a server that reads the user at `initialize` to set up per-session state sees `undefined` there and keeps it for the signed-in calls that follow. The stateless `streamableHttpHandler` never starts a session, so none of this applies to it.\n- An open list shows its whole list. On a discoverable server anyone can read the name, description, and input schema of every tool, the protected ones included, so keep secrets out of descriptions and schemas, or set `discoverable: false`.\n- A request that `publicAccess` lets through has no auth info, so a public tool cannot assume there is a user. Keep `create_browser_session` out of `publicAccess.tools`: it requires a Clerk identity, and listing it logs a one-time `Clerk warning:` at startup because calls without a token get its `not_authenticated` error instead of the `401` challenge that starts sign-in.\n- A protected tool still declares the scopes it needs with `requireAdditionalScopes`, as in [Step-up for your own tools](#step-up-for-your-own-tools), so that a token without them gets the `403` step-up.\n- A mistake in `discoverable` or `publicAccess`, such as a `discoverable` that is not `true` or `false`, throws a `Clerk error:` at startup.\n\n##### Advanced: `publicAccess.methods`\n\n`publicAccess.methods` opens exactly the protocol methods it lists, in place of what `discoverable` opens, for when you need per-method control, such as opening the handshake without the lists. It takes a list of `initialize`, `server/discover`, `ping`, `tools/list`, `resources/list`, `resources/templates/list`, and `prompts/list`. To open every one of them, leave it out and rely on `discoverable`.\n\n```ts\nconst options = {\n  resourceUrl: 'https://mcp.example.com/mcp',\n  publicAccess: {\n    methods: ['initialize', 'server/discover'],\n    tools: ['search_docs'],\n  },\n} satisfies McpAuthOptions;\n```\n\n- The list replaces the default: only the methods it names are open, and an empty list opens none of them.\n- It replaces `discoverable`, so setting both, even `discoverable: true`, is a TypeScript error and throws a `Clerk error:` at startup. `methods: true` and `methods: false` throw too, with a hint to use `discoverable`.\n- A client connects through `initialize` before protocol revision 2026-07-28 and through `server/discover` from it, so a list that names one of them and not the other leaves some clients unable to connect. `initialize` covers the `notifications/initialized` notification that follows it.\n- `tools`, `resources`, and `prompts` need the list to include `initialize` or `server/discover`: without either, no client without a token can connect to reach the calls they name, so naming any of them throws a `Clerk error:` at startup.\n- The `GET` `405` and the `subscriptions/listen` rule follow the handshake: a `GET` without a token gets the `405` only when the list includes `initialize` or `server/discover`, and the `401` otherwise.\n- It never opens a call: `tools/call`, `resources/read`, or `prompts/get` in the list throws a `Clerk error:` at startup.\n\n##### What a client without a token can reach\n\nSome clients never sign in: a scanner that grades MCP servers for agent readiness, such as ora, a registry crawler, or a user's client before they connect an account. They see only what `discoverable` and `publicAccess` open, so choose the setting by what you are willing to show them.\n\nora treats a server that is closed to them in one of two ways, depending on what it scans. At ora's scoring revision 17, a direct scan of the MCP URL fails with a `422` `MCP_AUTH_REQUIRED` and gives no score. A scan of the domain marks the MCP checks that need a session as not applicable and still scores the domain, as clerk.com's stored report shows.\n\n| Options                                                | A client without a token can                                                                                                                                                | It cannot                                                                                                                           |\n| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `{ discoverable: false }`                              | Do nothing: every request gets the `401`                                                                                                                                    | Connect. A direct ora scan of the MCP URL gets no score; a domain scan scores the domain without the MCP checks that need a session |\n| Left out, the default                                  | Connect, read the server's name, version, capabilities, and instructions, and list every tool, resource, resource template, and prompt, with their descriptions and schemas | Call a tool, read a resource, or get a prompt                                                                                       |\n| `{ publicAccess: { tools: [...], resources: [...] } }` | Also call the tools and read the resources you name                                                                                                                         | Reach anything you did not name                                                                                                     |\n\n- The default is the setting that lets a scanner assess your tools: their names, descriptions, input and output schemas, and annotations all come from `tools/list`. It shows them to everyone else too, so set `discoverable: false` when your list of tools is a secret. It never opens a call.\n- A scanner that checks whether the listed resources can be read, or how a tool call is answered, reaches only what `tools` and `resources` name. To let it read every listed resource, name each URI that `resources/list` returns. `resources: true` opens those too, but also every URI a resource template matches, so set it only when every resource and template is safe to read without auth info. Name a tool only when it is safe to run for anyone, since it runs without auth info. A call to any other tool, including a name your server does not have, still gets the `401`.\n- These settings decide what a scanner can reach, not the score it gives. How a scanner counts a `401` for something you kept protected is its own rule.\n\n##### Showing different tools to different callers\n\nEvery caller that may send `tools/list` gets the same list: each tool your server registered. Protocol revision 2026-07-28 lets it differ by caller (\"The set **MAY** vary by the authorization presented on the request — for example, returning only the tools the caller's granted scopes permit\", [Tools](https://modelcontextprotocol.io/specification/2026-07-28/server/tools#capabilities)), and your server decides that, not `mcpAuth`, which never sees the list.\n\nHide only what the caller can never obtain, such as an admin tool from a user who is not an admin. Keep a tool listed when the caller could be given access to it:\n\n- A tool that needs a scope the user could approve must stay listed. The `403` step-up answers a `tools/call`, and a model only calls the tools it was shown, so a hidden tool is never called and the user is never asked for the scope.\n- A protected tool that any signed-in user would see must stay in the list a client without a token gets, for the same reason: the `401` that asks the user to sign in answers a call to it.\n- A tool you show only to some users, such as an admin tool, is the exception. A client without a token does not say who the user is, so the recipe below leaves the tool out of its list. That keeps the tool from everyone who is not an admin, but an admin cannot reach it until they sign in for another reason and their client lists the tools again. Hide a tool from clients without a token only when you accept that.\n\nThe list protects nothing by itself, so don't hide a tool by filtering the list. Don't use the SDK's `disable()` either: it refuses a call to the tool, but on a server shared between requests it hides the tool from every caller, and its \"disabled\" error tells a caller the tool exists. Register the tool only for the callers who may have it. `streamableHttpHandler` creates a server for each request, so build it from that request's auth info:\n\n```ts\nfunction registerTools(server: McpServer, { admin }: { admin: boolean }) {\n  server.registerTool('search_docs' /* ... */);\n  // Stays listed for everyone: a token without the scope gets the 403 step-up\n  server.registerTool(\n    'list_projects' /* ..., scopeChallenge: requireAdditionalScopes('projects:read') */,\n  );\n  // No one else can list this tool or call it\n  if (admin) server.registerTool('delete_project' /* ... */);\n}\n\nfunction createServer(authInfo: AuthInfo | undefined) {\n  const server = new McpServer({ name: 'projects', version: '1.0.0' });\n  // `isAdmin` is your own check\n  registerTools(server, { admin: isAdmin(authInfo) });\n  return server;\n}\n\n// Hono\napp.all('/mcp', mcpAuth(mcpAuthOptions), (c) =>\n  streamableHttpHandler(\n    () => createServer(c.get('mcpAuth')),\n    WebStandardStreamableHTTPServerTransport,\n  )(c),\n);\n\n// Express. `mcpAuth` sets `req.auth`, which Express's own types do not declare.\napp.all('/mcp', mcpAuth(mcpAuthOptions), (req, res) =>\n  streamableHttpHandler(\n    () => createServer((req as express.Request & { auth?: AuthInfo }).auth),\n    StreamableHTTPServerTransport,\n  )(req, res),\n);\n```\n\nIn Next.js, create one `mcp-handler` handler for each set of tools, once, and choose between them from `req.auth`:\n\n```ts\nconst handlers = {\n  admin: createMcpHandler((server) => registerTools(server, { admin: true })),\n  member: createMcpHandler((server) => registerTools(server, { admin: false })),\n  // Clients without a token get their own handler, so their listen streams have their own limit\n  anonymous: createMcpHandler((server) => registerTools(server, { admin: false })),\n};\n\nfunction handlerFor(authInfo: AuthInfo | undefined) {\n  if (!authInfo) return handlers.anonymous;\n  return isAdmin(authInfo) ? handlers.admin : handlers.member;\n}\n\nconst authHandler = withClerkMcpAuth(\n  (req) => handlerFor((req as Request & { auth?: AuthInfo }).auth)(req),\n  mcpAuthOptions,\n);\n```\n\nDon't create the handler inside the route handler. MCP SDK 2.x counts the `subscriptions/listen` streams a handler holds open against its `maxSubscriptions`, and a handler created for a request starts that count again, so the limit never applies and a client without a token can hold open as many streams as the platform allows. Each handler keeps its own count, so the callers who share a handler share its limit, 1024 streams by default. A client without a token that shared the `member` handler could hold open every stream it allows, and signed-in users would get \"Subscription limit reached\" (`-32603`) when they listen, which is why the recipe gives clients without a token their own handler. To change a handler's limit, pass `maxSubscriptions` in its options: `createMcpHandler(initializeServer, { maxSubscriptions: 64 })`.\n\n- The auth info is `undefined` for a request that `discoverable` or `publicAccess` let through, so decide what a client without a token is shown as well.\n- A call to a tool that is not registered for the caller is answered as a call to an unknown tool: \"Tool delete_project not found\", a JSON-RPC error on MCP SDK 2.x and an error result on 1.x, with no challenge. A request without a token gets the `401` before that, unless the tool is in `publicAccess.tools`.\n- A client can keep the list it got before the user signed in. Nothing tells it that the caller changed: the server never sends `notifications/tools/list_changed` for a sign-in, so the client sees the new list when it next sends `tools/list`.\n- On protocol revision 2026-07-28 a list result says who may cache it. MCP SDK 2.x sends `cacheScope: \"private\"` unless you set `cacheHints`, which is right for a list that differs by caller: \"`\"private\"` is appropriate for `resources/read` results that depend on the authenticated user, or for filtered list results that vary per user\" ([Caching](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/caching#choosing-a-cache-scope)). Don't set `tools/list` to `\"public\"` on such a server.\n\n#### Collecting feedback from agents\n\nAgents that use your MCP server sometimes get blocked, need a workaround, or find a tool confusing. `submitFeedbackTool` from `@clerk/mcp-tools/tools` adds a `submit_feedback` tool that agents can call to report it. Reports are stored on your Clerk instance and shown on the instance's **Feedback** tab in the Clerk Dashboard.\n\n```ts\nimport { submitFeedbackTool } from '@clerk/mcp-tools/tools';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\n\nfunction createServer() {\n  const server = new McpServer({ name: 'my-app', version: '1.0.0' });\n  server.registerTool(...submitFeedbackTool({ secretKey: process.env.CLERK_SECRET_KEY! }));\n  // ...register your own tools\n  return server;\n}\n```\n\nThe tool works with both major versions of the MCP SDK: `@modelcontextprotocol/sdk` 1.x (`McpServer` from `@modelcontextprotocol/sdk/server/mcp.js`) and `@modelcontextprotocol/server` 2.x (`McpServer` from `@modelcontextprotocol/server`). The registration line is the same. The tool's schemas must use the same `zod` copy as the MCP SDK, or its input schema doesn't type-check against `registerTool`. Keep `zod` on a version the SDK accepts (4.2 or later for SDK 2.x) and check that `npm ls zod` shows a single version.\n\n- `secretKey` must be the secret key (`sk_...`) of the Clerk instance the reports belong to. `submitFeedbackTool` throws if it's empty, so a missing environment variable fails at startup.\n- Agents describe the task, what kind of problem it was (`missing`, `broken`, `confusing`, or `idea`, the `FeedbackKind` type), and what they tried and what went wrong. The tool asks them to report as soon as they find a problem and then continue, so how the task ended (`impact`, the `FeedbackImpact` type) is optional. `SUBMIT_FEEDBACK_TOOL_NAME` names the tool before it is built.\n- To prompt agents further, import `SUBMIT_FEEDBACK_INSTRUCTIONS` from `@clerk/mcp-tools/tools` and add it to your server's `instructions`: `new McpServer({ name, version }, { instructions: SUBMIT_FEEDBACK_INSTRUCTIONS })`.\n- Each report names your server as its source: the request's host by default, or pass `server: { name, version }` to label it yourself.\n- Each report names the agent from the client info its MCP client sends with the request, or otherwise from the HTTP `User-Agent` header. Generic HTTP libraries and browsers (such as `node` or `Mozilla`) aren't used as names, and clients that identify themselves only when they connect (common over stdio) appear without a name.\n- When the request's auth info came from `toClerkAuthInfo` (for example through `mcpAuth` in the Express and Hono adapters or `withClerkMcpAuth` from `@clerk/mcp-tools/next`, without `verifyToken`), the signed-in user's ID and the OAuth client ID are attached to each report. `toClerkAuthInfo` marks its result with `extra.verifiedBy: 'clerk'` (check it with `isClerkAuthInfo` from `@clerk/mcp-tools/server`); the guard also requires private object provenance, which the adapters preserve when attaching metadata. A forged marker or a copy made outside the library fails the guard, so identity from such objects is not sent.\n- Agents file reports without asking the user first. A report contains the agent's summary of what the user asked for, the tool calls it made, and any errors, and is linked to the user's ID when one is attached. Cover this in the privacy information you give your users.\n- Clerk removes secrets it detects in reports and accepts up to 100 reports per instance per hour.\n- On a public MCP endpoint without authentication, anyone can call this tool, submit misleading reports, and exhaust the instance's 100-report-per-hour limit. Protect it with authentication or other access controls where possible.\n- If a report can't be stored, the tool tells the agent not to retry and logs the response status with `console.error`. Requests to Clerk time out after 10 seconds.\n- Its error result names the failure in `_meta[ERROR_CODE_META_KEY]` (`ERROR_CODE_META_KEY` is exported from `@clerk/mcp-tools/tools`): `rate_limited` for Clerk's `429`, `rejected` for any other refusal, or `unconfirmed` after a timeout, a lost connection, or an unreadable success response, when Clerk may have stored the report.\n- This module imports `zod` (3.25 or later, or 4), an optional peer dependency. List it in your app's own dependencies even though the MCP SDK depends on it too: a package manager that doesn't hoist dependencies, such as Yarn PnP or pnpm with an isolated layout, can't resolve the SDK's copy from `@clerk/mcp-tools`.\n\n#### Signed-in browser links for agents\n\nWhen an agent drives a browser for your user and lands on your app's sign-in page, `createBrowserSessionTool` from `@clerk/mcp-tools/tools` lets it get a one-time link that opens your app already signed in as that user. The `create_browser_session` tool takes the user from the verified MCP access token, never from tool input.\n\nThe link starts a session as the user, so the access token check in front of this tool must be strict: the token's audience must be your MCP server's resource URL. `withClerkMcpAuth` from `@clerk/mcp-tools/next` and `mcpAuth` in the Express and Hono adapters check it against their `resourceUrl`. Here is a Next.js setup on the `withClerkMcpAuth` route from the [Next.js guide](./next/README.md#building-an-mcp-server), with `mcp-handler` 2.x on `@modelcontextprotocol/server` 2.3.0 or later, this package's minimum for SDK 2.x; step-up challenges need 2.1 or later.\n\nFirst, serve the protected resource metadata at the path form of the MCP endpoint, with the same `resourceUrl` the route passes to `withClerkMcpAuth`. The metadata's `resource` is that URL. MCP clients send that `resource` when they request a token, and Clerk puts it in the token's `aud`, so the two must match. A metadata route at the root `/.well-known/oauth-protected-resource` advertises only the origin, and every token would then fail the audience check. Enable the scopes the tool requires for the OAuth application. List them in `scopes_supported` too: a client without step-up support requests that list on its first connection, so that is the only way it asks for them. See [Step-up for your own tools](#step-up-for-your-own-tools):\n\n```ts\n// app/.well-known/oauth-protected-resource/mcp/route.ts\nimport { metadataCorsHandler, protectedResourceMetadataHandler } from '@clerk/mcp-tools/next';\n\n// List every scope the server's tools need, here the `requiredScopes` of the tool below.\nconst handler = protectedResourceMetadataHandler({\n  resourceUrl: 'https://app.example.com/mcp',\n  properties: { scopes_supported: ['browser_session'] },\n});\nconst corsHandler = metadataCorsHandler();\n\nexport { handler as GET, corsHandler as OPTIONS };\n```\n\nThen the MCP route. `createBrowserSessionTool` sets the SDK's `scopeChallenge` registration option, so the SDK sends the step-up challenge before the tool runs, and the route needs no scope code:\n\n```ts\n// app/mcp/route.ts\nimport { withClerkMcpAuth } from '@clerk/mcp-tools/next';\nimport { browserSessionInstructions, createBrowserSessionTool } from '@clerk/mcp-tools/tools';\nimport { createMcpHandler } from 'mcp-handler';\n\nconst APP_URL = 'https://app.example.com/dashboard';\n\n// A custom scope for this tool only. Not a scope that most clients get, such as `profile`: see the notes below.\nconst BROWSER_SESSION_SCOPES = ['browser_session'] as const;\n\n// Built once at module scope, so a bad configuration fails at startup instead of on every request.\nconst browserSessionTool = createBrowserSessionTool({\n  secretKey: process.env.CLERK_SECRET_KEY!,\n  destinationUrl: APP_URL,\n  requiredScopes: BROWSER_SESSION_SCOPES,\n});\n\nconst handler = createMcpHandler(\n  (server) => {\n    server.registerTool(...browserSessionTool);\n    // ...register your own tools\n  },\n  { instructions: browserSessionInstructions(APP_URL) },\n);\n\n// Tokens must carry this URL in their `aud` claim. `withClerkMcpAuth` also sets the `resourceMetadataUrl` the step-up\n// challenge needs.\nconst authHandler = withClerkMcpAuth(handler, { resourceUrl: 'https://app.example.com/mcp' });\n\nexport { authHandler as GET, authHandler as POST, authHandler as DELETE };\n```\n\n- Pass `browserSessionInstructions(destinationUrl)` as the server `instructions`. Some MCP clients, such as Codex, show agents only the server instructions until the agent searches for a tool, so without them an agent may open your app in a browser and stop at the sign-in page.\n- Check the audience. Without an `audience` check, any OAuth access token that your Clerk instance issued, to any OAuth application and for any purpose, can call this tool. Your Clerk instance must issue the `aud` claim in its OAuth access tokens. Clerk turns it on when you add your first MCP server to the instance in the Clerk Dashboard. The client must send `resource` matching `resourceUrl` when requesting a token. The first Clerk audience rejection (missing, invalid, or mismatched `aud`) logs a `Clerk warning:` once per auth middleware instance, explaining the Dashboard setup, `resource`, and backend minimum without logging the token or its claims. See [Build an MCP server](https://clerk.com/docs/guides/ai/mcp/build-mcp-server). Require `@clerk/backend` 3.19.0 (`@clerk/nextjs` 7.9.5, `@clerk/express` 2.1.70) or later (see [clerk/javascript#9724](https://github.com/clerk/javascript/pull/9724)). Before those versions, a JWT access token without an `aud` claim and an opaque OAuth access token both pass the `audience` check, and only a JWT with a different `aud` is rejected. `mcpAuth` in the Express and Hono adapters and `withClerkMcpAuth` in the Next.js adapter, without `verifyToken`, check the audience against their `resourceUrl` option. To confirm that the check works, send a token that was issued to another OAuth application of the same instance, or for another resource: the MCP route must answer `401`.\n- If you verify tokens yourself instead of with `withClerkMcpAuth` or `mcpAuth`, call `authenticateRequest(req, { acceptsToken: 'oauth_token', audience: resourceUrl })` with your resource URL and convert the request state's auth object with `toClerkAuthInfo(requestState.toAuth(), token)`. Set the tool's `requiredScopes` to the OAuth scopes the access token must carry. `requiredScopes` is required. `[]` is accepted, but then every token that passes the audience check can create a link.\n- Require a dedicated scope for this tool, such as a custom scope named `browser_session`, not a scope that nearly every client gets, such as `profile` or `email`. The link signs a browser in to your app as the user, so the scope is how the user approves that for a given MCP client. With a common scope, every MCP client the user connects can open your app as them. `restricted` does not narrow this for your own backend: only Clerk's Frontend API enforces it, and your backend sees an ordinary signed-in session unless it checks for an agent session itself. Create the scope as a custom OAuth scope on your Clerk instance, enable it for the OAuth applications that may use the tool, and keep it out of the scopes that clients get by default, so a client gets it only when the user approves it, for example through the step-up challenge.\n- Step-up authorization (a `403` challenge that makes the MCP client ask the user to approve more scopes) needs `@modelcontextprotocol/server` 2.3.0 or later. The tool sets the SDK's `scopeChallenge` registration option, and `resourceMetadataUrl` must be on `authInfo`, as `withClerkMcpAuth` sets it; without it the challenge has no `resource_metadata`. The challenge asks for the token's granted scopes plus the missing ones, so the new grant does not drop access that other tools need. The SDK's own `requireScopes` helper challenges for the listed scopes only.\n- On `@modelcontextprotocol/sdk` 1.x and `@modelcontextprotocol/server` versions before 2.1 the tool still registers and works, but there is no step-up. On `@modelcontextprotocol/server` versions before 2.1 the tool also logs a one-time `Clerk warning:`. A token without the required scopes gets the tool's own error, which tells the agent to ask the user to reconnect the MCP server and approve those scopes. The tool refuses before it calls Clerk. `createBrowserSessionTool` also throws a `Clerk error:` message when a scope is not a valid OAuth scope token or looks like a Clerk key (`sk_...`, `pk_...`).\n- Your MCP server and your app must use the same Clerk instance. `secretKey` is that instance's secret key (`sk_...`), and `destinationUrl` must be on a domain of that instance.\n- The agent can pass an absolute `path` such as `/settings` (with optional query and hash). It replaces the path of `destinationUrl`, and the tool refuses anything that would leave the app.\n- The link is a bearer credential: anyone who has it before it is used or expires can sign in as the user. The tool never puts it in error messages, but its text result contains the link so that the agent can open it. Never log it, and treat MCP client and gateway logs of tool results as credentials.\n- `restricted` (default `true`) limits the session the link starts. Clerk's Frontend API refuses these writes from that session: touch, switching the active session or organization, sign-out, writes to the user's own profile and organizations, reverification, and OAuth consent and approval. The one exception is refreshing its own session token. Clerk enforces this restriction, not your app's own backend: your backend sees an ordinary signed-in session unless it checks for an agent session itself. Pass `restricted: false` for an ordinary session. When Clerk does not confirm the restriction in its response, for example on a Clerk Backend API that does not support it yet, the tool revokes the new session link on a best-effort basis, refuses to return it, and fails with the error code `restricted_not_applied`. The log line names the `agent_task_id` when it is a well-formed ID. A malformed ID is never logged. It is still revoked when it can safely go in the revoke request's path; otherwise the log line says `revoke_skipped`, and the unused link expires on its own.\n- Optional settings: `sessionMaxDurationInSeconds` sets the maximum length, in seconds, of the session the link starts. Clerk's default is 30 minutes, and a larger value makes the session longer. `agentName`, `apiUrl`, and `fetch` are also available. Requests to Clerk time out after 10 seconds.\n- `organizationId` sets the organization each link starts in, as described for `createBrowserSession` below. Pass an ID, or a function that returns one for each call from the request's verified auth info, such as the workspace the user connected. The function may be synchronous or `async`, and runs only after the auth, scope, and path checks pass. Return `undefined` to leave the organization to Clerk. When it throws, or returns anything but a non-empty string or `undefined`, the tool refuses with `organization_lookup_failed` and logs the error's name and its `code` property, never its message. To give the agent a more specific reason, throw a `BrowserSessionError`, such as `new BrowserSessionError('organization_rejected', 'No workspace')`, and the tool answers with that code. A static `organizationId` must be a non-empty string.\n- To customise the tool, override parts of the config it returns instead of building your own, and wrap its callback to add logging. Every error result carries a code in `_meta[ERROR_CODE_META_KEY]`, the key `'clerk.com/error_code'`: the `BrowserSessionErrorCode` when the tool can name the failure, or `unexpected_error`. A wrapper can tell, for example, `rate_limited` from `invalid_path` without reading the text. Use `CREATE_BROWSER_SESSION_TOOL_NAME` to allowlist the tool or name it before it is built.\n\n  ```ts\n  import { createBrowserSessionTool, ERROR_CODE_META_KEY } from '@clerk/mcp-tools/tools';\n\n  const [name, config, callback] = createBrowserSessionTool(options);\n  server.registerTool(\n    name,\n    { ...config, description: `${config.description} ${READ_ONLY_NOTE}` },\n    async (input, extra) => {\n      const result = await callback(input, extra);\n      if (result.isError) log(name, result._meta?.[ERROR_CODE_META_KEY]);\n      return result;\n    },\n  );\n  ```\n\n- To create a link outside of an MCP tool, use `createBrowserSession({ authInfo, path, taskDescription, organizationId }, options)` from `@clerk/mcp-tools/tools`. It resolves to `{ url, agentTaskId, redirectUrl }`. `organizationId` is optional and sets the organization the session starts in. With `restricted`, it is also the only organization the session can use. Without it, Clerk uses the user's last active organization. When you pass it, the link is refused with `restricted_not_applied` unless Clerk confirms that organization, and it fails with `organization_rejected` when the user does not belong to the organization, or when the instance requires one and none applies. It rejects with a `Clerk error:` message when the options cannot work. When it rejects with a `BrowserSessionError`, `error.code` says why (for example `insufficient_scope`, with the scopes in `error.missingScopes`, or `restricted_not_applied`).\n- The tool works with `@modelcontextprotocol/sdk` 1.x and `@modelcontextprotocol/server` 2.x, with the same registration line. This module imports `zod` (3.25 or later, or 4), an optional peer dependency. List it in your app's own dependencies even though the MCP SDK depends on it too: a package manager that doesn't hoist dependencies, such as Yarn PnP or pnpm with an isolated layout, can't resolve the SDK's copy from `@clerk/mcp-tools`. The tool's schemas must use the same `zod` copy as the MCP SDK: keep `zod` on a version the SDK accepts (4.2 or later for SDK 2.x) and check that `npm ls zod` shows a single version.\n\n### Guide: building a client\n\nThe first step to building MCP compatibility into your AI application is allowing your users to connect with an MCP service. This can be kicked off simply with the URL of an MCP-compatible server, like `https://example.com/mcp`. Normally, your app would implement a text field where the user can enter an MCP endpoint, or have a pre-built integration where clicking a button would trigger an MCP connection flow with a baked-in endpoint URL.\n\nThe process of actually making the MCP connection using the SDK, however, is fairly arduous, so we expose some tools that can help make this easier. They run on the MCP SDK 1.x, which `@clerk/mcp-tools/client` needs installed:\n\n```bash\nnpm install @clerk/mcp-tools @modelcontextprotocol/sdk\n```\n\n#### Framework-agnostic client creation\n\nHere's how you can create an MCP client using the core utilities:\n\n```ts\nimport { createDynamicallyRegisteredMcpClient } from '@clerk/mcp-tools/client';\nimport { createRedisStore } from '@clerk/mcp-tools/stores/redis';\n\n// Create a persistent store (use appropriate store for your environment)\nconst store = createRedisStore({\n  host: process.env.REDIS_HOST,\n  password: process.env.REDIS_PASSWORD,\n});\n\nexport async function initializeMCPConnection(mcpEndpoint: string) {\n  const { connec","readmeFilename":"README.md"}