Skip to content
Merged
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
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Assuming you are using [uv](https://github.com/astral-sh/uv), include it in your

```toml
[tool.uv.sources]
mcpd_sdk = { path = "../mcpd-sdk", editable = true }
mcpd = { path = "../mcpd", editable = true }

[project]
dependencies = [
"mcpd_sdk"
"mcpd"
]
```

Expand Down Expand Up @@ -67,7 +67,7 @@ make test
## Quick Start

```python
from mcpd_sdk import McpdClient, McpdError
from mcpd import McpdClient, McpdError

client = McpdClient(endpoint="http://localhost:8090")

Expand All @@ -93,14 +93,14 @@ Generate dynamic functions suitable for AI agents:

```python
from any_agent import AnyAgent, AgentConfig
from mcpd_sdk import McpdClient
from mcpd import McpdClient

# Assumes the mcpd daemon is running
client = McpdClient(endpoint="http://localhost:8090")

agent_config = AgentConfig(
tools=client.agent_tools(),
model_id="gpt-4.1-nano", # Requires OPENAI_API_KEY to be set
model_id="gpt-4.1-nano", # Requires OPENAI_API_KEY to be set
instructions="Use the tools to answer the user's question."
)
agent = AnyAgent.create("mcpd-agent", agent_config)
Expand All @@ -125,7 +125,7 @@ please refer to the relevant example for execution details.
### Initialization

```python
from mcpd_sdk import McpdClient
from mcpd import McpdClient

# Initialize the client with your mcpd API endpoint.
# api_key is optional and sends an 'MCPD-API-KEY' header.
Expand Down
2 changes: 1 addition & 1 deletion examples/anyagent/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests
from any_agent import AgentConfig, AnyAgent
from mcpd_sdk import McpdClient, McpdError
from mcpd import McpdClient, McpdError

if __name__ == "__main__":
mcpd_endpoint = os.getenv("MCPD_ADDR", "http://localhost:8090")
Expand Down
4 changes: 2 additions & 2 deletions examples/anyagent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ requires-python = ">=3.11"
dependencies = [
"any-agent[all]>=0.24.0",
"requests>=2.32.4",
"mcpd_sdk",
"mcpd",
]

[dependency-groups]
Expand All @@ -34,7 +34,7 @@ all = [
]

[tool.uv.sources]
mcpd_sdk = { path = "../..", editable = true }
mcpd = { path = "../..", editable = true }

[tool.ruff]
fix = true
Expand Down
151 changes: 100 additions & 51 deletions examples/anyagent/uv.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/manual/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

import requests
from mcpd_sdk import McpdClient, McpdError
from mcpd import McpdClient, McpdError

if __name__ == "__main__":
mcpd_endpoint = os.getenv("MCPD_ADDR", "http://localhost:8090")
Expand Down
4 changes: 2 additions & 2 deletions examples/manual/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = {text = "Apache-2.0"}
requires-python = ">=3.11"
dependencies = [
"requests>=2.32.4",
"mcpd_sdk",
"mcpd",
]

[dependency-groups]
Expand All @@ -33,7 +33,7 @@ all = [
]

[tool.uv.sources]
mcpd_sdk = { path = "../..", editable = true }
mcpd = { path = "../..", editable = true }

[tool.ruff]
fix = true
Expand Down
17 changes: 12 additions & 5 deletions examples/manual/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/pydantic-ai/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

import requests
from mcpd_sdk import McpdClient, McpdError
from mcpd import McpdClient, McpdError
from pydantic_ai import Agent

if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions examples/pydantic-ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = {text = "Apache-2.0"}
requires-python = ">=3.11"
dependencies = [
"requests>=2.32.4",
"mcpd_sdk",
"mcpd",
"pydantic-ai>=0.3.7",
]

Expand All @@ -34,7 +34,7 @@ all = [
]

[tool.uv.sources]
mcpd_sdk = { path = "../..", editable = true }
mcpd = { path = "../..", editable = true }

[tool.ruff]
fix = true
Expand Down
Loading
Loading