agnost-mcp 0.2.0 supports the FastMCP bundled with mcp 1.x
(from mcp.server.fastmcp import FastMCP). It does not yet track standalone
FastMCP 4 (from fastmcp import FastMCP) or mcp 2.x servers: track() logs
Failed to patch server for analytics and no tool calls are sent. Keep the
mcp<2 pin until a release with FastMCP 4 support ships.
Integrate
Call track after defining your server and tools, before running:
from mcp.server.fastmcp import FastMCPfrom agnost_mcp import track, configserver = FastMCP("Your Server Name")# ... your tools ...track(server, "your-org-id", config( endpoint="https://api.agnost.ai", disable_input=False, disable_output=False,))if __name__ == "__main__": server.run()
Pass an identify function to resolve a user from the incoming request context. It receives the HTTP request (a Starlette Request, or None over stdio) and the process environment, and should return a dict with at least a userId key:
from agnost_mcp import track, configtrack(server, "your-org-id", config( identify=lambda req, env: { "userId": (req.headers.get("x-user-id") if req else None) or env.get("USER_ID", "anonymous"), "email": (req.headers.get("x-user-email") if req else None) or env.get("USER_EMAIL"), "role": (req.headers.get("x-user-role") if req else None) or env.get("USER_ROLE", "user"), }))
The function can also be async. Return None to skip user attribution for a request.
Options
Field
Type
Default
Description
endpoint
str
https://api.agnost.ai
API endpoint
disable_input
bool
False
Skip capturing tool input arguments
disable_output
bool
False
Skip capturing tool output / result
log_level
str
"INFO"
Log verbosity: DEBUG, INFO, WARNING, ERROR
identify
Callable
None
Function (request, env) → UserIdentity to resolve user identity per request. request is None over stdio
UserIdentity is a Dict[str, Any] that must contain a userId key. Other fields (e.g. email, role) are optional and forwarded as user traits. The identify callable can be sync or async, and may return None to skip attribution for a request.
What appears in Agnost AI
Tool calls for FastMCP tool invocations.
Events for every tracked call.
Failed tool calls remain visible in Events with their error details.
Verify
Call one FastMCP tool from your MCP client, then open app.agnost.ai. Check Events first, then Tool calls.
Troubleshooting
Call track(...) after defining tools and before server.run().
Confirm the org ID is correct.
If the log shows Failed to patch server for analytics, check pip show mcp: the
installed version must be below 2.
If the log shows User identification failed, make sure identify handles
request being None over stdio.
Next steps
Tool calls: analyze calls from your FastMCP server.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Agnost AI","colors":{"primary":"#1E293B","light":"#475569","dark":"#0F172A"},"logo":{"light":"https://mintcdn.com/agnostai/gk7fTSzlcOmQbDKn/logo.svg?fit=max\u0026auto=format\u0026n=gk7fTSzlcOmQbDKn\u0026q=85\u0026s=6349936861c0d08fe4b2f71e8ea8d2c8","dark":"https://mintcdn.com/agnostai/gk7fTSzlcOmQbDKn/logo-brand.svg?fit=max\u0026auto=format\u0026n=gk7fTSzlcOmQbDKn\u0026q=85\u0026s=93deaf5bae9aef1724d14b58ddcadff5"},"favicon":"https://mintcdn.com/agnostai/xnKRit9TY-254oWk/favicon.svg?fit=max\u0026auto=format\u0026n=xnKRit9TY-254oWk\u0026q=85\u0026s=60819cd010596a64da2d19acebf04596","api":{"openapi":"openapi.yaml"},"navbar":{"links":[{"href":"https://call.agnost.ai","label":"Book a call"}],"primary":{"type":"button","label":"Get Started","href":"https://app.agnost.ai"}},"footer":{"socials":{"website":"https://agnost.ai","linkedin":"https://www.linkedin.com/company/agnostai","x":"https://x.com/agnostai"}},"search":{"prompt":"Search docs..."},"seo":{},"contextual":{"options":["copy","view","claude","cursor","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agnostai","hasAudioNarration":false,"actualSubdomain":"agnostai","customDomains":["docs.agnost.ai"],"gitSource":{"type":"github","owner":"agnostai","repo":"agnostai","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afda7810647be7d29015a20","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"Get started","count":33},{"language":"default","tag":"Agent frameworks","count":14},{"language":"default","tag":"Using Agnost AI","count":9},{"language":"default","tag":"Voice agents","count":7},{"language":"default","tag":"API reference","count":7},{"language":"default","tag":"MCP servers","count":5},{"language":"default","tag":"Overview","count":3},{"language":"default","tag":"Analysis","count":3},{"language":"default","tag":"Custom applications","count":3},{"language":"default","tag":"Data","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"fastmcp","slug":"/fastmcp","pageMetadata":{"title":"Python FastMCP","description":"Add Agnost AI analytics to your FastMCP server","href":"/fastmcp"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add Agnost AI analytics to your FastMCP server\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`install`,children:`Install`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`pip`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` install agnost-mcp `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mcp\u003c2\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`uv`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`uv add agnost-mcp `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mcp\u003c2\"`})]}),`\n`]})})})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`agnost-mcp`}),` 0.2.0 supports the FastMCP bundled with `,_jsx(_components.code,{children:`mcp`}),` 1.x\n(`,_jsx(_components.code,{children:`from mcp.server.fastmcp import FastMCP`}),`). It does not yet track standalone\nFastMCP 4 (`,_jsx(_components.code,{children:`from fastmcp import FastMCP`}),`) or `,_jsx(_components.code,{children:`mcp`}),` 2.x servers: `,_jsx(_components.code,{children:`track()`}),` logs\n`,_jsx(_components.code,{children:`Failed to patch server for analytics`}),` and no tool calls are sent. Keep the\n`,_jsx(_components.code,{children:`mcp\u003c2`}),` pin until a release with FastMCP 4 support ships.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`integrate`,children:`Integrate`}),`\n`,_jsxs(_components.p,{children:[`Call `,_jsx(_components.code,{children:`track`}),` after defining your server and tools, before running:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mcp.server.fastmcp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` FastMCP`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` agnost_mcp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` track, config`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`server = FastMCP(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Your Server Name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ... your tools ...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`track(server, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-org-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, config(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` endpoint=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.agnost.ai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` disable_input=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` disable_output=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` __name__ == `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"__main__\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` server.run()`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Get your org ID from `,_jsx(_components.a,{href:`https://app.agnost.ai`,children:`app.agnost.ai`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`identify-users`,children:`Identify users`}),`\n`,_jsxs(_components.p,{children:[`Pass an `,_jsx(_components.code,{children:`identify`}),` function to resolve a user from the incoming request context. It receives the HTTP request (a Starlette `,_jsx(_components.code,{children:`Request`}),`, or `,_jsx(_components.code,{children:`None`}),` over stdio) and the process environment, and should return a dict with at least a `,_jsx(_components.code,{children:`userId`}),` key:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` agnost_mcp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` track, config`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`track(server, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-org-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, config(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` identify=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`lambda`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` req, env: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: (req.headers.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-user-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` req `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`or`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` env.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USER_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"anonymous\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: (req.headers.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-user-email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` req `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`or`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` env.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USER_EMAIL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: (req.headers.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-user-role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` req `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`or`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` env.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USER_ROLE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The function can also be `,_jsx(_components.code,{children:`async`}),`. Return `,_jsx(_components.code,{children:`None`}),` to skip user attribution for a request.`]}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`endpoint`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`str`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://api.agnost.ai`})}),_jsx(_components.td,{children:`API endpoint`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`disable_input`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`False`})}),_jsx(_components.td,{children:`Skip capturing tool input arguments`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`disable_output`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`False`})}),_jsx(_components.td,{children:`Skip capturing tool output / result`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`log_level`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`str`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"INFO\"`})}),_jsxs(_components.td,{children:[`Log verbosity: `,_jsx(_components.code,{children:`DEBUG`}),`, `,_jsx(_components.code,{children:`INFO`}),`, `,_jsx(_components.code,{children:`WARNING`}),`, `,_jsx(_components.code,{children:`ERROR`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`identify`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Callable`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`Function `,_jsx(_components.code,{children:`(request, env) → UserIdentity`}),` to resolve user identity per request. `,_jsx(_components.code,{children:`request`}),` is `,_jsx(_components.code,{children:`None`}),` over stdio`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`UserIdentity`}),` is a `,_jsx(_components.code,{children:`Dict[str, Any]`}),` that `,_jsxs(_components.strong,{children:[`must contain a `,_jsx(_components.code,{children:`userId`}),` key`]}),`. Other fields (e.g. `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`role`}),`) are optional and forwarded as user traits. The identify callable can be sync or async, and may return `,_jsx(_components.code,{children:`None`}),` to skip attribution for a request.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-appears-in-agnost-ai`,children:`What appears in Agnost AI`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tool calls`}),` for FastMCP tool invocations.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Events`}),` for every tracked call.`]}),`\n`,_jsxs(_components.li,{children:[`Failed tool calls remain visible in `,_jsx(_components.strong,{children:`Events`}),` with their error details.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`verify`,children:`Verify`}),`\n`,_jsxs(_components.p,{children:[`Call one FastMCP tool from your MCP client, then open `,_jsx(_components.a,{href:`https://app.agnost.ai`,children:`app.agnost.ai`}),`. Check `,_jsx(_components.strong,{children:`Events`}),` first, then `,_jsx(_components.strong,{children:`Tool calls`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.code,{children:`track(...)`}),` after defining tools and before `,_jsx(_components.code,{children:`server.run()`}),`.`]}),`\n`,_jsx(_components.li,{children:`Confirm the org ID is correct.`}),`\n`,_jsxs(_components.li,{children:[`If the log shows `,_jsx(_components.code,{children:`Failed to patch server for analytics`}),`, check `,_jsx(_components.code,{children:`pip show mcp`}),`: the\ninstalled version must be below 2.`]}),`\n`,_jsxs(_components.li,{children:[`If the log shows `,_jsx(_components.code,{children:`User identification failed`}),`, make sure `,_jsx(_components.code,{children:`identify`}),` handles\n`,_jsx(_components.code,{children:`request`}),` being `,_jsx(_components.code,{children:`None`}),` over stdio.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/using-tool-calls`,children:`Tool calls`}),`: analyze calls from your FastMCP server.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/using-events`,children:`Events`}),`: verify call fields and execution details.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/using-alerts`,children:`Alerts`}),`: monitor important MCP tool conditions.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Python FastMCP","description":"Add Agnost AI analytics to your FastMCP server","href":"/fastmcp"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Install","slug":"install","depth":2,"children":[]},{"title":"Integrate","slug":"integrate","depth":2,"children":[]},{"title":"Identify users","slug":"identify-users","depth":2,"children":[]},{"title":"Options","slug":"options","depth":2,"children":[]},{"title":"What appears in Agnost AI","slug":"what-appears-in-agnost-ai","depth":2,"children":[]},{"title":"Verify","slug":"verify","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"agnostai","siteName":"Agnost AI","title":"Python FastMCP - Agnost AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T06:43:17.902Z","originalFileLocation":"fastmcp.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add Agnost AI analytics to your FastMCP server\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agnost AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Python FastMCP - Agnost AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add Agnost AI analytics to your FastMCP server\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agnost AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agnost.ai/fastmcp\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agnostai.mintlify.site/_mintlify/api/og/v2?division=MCP+servers\u0026amp;title=Python+FastMCP\u0026amp;description=Add+Agnost+AI+analytics+to+your+FastMCP+server\u0026amp;theme=62947c029d9847eb8da7d29c\u0026amp;signature=1d35802260d2e48cc164947633a633767a0f40d9d34cfabad15a71b58877d6b3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Python FastMCP - Agnost AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add Agnost AI analytics to your FastMCP server\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agnostai.mintlify.site/_mintlify/api/og/v2?division=MCP+servers\u0026amp;title=Python+FastMCP\u0026amp;description=Add+Agnost+AI+analytics+to+your+FastMCP+server\u0026amp;theme=62947c029d9847eb8da7d29c\u0026amp;signature=1d35802260d2e48cc164947633a633767a0f40d9d34cfabad15a71b58877d6b3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/agnostai/4so8rGq1kC3SW78P/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agnost AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1E293B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agnost.ai/fastmcp\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/fastmcp.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agnost.ai/#organization\",\"name\":\"Agnost AI\",\"url\":\"https://docs.agnost.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agnostai/gk7fTSzlcOmQbDKn/logo.svg?fit=max\u0026auto=format\u0026n=gk7fTSzlcOmQbDKn\u0026q=85\u0026s=6349936861c0d08fe4b2f71e8ea8d2c8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agnost.ai#website\",\"name\":\"Agnost AI\",\"url\":\"https://docs.agnost.ai\",\"publisher\":{\"@id\":\"https://docs.agnost.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agnost.ai/fastmcp#webpage\",\"url\":\"https://docs.agnost.ai/fastmcp\",\"name\":\"Python FastMCP\",\"description\":\"Add Agnost AI analytics to your FastMCP server\",\"dateModified\":\"2026-11-17T06:43:17.902Z\",\"isPartOf\":{\"@id\":\"https://docs.agnost.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agnost.ai/fastmcp#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agnost.ai/fastmcp#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MCP servers\",\"item\":\"https://docs.agnost.ai/mcp-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python FastMCP\",\"item\":\"https://docs.agnost.ai/fastmcp\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.agnost.ai/fastmcp#article\",\"headline\":\"Python FastMCP\",\"name\":\"Python FastMCP\",\"description\":\"Add Agnost AI analytics to your FastMCP server\",\"url\":\"https://docs.agnost.ai/fastmcp\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agnost.ai/fastmcp#webpage\"},\"dateModified\":\"2026-11-17T06:43:17.902Z\",\"publisher\":{\"@id\":\"https://docs.agnost.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agnost.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agnost AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Agnost AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/fastmcp.md","siteName":"Agnost AI","nav":{"global":null,"tabs":[{"tab":"Get started","icon":"rocket","groups":[{"group":"Getting started","pages":[{"title":"Monitor your AI agents in production","sidebarTitle":"What is Agnost AI?","href":""},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Agent frameworks","pages":[{"title":"Agno","href":"/agno"},{"title":"Anthropic","href":"/anthropic"},{"title":"CrewAI","href":"/crewai"},{"title":"DSPy","href":"/dspy"},{"title":"Google ADK","href":"/google-adk"},{"title":"LangChain","href":"/langchain"},{"title":"LlamaIndex","href":"/llamaindex"},{"title":"Mastra","href":"/mastra"},{"title":"OpenAI SDK","href":"/openai"},{"title":"OpenAI Agents SDK","href":"/openai-agents"},{"title":"Pydantic AI","href":"/pydantic-ai"},{"title":"Spectrum-TS","href":"/spectrum-ts"},{"title":"Vercel AI SDK","href":"/vercel-ai"},{"title":"VoltAgent","href":"/voltagent"}]},{"group":"Voice agents","pages":[{"title":"AgentPhone","href":"/agentphone"},{"title":"LiveKit Agents","href":"/livekit"},{"title":"Pipecat","href":"/pipecat"},{"title":"Telnyx","href":"/telnyx-voice"},{"title":"Trellus","href":"/trellus"},{"title":"Retell","href":"/retell"},{"title":"Vapi","href":"/vapi"}]},{"group":"Custom applications","pages":[{"title":"Python","href":"/python-conversation"},{"title":"TypeScript","href":"/typescript-conversation"},{"title":"OpenTelemetry (OTel)","href":"/otel"}]},{"group":"MCP servers","pages":[{"title":"Overview","href":"/mcp-overview"},{"title":"TypeScript MCP SDK","description":"Add Agnost AI analytics to your TypeScript MCP server","href":"/typescript-sdk"},{"title":"Python FastMCP","href":"/fastmcp"},{"title":"Go MCP SDK","description":"Add Agnost AI analytics to your Go MCP server","href":"/golang-sdk"},{"title":"Python Anthropic SDK (low-level)","href":"/anthropic-low-level"}]},{"group":"Platforms","pages":[{"title":"MCP Toolbox for Databases","href":"/mcp-toolbox"},{"title":"Apify Actors","href":"/apify"}]}]},{"tab":"Using Agnost AI","icon":"chart-line","pages":[{"title":"Using Agnost AI","href":"/using-conversations"}]},{"tab":"API reference","icon":"square-terminal","pages":[{"title":"API reference","href":"/developer-resources"}]},{"tab":"Trust \u0026 security","icon":"shield-check","pages":[{"title":"Trust \u0026 security","href":"/data-governance"}]}]},"basePath":"","title":"Python FastMCP - Agnost AI","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":[],"chunks":[]}