Skip to content

Commit c91cd9f

Browse files
committed
remove more references
1 parent fe9d8bd commit c91cd9f

File tree

4 files changed

+8
-25
lines changed

4 files changed

+8
-25
lines changed

CLAUDE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ This is a uv workspace with multiple packages:
8383
- **`pydantic_graph/`**: Graph execution engine
8484
- **`examples/`**: Example applications
8585
- **`clai/`**: CLI tool
86-
- **`mcp-run-python/`**: MCP server implementation (Deno/TypeScript)
8786

8887
## Testing Strategy
8988

docs/mcp/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ Some examples of what this means:
1717

1818
- Pydantic AI could use a web search service implemented as an MCP server to implement a deep research agent
1919
- Cursor could connect to the [Pydantic Logfire](https://github.com/pydantic/logfire-mcp) MCP server to search logs, traces and metrics to gain context while fixing a bug
20-
- Pydantic AI, or any other MCP client could connect to our [Run Python](run-python.md) MCP server to run arbitrary Python code in a sandboxed environment
20+
- Pydantic AI, or any other MCP client could connect to our [Run Python](https://github.com/pydantic/mcp-run-python) MCP server to run arbitrary Python code in a sandboxed environment

pydantic_ai_slim/pydantic_ai/mcp.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -400,16 +400,7 @@ class MCPServerStdio(MCPServer):
400400
from pydantic_ai.mcp import MCPServerStdio
401401
402402
server = MCPServerStdio( # (1)!
403-
'deno',
404-
args=[
405-
'run',
406-
'-N',
407-
'-R=node_modules',
408-
'-W=node_modules',
409-
'--node-modules-dir=auto',
410-
'jsr:@pydantic/mcp-run-python',
411-
'stdio',
412-
]
403+
'uv', args=['run', 'mcp-run-python', 'stdio'],
413404
)
414405
agent = Agent('openai:gpt-4o', toolsets=[server])
415406
@@ -418,7 +409,7 @@ async def main():
418409
...
419410
```
420411
421-
1. See [MCP Run Python](../mcp/run-python.md) for more information.
412+
1. See [MCP Run Python](https://github.com/pydantic/mcp-run-python) for more information.
422413
2. This will start the server as a subprocess and connect to it.
423414
"""
424415

@@ -739,7 +730,7 @@ async def main():
739730
...
740731
```
741732
742-
1. E.g. you might be connecting to a server run with [`mcp-run-python`](../mcp/run-python.md).
733+
1. E.g. you might be connecting to a server run with [`mcp-run-python`](https://github.com/pydantic/mcp-run-python).
743734
2. This will connect to a server running on `localhost:3001`.
744735
"""
745736

@@ -764,16 +755,15 @@ class MCPServerHTTP(MCPServerSSE):
764755
from pydantic_ai import Agent
765756
from pydantic_ai.mcp import MCPServerHTTP
766757
767-
server = MCPServerHTTP('http://localhost:3001/sse') # (1)!
758+
server = MCPServerHTTP('http://localhost:3001/sse')
768759
agent = Agent('openai:gpt-4o', toolsets=[server])
769760
770761
async def main():
771762
async with agent: # (2)!
772763
...
773764
```
774765
775-
1. E.g. you might be connecting to a server run with [`mcp-run-python`](../mcp/run-python.md).
776-
2. This will connect to a server running on `localhost:3001`.
766+
1. This will connect to a server running on `localhost:3001`.
777767
"""
778768

779769

pyproject.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ members = [
7474
"pydantic_ai_slim",
7575
"pydantic_evals",
7676
"pydantic_graph",
77-
"mcp-run-python",
7877
"clai",
7978
"examples",
8079
]
@@ -132,7 +131,6 @@ include = [
132131
"pydantic_ai_slim/**/*.py",
133132
"pydantic_evals/**/*.py",
134133
"pydantic_graph/**/*.py",
135-
"mcp-run-python/**/*.py",
136134
"examples/**/*.py",
137135
"clai/**/*.py",
138136
"tests/**/*.py",
@@ -178,7 +176,6 @@ docstring-code-format = false
178176
quote-style = "single"
179177

180178
[tool.ruff.lint.per-file-ignores]
181-
"mcp-run-python/**/*.py" = ["D", "TID251"]
182179
"examples/**/*.py" = ["D101", "D103"]
183180
"tests/**/*.py" = ["D"]
184181
"docs/**/*.py" = ["D"]
@@ -194,7 +191,6 @@ include = [
194191
"pydantic_ai_slim",
195192
"pydantic_evals",
196193
"pydantic_graph",
197-
"mcp-run-python",
198194
"tests",
199195
"examples",
200196
"clai",
@@ -208,10 +204,8 @@ executionEnvironments = [
208204
]
209205
exclude = [
210206
"examples/pydantic_ai_examples/weather_agent_gradio.py",
211-
"mcp-run-python/node_modules",
212-
"pydantic_ai_slim/pydantic_ai/ext/aci.py", # aci-sdk is too niche to be added as an (optional) dependency
207+
"pydantic_ai_slim/pydantic_ai/ext/aci.py", # aci-sdk is too niche to be added as an (optional) dependency
213208
]
214-
extraPaths = ["mcp-run-python/stubs"]
215209

216210
[tool.mypy]
217211
files = "tests/typed_agent.py,tests/typed_graph.py"
@@ -268,7 +262,7 @@ disable_warnings = ["include-ignored"]
268262
source = [
269263
".",
270264
"/home/runner/work/pydantic-ai/pydantic-ai",
271-
"/System/Volumes/Data/home/runner/work/pydantic-ai/pydantic-ai"
265+
"/System/Volumes/Data/home/runner/work/pydantic-ai/pydantic-ai",
272266
]
273267

274268
# https://coverage.readthedocs.io/en/latest/config.html#report

0 commit comments

Comments
 (0)