Repository navigation
Commit 5286934
authored
feat: Add
- Add automatic tracing for FastMCP 3.35+ and 4.x servers, including
stateless HTTP sessions.
- Record tool calls, resource reads, prompts, notifications, and errors
in Braintrust.
Use `integrations.fastmcp` to control tracing and content capture
separately from the MCP integration.
- Add `wrapFastMCP()` for manual setup:
```ts
import { wrapFastMCP } from "braintrust";
import * as fastmcp from "fastmcp";
const { FastMCP } = wrapFastMCP(fastmcp); // Add tracing to FastMCP
sessions.
```fastmcp tracing (#2695)1 parent d2ccf19 commit 5286934
39 files changed
Lines changed: 12766 additions & 74 deletions
File tree
- .changeset
- e2e
- config
- scenarios/fastmcp-instrumentation
- __snapshots__
- js
- src
- auto-instrumentations/configs
- instrumentation
- plugins
- vendor-sdk-types
- wrappers
- tests/auto-instrumentations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
629 | 652 | | |
630 | 653 | | |
631 | 654 | | |
| |||
0 commit comments