Skip to content

Commit 0370883

Browse files
authored
Rename mcpd_sdk to mcpd (#17)
* Rename mcpd_sdk to mcpd * Remove __version__ * uv.lock files updated
1 parent 6094c6d commit 0370883

29 files changed

+595
-141
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ Assuming you are using [uv](https://github.com/astral-sh/uv), include it in your
2020

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

2525
[project]
2626
dependencies = [
27-
"mcpd_sdk"
27+
"mcpd"
2828
]
2929
```
3030

@@ -67,7 +67,7 @@ make test
6767
## Quick Start
6868

6969
```python
70-
from mcpd_sdk import McpdClient, McpdError
70+
from mcpd import McpdClient, McpdError
7171

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

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

9494
```python
9595
from any_agent import AnyAgent, AgentConfig
96-
from mcpd_sdk import McpdClient
96+
from mcpd import McpdClient
9797

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

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

127127
```python
128-
from mcpd_sdk import McpdClient
128+
from mcpd import McpdClient
129129

130130
# Initialize the client with your mcpd API endpoint.
131131
# api_key is optional and sends an 'MCPD-API-KEY' header.

examples/anyagent/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import requests
44
from any_agent import AgentConfig, AnyAgent
5-
from mcpd_sdk import McpdClient, McpdError
5+
from mcpd import McpdClient, McpdError
66

77
if __name__ == "__main__":
88
mcpd_endpoint = os.getenv("MCPD_ADDR", "http://localhost:8090")

examples/anyagent/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requires-python = ">=3.11"
88
dependencies = [
99
"any-agent[all]>=0.24.0",
1010
"requests>=2.32.4",
11-
"mcpd_sdk",
11+
"mcpd",
1212
]
1313

1414
[dependency-groups]
@@ -34,7 +34,7 @@ all = [
3434
]
3535

3636
[tool.uv.sources]
37-
mcpd_sdk = { path = "../..", editable = true }
37+
mcpd = { path = "../..", editable = true }
3838

3939
[tool.ruff]
4040
fix = true

examples/anyagent/uv.lock

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

examples/manual/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33

44
import requests
5-
from mcpd_sdk import McpdClient, McpdError
5+
from mcpd import McpdClient, McpdError
66

77
if __name__ == "__main__":
88
mcpd_endpoint = os.getenv("MCPD_ADDR", "http://localhost:8090")

examples/manual/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = {text = "Apache-2.0"}
77
requires-python = ">=3.11"
88
dependencies = [
99
"requests>=2.32.4",
10-
"mcpd_sdk",
10+
"mcpd",
1111
]
1212

1313
[dependency-groups]
@@ -33,7 +33,7 @@ all = [
3333
]
3434

3535
[tool.uv.sources]
36-
mcpd_sdk = { path = "../..", editable = true }
36+
mcpd = { path = "../..", editable = true }
3737

3838
[tool.ruff]
3939
fix = true

examples/manual/uv.lock

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

examples/pydantic-ai/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22

33
import requests
4-
from mcpd_sdk import McpdClient, McpdError
4+
from mcpd import McpdClient, McpdError
55
from pydantic_ai import Agent
66

77
if __name__ == "__main__":

examples/pydantic-ai/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = {text = "Apache-2.0"}
77
requires-python = ">=3.11"
88
dependencies = [
99
"requests>=2.32.4",
10-
"mcpd_sdk",
10+
"mcpd",
1111
"pydantic-ai>=0.3.7",
1212
]
1313

@@ -34,7 +34,7 @@ all = [
3434
]
3535

3636
[tool.uv.sources]
37-
mcpd_sdk = { path = "../..", editable = true }
37+
mcpd = { path = "../..", editable = true }
3838

3939
[tool.ruff]
4040
fix = true

0 commit comments

Comments
 (0)