Skip to content

Commit fe9d8bd

Browse files
committed
fix docs
1 parent 2096d88 commit fe9d8bd

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-8
lines changed

docs/mcp/client.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ agent = Agent('openai:gpt-4o', toolsets=[server]) # (2)!
5959

6060
async def main():
6161
async with agent: # (3)!
62-
result = await agent.run('What is 7 plus 5')
62+
result = await agent.run('What is 7 plus 5?')
6363
print(result.output)
6464
#> The answer is 12.
6565
```
@@ -127,7 +127,7 @@ agent = Agent('openai:gpt-4o', toolsets=[server]) # (2)!
127127

128128
async def main():
129129
async with agent: # (3)!
130-
result = await agent.run('What is 7 plus 5')
130+
result = await agent.run('What is 7 plus 5?')
131131
print(result.output)
132132
#> The answer is 12.
133133
```
@@ -149,7 +149,7 @@ from pydantic_ai import Agent
149149
from pydantic_ai.mcp import MCPServerStdio
150150

151151
server = MCPServerStdio( # (1)!
152-
'uvx', args=['mcp-run-python', 'stdio'],
152+
'uv', args=['run', 'mcp-run-python', 'stdio'],
153153
)
154154
agent = Agent('openai:gpt-4o', toolsets=[server])
155155

docs/mcp/overview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Model Context Protocol (MCP)
22

3-
Pydantic AI supports [Model Context Protocol (MCP)](https://modelcontextprotocol.io) in three ways:
3+
Pydantic AI supports [Model Context Protocol (MCP)](https://modelcontextprotocol.io) in two ways:
44

55
1. [Agents](../agents.md) act as an MCP Client, connecting to MCP servers to use their tools, [learn more …](client.md)
66
2. Agents can be used within MCP servers, [learn more …](server.md)
7-
3. As part of Pydantic AI, we're building a number of MCP servers, [see below](#mcp-servers)
87

98
## What is MCP?
109

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ dev = [
103103
# Needed for PyCharm users
104104
"pip>=25.2",
105105
"genai-prices>=0.0.22",
106+
"mcp-run-python>=0.0.20",
106107
]
107108
lint = ["mypy>=1.11.2", "pyright>=1.1.390", "ruff>=0.6.9"]
108109
docs = [

tests/test_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ async def call_tool(
305305
'Use the web to get the current time.': "In San Francisco, it's 8:21:41 pm PDT on Wednesday, August 6, 2025.",
306306
'Give me a sentence with the biggest news in AI this week.': 'Scientists have developed a universal AI detector that can identify deepfake videos.',
307307
'How many days between 2000-01-01 and 2025-03-18?': 'There are 9,208 days between January 1, 2000, and March 18, 2025.',
308+
'What is 7 plus 5?': 'The answer is 12.',
308309
'What is the weather like in West London and in Wiltshire?': (
309310
'The weather in West London is raining, while in Wiltshire it is sunny.'
310311
),

uv.lock

Lines changed: 17 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)