Skip to content

Document MCP intent capture feature and expand MCP server instrumentation details#37780

Draft
jboolean wants to merge 1 commit into
masterfrom
julian.boilen/mcp-intent-capture-docs
Draft

Document MCP intent capture feature and expand MCP server instrumentation details#37780
jboolean wants to merge 1 commit into
masterfrom
julian.boilen/mcp-intent-capture-docs

Conversation

@jboolean

@jboolean jboolean commented Jun 25, 2026

Copy link
Copy Markdown

What does this PR do? What is the motivation?

Documents two additions to the MCP integration in LLM Observability:

  1. MCP intent capture — a new opt-in feature (DD_MCP_CAPTURE_INTENT / capture_intent=True in LLMObs.enable()) that requests the calling model describe why it chose each MCP tool. Adds the env var to the command-line setup reference, the parameter to LLMObs.enable(), and a new "MCP intent capture" section with both command-line and in-code examples.

  2. Expanded MCP server instrumentation details — replaces the single ToolManager.call_tool entry with the new server-side instrumented methods (RequestResponder), adds the initialize and tools/call MCP method coverage, and documents the tags recorded on server spans (mcp_method, mcp_session_id, client_name, client_version).

Merge readiness

  • Ready for merge

For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.
  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.

AI assistance

Used Claude Code for drafting and style cleanup.

Additional notes

Copy link
Copy Markdown
Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

Copy link
Copy Markdown
Contributor

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.

1 participant