Repository navigation
docs(fastmcp): add native Python tracing guide - #1080
Merged
Merged
Conversation
Use the published FastMCP native provider route and pin the runnable guide with loopback-only HTTP, stdio, privacy and shutdown tests. Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Add a discoverable Python FastMCP 4.1.x guide using its native OpenTelemetry spans and the standard OTLP/HTTP exporter. The generic MCP guide links to this route without removing support for older or non-native SDKs.
The example configures one provider per process, project resource attributes, both Future AGI authentication headers, and shutdown delivery. It distinguishes Python FastMCP from the unrelated npm package and avoids an additional instrumentor or customer-maintained adapter.
Important behavior
Verification
The new CI workflow executes the page's exact HTTP snippets and real stdio/in-process calls against published FastMCP 4.1.0/Python 3.10 and 4.1.5/Python 3.13, with networking restricted to loopback. Tests assert parent ancestry, one native server execution, resource/auth headers, protobuf plain/gzip export, errors, content behavior and shutdown delivery.
Locally, both six-case runtime suites, the guide contract, integration catalog tests, type checks, link audit and docs build pass. The built guide, active sidebar and catalog search were checked in an isolated browser. Backend semantic aliases were checked against native attributes; no live Future AGI ingestion or product screenshot is claimed.
Only already-published packages are used. No SDK package, release metadata, version, model call or registry publication changes. No product
e2e/harness applies in this documentation repository.Follow-up: merged current
mainwithout dropping the native MCP 2.x guide or catalog entry; added a regression contract for both native routes and refreshed CI to FastMCP 4.1.5 (the current published patch). Both six-case runtime suites, three guide/CI contracts, catalog checks, type check, link audit and full docs build pass locally on the refreshed branch. The latest-version CI assertion was reproduced failing before the matrix update.Source: the framework tracing audit's
fastmcp:pythonINCOMPLETE finding (native setup/semantics documentation gap).🤖 Generated with Claude Code