{"_id":"@agenetix/sdk","_rev":"14-0180563237e6da41754e8e42397b8b42","name":"@agenetix/sdk","dist-tags":{"pr-9":"2.0.2-pr.9.ed99cdadac63.1.1","pr-10":"2.0.2-pr.10.62432e5ce584.3.1","pr-11":"2.0.3-pr.11.3afea0e2045d.5.1","latest":"3.0.0","pr-12":"2.0.3-pr.12.acbdba57c165.8.1","pr-13":"3.0.0-pr.13.2f077981969c.11.1"},"versions":{"1.0.0":{"name":"@agenetix/sdk","version":"1.0.0","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"MCP Stack","email":"hello@mcpstack.com"},"license":"MIT","_id":"@agenetix/sdk@1.0.0","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://mcpstack.com","bugs":{"url":"https://github.com/emcy-ai/mcpstack-sdk/issues"},"dist":{"shasum":"7e627b82587f95d4d257528e4ba6bc2a5ceb26ac","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-1.0.0.tgz","fileCount":27,"integrity":"sha512-GF6YMnysyhPU2xtUM0l8khc71qek8tcSumSr+F4F4K1/yi+XksX+0TmJQty94cw3v3wyZey6htY6Q2yEmkkFbA==","signatures":[{"sig":"MEQCIDLvqq3PefcvoNbUMC8u7MsATSBpOilor+6oi0I0TEKxAiBkI/g4byKTeKb0SUdYvH1x1b9EA4EoqNTf5CUAbYAt+A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61613},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"c5b0e5de585314201bca38835d401293bd477b4a","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"ross_agenetix","email":"ross@agenetix.com"},"repository":{"url":"git+https://github.com/emcy-ai/mcpstack-sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"MCP Stack telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"20.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.0_1785646154765_0.5862914867451905","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@agenetix/sdk","version":"1.0.1","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"MCP Stack","email":"hello@mcpstack.com"},"license":"MIT","_id":"@agenetix/sdk@1.0.1","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://mcpstack.com","bugs":{"url":"https://github.com/agenetix/mcpstack-sdk/issues"},"dist":{"shasum":"dd5edaffe911396cf5b6f2e5c59a0f3ea24249e3","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-1.0.1.tgz","fileCount":27,"integrity":"sha512-/WrC84JW2IWcsG5sf2z+qvZO1Rvw6Ngd7OiWZPESxMS1OrAMwPzxZv5mugyRa1a0uC4IstWI98hYzB6nkutQQg==","signatures":[{"sig":"MEUCIHXVJPEKecmGHv0mxDaG7Vx3v92ZSVXBvOhzXmo9R1yXAiEAqNVEqOn+MZaDN8Ean5mZal7/KfOvTrP4iSWia6iKXs8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61615},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"4997eb050021b57a123f98c43bdfcdb17d5d1db8","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1963e962-7fe3-41ef-aaab-98363efb49e9"}},"repository":{"url":"git+https://github.com/agenetix/mcpstack-sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"MCP Stack telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.1_1785648015343_0.58337138573672","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@agenetix/sdk","version":"1.0.2","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"MCP Stack","email":"hello@mcpstack.com"},"license":"MIT","_id":"@agenetix/sdk@1.0.2","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://mcpstack.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"fc21559dbc45ae69fe043d1d9e11e99ca634b427","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-1.0.2.tgz","fileCount":27,"integrity":"sha512-WV5PUWcq8vCOU3FLeHoto0nkBVq7/ki4MC0e4e6nbsYcki5aicYylBrDs2fVKHu2dFj3B0jb8Qy17cQSyzeQcA==","signatures":[{"sig":"MEUCIAeF7IOae2yYhKtKtY24RqydrnR/NN75WABlK+BAx/b3AiEAqZ91ylXAtnLIFAo6Om2AdyGsSq4QaUmxY0A141ab4mk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61597},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5d07317e07966a7b594826fd134a365037148640","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6b89c1de-5f03-437f-9eff-f1c22cd66e83"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"MCP Stack telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.2_1785691835983_0.7692956403226006","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@agenetix/sdk","version":"2.0.0","keywords":["agenetix","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"Agenetix","email":"hello@agenetix.com"},"license":"MIT","_id":"@agenetix/sdk@2.0.0","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://agenetix.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"49629af958f5244db20900ae6a967b99104b2454","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-2.0.0.tgz","fileCount":27,"integrity":"sha512-QWVmmoikJ2EooM8FuW6D9JVi30RtUnapDDujAbQq8BL8i98+GJYcNRimd2NFuRueivNptbyhUhGThsnOZXCDfw==","signatures":[{"sig":"MEYCIQDFZ1aiAGERY9PpXt1X3Z+3GL1CpE7+9yTzcKsrgEVSNAIhAPoXxPC+ePyTGM92Td+3tntCprrvt3m4GlX/x5uUI7+o","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61581},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"9f62ad523a77f15091385884da2a105ed05f82be","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6b89c1de-5f03-437f-9eff-f1c22cd66e83"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"Agenetix telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_2.0.0_1785697213579_0.31870210431748847","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@agenetix/sdk","version":"2.0.1","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"MCP Stack","email":"hello@mcpstack.com"},"license":"MIT","_id":"@agenetix/sdk@2.0.1","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://mcpstack.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"43c53ef70ba61e476d79641e320a0e21f6c5c360","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-2.0.1.tgz","fileCount":27,"integrity":"sha512-OTcDsdVroVjJycAthla6zV7mb1oYXke2kXTrlTEJ45pvoRgrny3dKXb9tXic99/jXmmK7eojDNiukj+IKYZhOg==","signatures":[{"sig":"MEYCIQDdX9pAWbg87JLQskcIVdKaTPLYro7v1FaLFXON/s3eFwIhALrJJBAFMPGgdf7UGXjO+aRAD23Af25+FhgqNNHXEJxc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61597},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"de8bd72b844e11a1ba5cf3af3a0ca37c38bfba6c","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6b89c1de-5f03-437f-9eff-f1c22cd66e83"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"MCP Stack telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_2.0.1_1785724186053_0.11079775688624793","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@agenetix/sdk","version":"2.0.2","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"MCP Stack","email":"hello@mcpstack.com"},"license":"MIT","_id":"@agenetix/sdk@2.0.2","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://mcpstack.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"5c051330fc59d6380dad4124395f6c97de66de21","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-2.0.2.tgz","fileCount":27,"integrity":"sha512-mkG0+LYHkvzw0VMl8utYCDIdhnmMi+GTCK25aDdDOfOGyYDNmAJfDCN+L08BXZs+MZxRQE6OcEmUYFtXmCytNA==","signatures":[{"sig":"MEUCIQDgeONzIsIg+gHMjfklH/zGXO2cFty3sGFiRNirKEX7ugIgUkJxPEJuzCWs8VUjEFVw2hCac6XbAo2NAfSQJ6hTekY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@2.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61597},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"4ebdcea6a2fa17d38276c295de79ed702ead6da7","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6b89c1de-5f03-437f-9eff-f1c22cd66e83"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"MCP Stack telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_2.0.2_1785731041678_0.7118154060411859","host":"s3://npm-registry-packages-npm-production"}},"2.0.2-pr.9.ed99cdadac63.1.1":{"name":"@agenetix/sdk","version":"2.0.2-pr.9.ed99cdadac63.1.1","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"MCP Stack","email":"hello@mcpstack.com"},"license":"MIT","_id":"@agenetix/sdk@2.0.2-pr.9.ed99cdadac63.1.1","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://mcpstack.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"627422bd835996a5f1ae87310c8568fac9c45e1a","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-2.0.2-pr.9.ed99cdadac63.1.1.tgz","fileCount":27,"integrity":"sha512-q8TlIeZdriiACBbHqECYVdawuH0ECyammWbVhNgnNCO2O2bV2QWyJpXRLzhF0OhdHPYKd3TIio2lOD6WkgCbMA==","signatures":[{"sig":"MEYCIQCWVOZFzvF3HcbieoLEzA2R0TmWTeLer2HCnBLdWMpAqQIhAJeU3tE7hTeHq8h3x6cEi6a3syQVHD8CwHfACESVc7c2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@2.0.2-pr.9.ed99cdadac63.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61619},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ed99cdadac63d064ed76299bbb00360f8c3644cb","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:49e8d6db-1aac-417f-ab2f-b900859c493a"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"MCP Stack telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_2.0.2-pr.9.ed99cdadac63.1.1_1786973217971_0.8509095130450997","host":"s3://npm-registry-packages-npm-production"}},"2.0.2-pr.10.62432e5ce584.3.1":{"name":"@agenetix/sdk","version":"2.0.2-pr.10.62432e5ce584.3.1","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"MCP Stack","email":"hello@mcpstack.com"},"license":"MIT","_id":"@agenetix/sdk@2.0.2-pr.10.62432e5ce584.3.1","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://mcpstack.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"cb418ce6a9475aea6b9bb0f598214be665f37306","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-2.0.2-pr.10.62432e5ce584.3.1.tgz","fileCount":27,"integrity":"sha512-HQgOxMaWTXbpMl1Sut4/pqpawC9S1rCF36OMmn98CjGI8D9Mzuylmf4k+H4mgKx26nMlUHFl8PJKTdMN0RWYZA==","signatures":[{"sig":"MEQCIFCpU/nkRMWLjjKg1V1McXGjpoiEtkbd7pI6vJxUnEEZAiAN6spW7ConMw7UGtxqIJK+nVF0z8fAqX5d6gLelyI00Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@2.0.2-pr.10.62432e5ce584.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":62172},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"62432e5ce584067420974b275c31abe2293f91f0","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:49e8d6db-1aac-417f-ab2f-b900859c493a"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"MCP Stack telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_2.0.2-pr.10.62432e5ce584.3.1_1786992760476_0.6278267832650111","host":"s3://npm-registry-packages-npm-production"}},"2.0.3-pr.11.3afea0e2045d.5.1":{"name":"@agenetix/sdk","version":"2.0.3-pr.11.3afea0e2045d.5.1","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"Agenetix","email":"hello@agenetix.com"},"license":"MIT","_id":"@agenetix/sdk@2.0.3-pr.11.3afea0e2045d.5.1","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://agenetix.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"38a1c50272bff8bec21fdc7c7fdf21f13095e5d5","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-2.0.3-pr.11.3afea0e2045d.5.1.tgz","fileCount":27,"integrity":"sha512-UeQkFcx+fI6/qNG1aiav7KsUs/3Ed1TOZcDPqeNF7iV6moMRSLoqA4lfcJGJt3x/UoPa3VvIzuqtH/ldQ6ydaA==","signatures":[{"sig":"MEYCIQCiJY2YxFRMBeN2dxvo8V7prFEM/MCs9LvNsuVcEDq0KgIhANg8OcrA9KO4DJqbfT7fP7JdVgjp9Lg5Vbxn5gyRhKlj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@2.0.3-pr.11.3afea0e2045d.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":62148},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"3afea0e2045d024721254c65e65ec069f1084707","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:49e8d6db-1aac-417f-ab2f-b900859c493a"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"Agenetix telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_2.0.3-pr.11.3afea0e2045d.5.1_1787021698943_0.9956157300845341","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@agenetix/sdk","version":"2.0.3","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"Agenetix","email":"hello@agenetix.com"},"license":"MIT","_id":"@agenetix/sdk@2.0.3","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://agenetix.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"5c12ea55ee0132d3e6c2f077423708c62d4e6c2e","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-2.0.3.tgz","fileCount":27,"integrity":"sha512-2+NX/ySJ8W+DyL9tJrN5TVrYGmDe/cRrRuZNBkJkENLCULfZk0WHtF1oqojvJ44jOhnkGOjrng8sihutx/b2Bw==","signatures":[{"sig":"MEQCICB1FvgRtXkORJGzghHrMuuZd8KjuWzHxOCvKb6QAQzsAiBEa1vf2ss9bHnMg0nd9Zdii5AHtQj7Q3IyTnByKAVfFQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@2.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":62125},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"811c37ba7c21161ec766f76f4cb9e4c5d7b3a8a4","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:49e8d6db-1aac-417f-ab2f-b900859c493a"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"Agenetix telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_2.0.3_1787021902453_0.16073422080866595","host":"s3://npm-registry-packages-npm-production"}},"2.0.3-pr.12.acbdba57c165.8.1":{"name":"@agenetix/sdk","version":"2.0.3-pr.12.acbdba57c165.8.1","keywords":["agenetix","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"Agenetix","email":"hello@agenetix.com"},"license":"MIT","_id":"@agenetix/sdk@2.0.3-pr.12.acbdba57c165.8.1","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://agenetix.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"f41c447bc924f52626833a512ed017de1f72a50d","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-2.0.3-pr.12.acbdba57c165.8.1.tgz","fileCount":27,"integrity":"sha512-e0dGQjSpiHdosD+7HdqE/J9keh4RzNbcM2pojDxzzOhGCmrJ+zqVDFh4/psmv8yZKLx94KoeOn/8+AIVhr783Q==","signatures":[{"sig":"MEQCIB028SdPtjHbOtM8zCTcwCkjFmu8Yf/UduOYUCLNHddfAiAH9FhHYsxriYRI+YWXRB2+bjg/H879nqc82YJH7xD1NA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@2.0.3-pr.12.acbdba57c165.8.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61952},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"acbdba57c16591425babfe432ba66f4542b29528","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:49e8d6db-1aac-417f-ab2f-b900859c493a"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"Agenetix telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_2.0.3-pr.12.acbdba57c165.8.1_1787159276754_0.5445824236281718","host":"s3://npm-registry-packages-npm-production"}},"3.0.0-pr.13.5053c92dd852.9.1":{"name":"@agenetix/sdk","version":"3.0.0-pr.13.5053c92dd852.9.1","keywords":["mcpstack","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"Agenetix","email":"hello@agenetix.com"},"license":"MIT","_id":"@agenetix/sdk@3.0.0-pr.13.5053c92dd852.9.1","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://agenetix.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"bc6a0a07bd34c716682937186cfbb0d9d676d7b9","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-3.0.0-pr.13.5053c92dd852.9.1.tgz","fileCount":27,"integrity":"sha512-pV4QZFoI+078BQyIz3QSPEZTAHD1AlNagRBE/gb9El0j1PVMDpjrNqA2PHH6hrCE24TbwlbJu3PVjbsn7xTWJA==","signatures":[{"sig":"MEQCIFChirVIkWYf44NvqY1n/xMdtv/xZKmBZkh41sgpqYs8AiB4iWibPdckswAaI3mfqxQFK7mn9HSKiGa04ur+wlKJxw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@3.0.0-pr.13.5053c92dd852.9.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":62148},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5053c92dd852c92838cd1c35339bd1bc3cbf2d17","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:49e8d6db-1aac-417f-ab2f-b900859c493a"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"Agenetix telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_3.0.0-pr.13.5053c92dd852.9.1_1787159648085_0.029316122304394066","host":"s3://npm-registry-packages-npm-production"}},"3.0.0-pr.13.2f077981969c.11.1":{"name":"@agenetix/sdk","version":"3.0.0-pr.13.2f077981969c.11.1","keywords":["agenetix","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"Agenetix","email":"hello@agenetix.com"},"license":"MIT","_id":"@agenetix/sdk@3.0.0-pr.13.2f077981969c.11.1","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"homepage":"https://agenetix.com","bugs":{"url":"https://github.com/agenetix/sdk/issues"},"dist":{"shasum":"7c3bc079f18aa05716c68596d71e90a237168bdf","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-3.0.0-pr.13.2f077981969c.11.1.tgz","fileCount":27,"integrity":"sha512-/lKK8ZWvz7m0VpFXydPcSqXEwohzsvFKRJpZ2c2NBfGAFOR3F2N9mgx+wqWI+m0v2Uzhe5sDG5z2PegQ+4NWLQ==","signatures":[{"sig":"MEUCICMI4JWw3p/xuPJ7z0qVjDGzaXjwgptck99Vu7TB93oYAiEA6+cxc+/7LZ7tmXzpwrgiKH6rvyn7wW2jMQSbNjgr0/E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@3.0.0-pr.13.2f077981969c.11.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61953},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"2f077981969c222d395863584fad26262b23e602","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:49e8d6db-1aac-417f-ab2f-b900859c493a"}},"repository":{"url":"git+https://github.com/agenetix/sdk.git","type":"git"},"_npmVersion":"11.19.0","description":"Agenetix telemetry SDK for MCP servers - track tool invocations, errors, and performance","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vitest":"^3.0.0","typescript":"^5.8.3","@types/node":"^22.15.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_3.0.0-pr.13.2f077981969c.11.1_1787159673954_0.8917781320675415","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@agenetix/sdk","version":"3.0.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"description":"Agenetix telemetry SDK for MCP servers - track tool invocations, errors, and performance","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsc","dev":"tsc --watch","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest","prepublishOnly":"npm run build && npm test"},"keywords":["agenetix","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"author":{"name":"Agenetix","email":"hello@agenetix.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/agenetix/sdk.git"},"bugs":{"url":"https://github.com/agenetix/sdk/issues"},"homepage":"https://agenetix.com","engines":{"node":">=20.0.0"},"devDependencies":{"@types/node":"^22.15.2","typescript":"^5.8.3","vitest":"^3.0.0"},"gitHead":"dab74ffdfa54518b373685545448f1c50c3df479","_id":"@agenetix/sdk@3.0.0","_nodeVersion":"24.19.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-BIK/DLPhdJT3cn1Iq0Nq56J0KrJ6vfz1R/4OSLRbpk0RjRPu1jvK/40mdZu+csGB1z2iEvCU109YUtJkNvOsAg==","shasum":"c1e2d943681607eb643d82489eb2aab8d1fc2a3f","tarball":"https://registry.npmjs.org/@agenetix/sdk/-/sdk-3.0.0.tgz","fileCount":27,"unpackedSize":61929,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenetix%2fsdk@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGQ55+CfSuWFrMKYGnF9K+4bTxt6r52tVv8uNdwk5sYWAiAu0LX0sV4uiR+ZXSr5PgY8YpkM5WRg9YCnvtJJaPCkFA=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:49e8d6db-1aac-417f-ab2f-b900859c493a"}},"directories":{},"maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_3.0.0_1787159711639_0.4661427641028808"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-02T04:49:14.652Z","modified":"2026-08-19T17:15:12.108Z","1.0.0":"2026-08-02T04:49:14.903Z","1.0.1":"2026-08-02T05:20:15.482Z","1.0.2":"2026-08-02T17:30:36.110Z","2.0.0":"2026-08-02T19:00:13.719Z","2.0.1":"2026-08-03T02:29:46.216Z","2.0.2":"2026-08-03T04:24:01.812Z","2.0.2-pr.9.ed99cdadac63.1.1":"2026-08-17T13:26:58.234Z","2.0.2-pr.10.62432e5ce584.3.1":"2026-08-17T18:52:40.612Z","2.0.3-pr.11.3afea0e2045d.5.1":"2026-08-18T02:54:59.078Z","2.0.3":"2026-08-18T02:58:22.593Z","2.0.3-pr.12.acbdba57c165.8.1":"2026-08-19T17:07:56.887Z","3.0.0-pr.13.5053c92dd852.9.1":"2026-08-19T17:14:08.248Z","3.0.0-pr.13.2f077981969c.11.1":"2026-08-19T17:14:34.102Z","3.0.0":"2026-08-19T17:15:11.796Z"},"bugs":{"url":"https://github.com/agenetix/sdk/issues"},"author":{"name":"Agenetix","email":"hello@agenetix.com"},"license":"MIT","homepage":"https://agenetix.com","keywords":["agenetix","mcp","model-context-protocol","telemetry","observability","logging","ai","llm","tools","analytics"],"repository":{"type":"git","url":"git+https://github.com/agenetix/sdk.git"},"description":"Agenetix telemetry SDK for MCP servers - track tool invocations, errors, and performance","maintainers":[{"name":"ross_agenetix","email":"ross@agenetix.com"}],"readme":"# @agenetix/sdk\n\nTelemetry SDK for MCP (Model Context Protocol) servers. Track tool invocations, errors, and performance.\n\n[![npm version](https://badge.fury.io/js/%40emcy%2Fsdk.svg)](https://www.npmjs.com/package/@agenetix/sdk)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## What is this?\n\nThis SDK adds observability to your MCP servers. When AI agents call your tools, Agenetix tracks:\n\n- **Tool invocations** - Which tools are called and how often\n- **Errors** - Failures with full context for debugging\n- **Performance** - Latency metrics and success rates\n- **Metadata** - Custom attributes for filtering and analysis\n\nView your data in the [Agenetix Dashboard](https://agenetix.com).\n\n## Installation\n\n```bash\nnpm install @agenetix/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { EmcyTelemetry } from '@agenetix/sdk';\n\n// Initialize with your API key\nconst agenetix = new EmcyTelemetry({\n  apiKey: process.env.AGENETIX_API_KEY!,\n  endpoint: 'https://api.agenetix.com/api/v1/telemetry',\n  mcpServerId: process.env.AGENETIX_MCP_SERVER_ID,\n});\n\n// Set server info for metadata\nagenetix.setServerInfo('my-mcp-server', '1.0.0');\n\n// Wrap your tool handlers with trace()\nconst result = await agenetix.trace('get_user', async () => {\n  return await api.getUser(userId);\n});\n```\n\n## API\n\n### `EmcyTelemetry`\n\nThe main class for telemetry.\n\n```typescript\nconst agenetix = new EmcyTelemetry({\n  apiKey: string;           // Required: Your Agenetix API key\n  endpoint?: string;        // Optional: Telemetry endpoint (default: https://api.agenetix.com/api/v1/telemetry)\n  mcpServerId?: string;     // Optional: MCP server ID for grouping\n  debug?: boolean;          // Optional: Enable debug logging\n  flushInterval?: number;   // Optional: Batch flush interval in ms (default: 5000)\n  maxBatchSize?: number;    // Optional: Max events per batch (default: 100)\n});\n```\n\n### `setServerInfo(name, version)`\n\nSet server metadata included with all events.\n\n```typescript\nagenetix.setServerInfo('my-server', '1.2.3');\n```\n\n### `trace<T>(toolName, fn)`\n\nWrap an async function to track its execution.\n\n```typescript\nconst result = await agenetix.trace('search_products', async () => {\n  return await api.searchProducts(query);\n});\n```\n\nThe trace automatically captures:\n- Start time\n- End time / duration\n- Success or failure\n- Error details if thrown\n\n### `trackInvocation(invocation)`\n\nManually track a tool invocation.\n\n```typescript\nagenetix.trackInvocation({\n  toolName: 'get_user',\n  startTime: Date.now(),\n  endTime: Date.now() + 150,\n  success: true,\n  metadata: { userId: '123' },\n});\n```\n\n### `flush()`\n\nForce send all pending events. Called automatically on interval.\n\n```typescript\nawait agenetix.flush();\n```\n\n### `shutdown()`\n\nFlush and stop the telemetry client.\n\n```typescript\nawait agenetix.shutdown();\n```\n\n## Configuration\n\n### Environment Variables\n\nThe SDK reads these environment variables:\n\n| Variable | Description |\n|----------|-------------|\n| `AGENETIX_API_KEY` | Your Agenetix API key (required) |\n| `AGENETIX_TELEMETRY_URL` | Telemetry endpoint URL |\n| `AGENETIX_MCP_SERVER_ID` | MCP server ID for grouping |\n| `AGENETIX_DEBUG` | Set to `true` for debug logs |\n\n### With @agenetix/openapi-to-mcp\n\nIf you generated your MCP server with [@agenetix/openapi-to-mcp](https://www.npmjs.com/package/@agenetix/openapi-to-mcp) and the `--agenetix` flag, the SDK is already integrated. Just set your environment variables:\n\n```bash\nAGENETIX_API_KEY=your-api-key\nAGENETIX_TELEMETRY_URL=https://api.agenetix.com/api/v1/telemetry\nAGENETIX_MCP_SERVER_ID=mcp_xxxxxxxxxxxx\n```\n\n## Example: Manual Integration\n\n```typescript\nimport { Server } from \"@modelcontextprotocol/sdk/server/index.js\";\nimport { CallToolRequestSchema } from \"@modelcontextprotocol/sdk/types.js\";\nimport { EmcyTelemetry } from '@agenetix/sdk';\n\nconst agenetix = new EmcyTelemetry({\n  apiKey: process.env.AGENETIX_API_KEY!,\n});\n\nagenetix.setServerInfo('my-server', '1.0.0');\n\nconst server = new Server(\n  { name: 'my-server', version: '1.0.0' },\n  { capabilities: { tools: {} } }\n);\n\nserver.setRequestHandler(CallToolRequestSchema, async (request) => {\n  const { name: toolName, arguments: args } = request.params;\n  \n  // Wrap the tool execution with telemetry\n  return agenetix.trace(toolName, async () => {\n    switch (toolName) {\n      case 'get_data':\n        return await getData(args);\n      default:\n        throw new Error(`Unknown tool: ${toolName}`);\n    }\n  });\n});\n\n// Graceful shutdown\nprocess.on('SIGINT', async () => {\n  await agenetix.shutdown();\n  process.exit(0);\n});\n```\n\n## Data Format\n\nEvents are batched and sent as:\n\n```typescript\ninterface TelemetryBatch {\n  apiKey: string;\n  mcpServerId?: string;\n  serverName?: string;\n  serverVersion?: string;\n  invocations: ToolInvocation[];\n}\n\ninterface ToolInvocation {\n  toolName: string;\n  startTime: number;\n  endTime: number;\n  success: boolean;\n  errorMessage?: string;\n  errorStack?: string;\n  metadata?: Record<string, unknown>;\n}\n```\n\n## Self-Hosting\n\nPoint the SDK at your own telemetry endpoint:\n\n```typescript\nconst agenetix = new EmcyTelemetry({\n  apiKey: 'your-key',\n  endpoint: 'https://your-server.com/api/v1/telemetry',\n});\n```\n\nThe endpoint should accept POST requests with the `TelemetryBatch` JSON body.\n\n## Publishing\n\n`publish-npm.yml` is the only npm publish entry point. Merging to `main` does not publish `latest`.\n\n- **Pull request against `main`** — publishes a preview dist-tag, for example `@agenetix/sdk@pr-12`. The workflow comments with the exact package ref.\n- **`v*` tag** (for example `v2.0.3`) — publishes `latest`. Bump `package.json` first; npm will not overwrite an already-published version.\n\nTo try a preview in a platform PR, add the ref to `infra/preview-packages.json`:\n\n```json\n{\n  \"@agenetix/sdk\": \"@agenetix/sdk@pr-12\"\n}\n```\n\n## License\n\nMIT © [Agenetix](https://agenetix.com)\n\n","readmeFilename":"README.md"}