Skip to content

Commit 6d2da97

Browse files
committed
remove js specific info
1 parent 80aa086 commit 6d2da97

File tree

1 file changed

+0
-17
lines changed
  • develop-docs/sdk/expected-features/mcp-instrumentation

1 file changed

+0
-17
lines changed

develop-docs/sdk/expected-features/mcp-instrumentation/index.mdx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,3 @@ The MCP Server module instruments Anthropic's Model Context Protocol (MCP) SDKs.
88

99
- [Tracing](./tracing)
1010
- [Errors](./errors)
11-
12-
## Current limitations
13-
14-
Currently, it doesn't support automatic instrumentation due to [this issue](https://github.com/getsentry/sentry-javascript/issues/16052) related to `import-in-the-middle`.
15-
16-
Instrumentation must be done by wrapping the MCP server instance. This is done by the `wrapMcpServerWithSentry` function. For example:
17-
18-
```ts
19-
import * as Sentry from "@sentry/core";
20-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
21-
22-
const mcpServer = new McpServer({
23-
name: 'My MCP Server',
24-
});
25-
26-
const server = Sentry.wrapMcpServerWithSentry(mcpServer);
27-
```

0 commit comments

Comments
 (0)