Skip to content

Merge main into v4 - #2722

Merged
Luca Forstner (lforst) merged 7 commits into
v4from
lforst/merge-main-into-v4
Nov 2, 2026
Merged

Luca Forstner (lforst) merged 7 commits into
v4from
lforst/merge-main-into-v4

Conversation

@lforst

Copy link
Copy Markdown
Member

No description provided.

- 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.
  ```
With this we should be in a great place for supporting the new
https://cursor.com/blog/agent-sdk

> 🤖 **This text was AI-generated.**

Fix matching for minified ESM/CommonJS builds while preserving
automatic/manual tracing parity. Capture nested tools, reported
status/errors, cancellation, truncation flags, and request IDs. Report
cache-inclusive prompt usage without double-counting.

Before:

```text
Cursor Agent [task]
|-- tool: shell [tool]
`-- tool: task [tool]
    `-- Agent: task [task]
        (nested tool calls omitted)
```

After:

```text
Cursor Agent [task]
|-- shell [tool]
`-- task [tool]
    `-- Cursor Subagent [task]
        `-- read [tool]
```

Example for SDK-reported task steps; available detail depends on the
SDK.
Co-authored-by: lforst <8118419+lforst@users.noreply.github.com>
## Summary

Points links at the old docs domain (`www.braintrust.dev/docs`,
`braintrust.dev/docs`, `braintrustdata.com/docs`) to
`docs.braintrust.dev`. The old links still redirect since the docs
cutover, so this is cleanup. Where a page has moved, the link goes to
its current path instead of through a redirect chain.

Includes `DOCS_HOMEPAGE` in `scripts/release/_shared.mjs` and the
matching `homepage` in each `package.json`. The broken `guides/temporal`
link in the Temporal example README now goes to the Temporal integration
page.

Not changed: generated types (they pick up new links on the next
regeneration from the main repo) and CHANGELOGs.

## Testing

- Every new URL returns 200 from `docs.braintrust.dev` with no redirect.
SDK reference links use the `/versions/latest` alias on purpose.
- `node scripts/release/validate-publishable-packages.mjs` passes, which
checks that each `homepage` matches `DOCS_HOMEPAGE`.

Refs:
[DOC-2479](https://linear.app/braintrustdata/issue/DOC-2479/update-links-to-the-old-docs-domain-in-the-sdk-and-cli-repos)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: jseldess <15893490+jseldess@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T15:06:25.231510Z 83e1b8c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83e1b8cdf6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

@lforst
Luca Forstner (lforst) merged commit 9b6d69a into v4 Nov 2, 2026
55 checks passed
@lforst
Luca Forstner (lforst) deleted the lforst/merge-main-into-v4 branch November 2, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants