Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for MCP tool use with Agents SDK #245

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ As a result, the mental model for the agent loop is:

The Agents SDK is designed to be highly flexible, allowing you to model a wide range of LLM workflows including deterministic flows, iterative loops, and more. See examples in [`examples/agent_patterns`](examples/agent_patterns).

### Model Context Protocol

[Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) is not currently supported natively in the Agents SDK. However, you can use third-party extensions, such as [openai-agents-mcp](https://pypi.org/project/openai-agents-mcp/), to enable Agents to access tools exposed by MCP servers.

## Tracing

The Agents SDK automatically traces your agent runs, making it easy to track and debug the behavior of your agents. Tracing is extensible by design, supporting custom spans and a wide variety of external destinations, including [Logfire](https://logfire.pydantic.dev/docs/integrations/llms/openai/#openai-agents), [AgentOps](https://docs.agentops.ai/v1/integrations/agentssdk), [Braintrust](https://braintrust.dev/docs/guides/traces/integrations#openai-agents-sdk), [Scorecard](https://docs.scorecard.io/docs/documentation/features/tracing#openai-agents-sdk-integration), and [Keywords AI](https://docs.keywordsai.co/integration/development-frameworks/openai-agent). For more details about how to customize or disable tracing, see [Tracing](http://openai.github.io/openai-agents-python/tracing), which also includes a larger list of [external tracing processors](http://openai.github.io/openai-agents-python/tracing/#external-tracing-processors-list).
Expand Down
4 changes: 4 additions & 0 deletions docs/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ As mentioned before, we automatically parse the function signature to extract th

The code for the schema extraction lives in [`agents.function_schema`][].

## Model Context Protocol servers as tools

[Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) servers are not currently supported natively in the Agents SDK. However, you can use third-party extensions, such as [openai-agents-mcp](https://pypi.org/project/openai-agents-mcp/), to enable Agents to access tools exposed by MCP servers.

## Agents as tools

In some workflows, you may want a central agent to orchestrate a network of specialized agents, instead of handing off control. You can do this by modeling agents as tools.
Expand Down