Prompt Buddy logoPrompt Buddy

openai · OpenAI Platform Docs

Agents Integrations and observability

Teaches how to integrate external surfaces into an agent loop using Model Context Protocol (MCP) and how to implement observability through built-in tracing for debugging and evaluation.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Agents Integrations and observability

Teaches how to integrate external surfaces into an agent loop using Model Context Protocol (MCP) and how to implement observability through built-in tracing for debugging and evaluation.

When To Use

Use when deciding whether to host MCP tools in the SDK or connect to local servers, or when setting up tracing to inspect model calls, tool outputs, and handoffs during agent execution.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/agents-integrations-observability-and-workflow-guide.mdA guide detailing how to integrate external surfaces into the agent loop and implement runtime inspection for observability.Questions about a guide detailing how to integrate external surfaces into the agent loop and implement runtime inspection for observa...
examples/agents-integrations-observability-and-openai-agents-typescript-integrati.typescriptA TypeScript code example demonstrating how to initialize an OpenAI Agent with hosted MCP tools for integration and observability.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize an OpenAI Agent with hosted MCP tools for integration and o...
examples/agents-integrations-observability-and-openai-agents-mcp-hosted-tool.pythonA Python code example demonstrating how to integrate an Agent with a HostedMCPTool using the OpenAI agents library.Exact payloads, commands, or snippets shown in A Python code example demonstrating how to integrate an Agent with a HostedMCPTool using the OpenAI agents library.
examples/agents-integrations-observability-and-openai-agents-mcp-filesystem-types.typescriptA TypeScript example demonstrating how to integrate an OpenAI Agent with a Filesystem MCP server using the @openai/agents library.Exact payloads, commands, or snippets shown in A TypeScript example demonstrating how to integrate an OpenAI Agent with a Filesystem MCP server using the @openai/ag...
examples/agents-integrations-observability-and-openai-agents-mcp-filesystem.pythonA Python script demonstrating how to integrate an OpenAI Agent with a Model Context Protocol (MCP) filesystem server using asyncio.Exact payloads, commands, or snippets shown in A Python script demonstrating how to integrate an OpenAI Agent with a Model Context Protocol (MCP) filesystem server...
examples/agents-integrations-observability-and-openai-agents-typescript-integrati-2.typescriptA TypeScript code example demonstrating how to use the OpenAI Agents SDK to run a joke generator workflow wrapped in a trace for observability.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use the OpenAI Agents SDK to run a joke generator workflow wrapped in...
examples/agents-integrations-observability-and-openai-agents-integrations-observa.pythonA Python script demonstrating how to use the trace function to monitor agent workflows and runner execution.Exact payloads, commands, or snippets shown in A Python script demonstrating how to use the trace function to monitor agent workflows and runner execution.

What This Skill Covers

  • After the workflow shape is clear, the next questions are which external surfaces should live inside the agent loop and how you will inspect what actually ha...
  • Main sections: Choose what lives in the SDK, MCP, Tracing, Next steps.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.openai.com/api/docs/guides/agents/integrations-observability.md