You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/product/insights/ai/mcp/getting-started.mdx
+99-3Lines changed: 99 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,12 +51,13 @@ const server = Sentry.wrapMcpServerWithSentry(new McpServer({
51
51
minVersion="2.43.0"
52
52
/>
53
53
54
-
The Sentry Python SDK supports MCP observability for [FastMCP](https://gofastmcp.com/getting-started/welcome). The integration automatically captures spans for your MCP server workflows including tool executions, resource access, and prompt handling.
54
+
The Sentry Python SDK supports MCP observability for the [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk)(both low-level and FastAPI APIs) and [standalone FastMCP](https://gofastmcp.com/getting-started/welcome). The integration automatically captures spans for your MCP server workflows including tool executions, resource access, and prompt handling.
55
55
56
-
#### Quick Start with FastMCP
56
+
#### Quick Start
57
57
58
-
```python
58
+
```python {tabTitle:MCP Python SDK}
59
59
import sentry_sdk
60
+
from sentry_sdk.integrations.mcp import MCPIntegration
60
61
from mcp.server.fastmcp import FastMCP
61
62
62
63
# Sentry init needs to be above everything else
@@ -65,6 +66,7 @@ sentry_sdk.init(
65
66
traces_sample_rate=1.0,
66
67
# Optional: Enable to capture tool call arguments and results in Sentry, which may include PII
0 commit comments