From 9863895d932c08714dac9d101a73406fad2a86dc Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 18 Jul 2025 12:32:50 +0100 Subject: [PATCH] Use PyPi mcpd package --- README.md | 18 ++---------------- examples/anyagent/pyproject.toml | 5 +---- examples/manual/pyproject.toml | 5 +---- examples/pydantic-ai/pyproject.toml | 5 +---- examples/readme_maker/pyproject.toml | 5 +---- 5 files changed, 6 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 443f48b..faee727 100644 --- a/README.md +++ b/README.md @@ -14,26 +14,12 @@ This SDK provides high-level and dynamic access to those tools, making it easy t - Generate self-contained, deepcopy-safe tool functions for frameworks like [any-agent](https://github.com/mozilla-ai/any-agent) - Minimal dependencies (`requests` only) -## Installation +## Installation in your project Assuming you are using [uv](https://github.com/astral-sh/uv), include it in your `pyproject.toml`: -```toml -[tool.uv.sources] -mcpd = { path = "../mcpd", editable = true } - -[project] -dependencies = [ - "mcpd" -] -``` - -Then run: - ```bash -uv venv -source .venv/bin/activate -uv sync +uv add mcpd ``` ## Dev Setup diff --git a/examples/anyagent/pyproject.toml b/examples/anyagent/pyproject.toml index 3ceb270..8a12d0f 100644 --- a/examples/anyagent/pyproject.toml +++ b/examples/anyagent/pyproject.toml @@ -8,7 +8,7 @@ requires-python = ">=3.11" dependencies = [ "any-agent[all]>=0.24.0", "requests>=2.32.4", - "mcpd", + "mcpd>=0.0.1", ] [dependency-groups] @@ -33,9 +33,6 @@ all = [ { include-group = "tests" }, ] -[tool.uv.sources] -mcpd = { path = "../..", editable = true } - [tool.ruff] fix = true line-length=120 diff --git a/examples/manual/pyproject.toml b/examples/manual/pyproject.toml index f377096..d3bb1f3 100644 --- a/examples/manual/pyproject.toml +++ b/examples/manual/pyproject.toml @@ -7,7 +7,7 @@ license = {text = "Apache-2.0"} requires-python = ">=3.11" dependencies = [ "requests>=2.32.4", - "mcpd", + "mcpd>=0.0.1", ] [dependency-groups] @@ -32,9 +32,6 @@ all = [ { include-group = "tests" }, ] -[tool.uv.sources] -mcpd = { path = "../..", editable = true } - [tool.ruff] fix = true line-length=120 diff --git a/examples/pydantic-ai/pyproject.toml b/examples/pydantic-ai/pyproject.toml index 6bf8914..437e61b 100644 --- a/examples/pydantic-ai/pyproject.toml +++ b/examples/pydantic-ai/pyproject.toml @@ -7,7 +7,7 @@ license = {text = "Apache-2.0"} requires-python = ">=3.11" dependencies = [ "requests>=2.32.4", - "mcpd", + "mcpd>=0.0.1", "pydantic-ai>=0.3.7", ] @@ -33,9 +33,6 @@ all = [ { include-group = "tests" }, ] -[tool.uv.sources] -mcpd = { path = "../..", editable = true } - [tool.ruff] fix = true line-length=120 diff --git a/examples/readme_maker/pyproject.toml b/examples/readme_maker/pyproject.toml index f8d30b2..971ca17 100644 --- a/examples/readme_maker/pyproject.toml +++ b/examples/readme_maker/pyproject.toml @@ -7,7 +7,7 @@ license = {text = "Apache-2.0"} requires-python = ">=3.11" dependencies = [ "requests>=2.32.4", - "mcpd", + "mcpd>=0.0.1", "pydantic-ai>=0.3.7", ] @@ -33,9 +33,6 @@ all = [ { include-group = "tests" }, ] -[tool.uv.sources] -mcpd = { path = "../..", editable = true } - [tool.ruff] fix = true line-length=120