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
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -787,16 +787,20 @@ curl https://<host>/ | jq
uv run mcp-cli list --url https://<host>/hello/mcp
```

The index's `connections` key is shaped for
`langchain_mcp_adapters.client.MultiServerMCPClient`, so an agent can consume
every deployed toolset in three lines:
The index's `connections` key maps each toolset to its URL, so an agent can
consume every deployed toolset in a few lines, with the runtime's `[agent]`
extra:

```python
import httpx
from langchain_mcp_adapters.client import MultiServerMCPClient
from mcp_agent.main import list_tools, with_credential_support

connections = httpx.get("https://<host>/").json()["connections"]
tools = await MultiServerMCPClient(connections).get_tools()
tools = [
tool
for client in with_credential_support(connections, None).values()
for tool in await list_tools(client)
]
```

The runtime's `mcp-agent` does exactly that as an interactive chat. The model is
Expand Down Expand Up @@ -1121,7 +1125,7 @@ decorating the index's `connections` map, `mcp-cli` with `-H`:
```python
connections = httpx.get("https://<host>/").json()["connections"]
connections["credential-demo"]["headers"] = {"X-Demo-Token": user_token}
tools = await MultiServerMCPClient(connections).get_tools()
clients = with_credential_support(connections, None)
```

`mcp-agent` goes further, in the shape a multi-user deployment needs: the
Expand Down
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies = [
# the web client it serves. [api] is here for the dev environment, which
# runs the chat locally; the toolset images sync with `--package` and so
# never see it. Upgrade by bumping this range and running `uv lock`.
"mcp-toolsets-runtime[api]<0.11.0,>=0.10.4",
"mcp-toolsets-runtime[api]<0.12.0,>=0.11.0",
"credential-demo",
"hello",
"stac-explorer",
Expand Down Expand Up @@ -101,7 +101,3 @@ plugins = ["pydantic.mypy"]
warn_unused_ignores = true
warn_redundant_casts = true
check_untyped_defs = true

[[tool.mypy.overrides]]
module = ["langchain_mcp_adapters.*"]
ignore_missing_imports = true
6 changes: 3 additions & 3 deletions tests/test_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
output schema, so every tool in every toolset must convert cleanly).

The sweep itself is a *consumer* concern: mcp-toolsets-runtime ships the gates
it applies (``to_fastmcp``, ``load_credential_headers``, and ``build_server``
it applies (``to_mcp_tool``, ``load_credential_headers``, and ``build_server``
behind them) but not the walk over this repo's toolsets/, which it has no way
to locate.
"""
Expand All @@ -21,7 +21,7 @@
import pytest
from langchain_core.tools import BaseTool

from mcp_runtime.fastmcp_output import to_fastmcp
from mcp_runtime.bridge import to_mcp_tool
from mcp_runtime.server import load_credential_headers

TOOLSETS_DIR = Path(__file__).resolve().parents[1] / "toolsets"
Expand All @@ -47,7 +47,7 @@ def test_toolset_contract(toolset):
f"{toolset}: tool {tool.name!r} needs a non-empty docstring"
)
# The same ToolResult gate build_server applies at startup.
converted = to_fastmcp(tool)
converted = to_mcp_tool(tool)
assert converted.output_schema is not None


Expand Down
8 changes: 4 additions & 4 deletions toolsets/stac-explorer/ui/package-lock.json

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

2 changes: 1 addition & 1 deletion toolsets/stac-explorer/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dev": "VIEW=${VIEW:-collection-picker} vite"
},
"dependencies": {
"@developmentseed/mcp-view": "^0.10.4",
"@developmentseed/mcp-view": "^0.11.0",
"leaflet": "^1.9.4",
"react": "^18.3.1",
"react-dom": "^18.3.1"
Expand Down
Loading
Loading