From e8888b077d0ef9ebe62023e4319ced6c0344a474 Mon Sep 17 00:00:00 2001 From: Ciaran Sweet Date: Tue, 10 Nov 2026 13:46:32 +0000 Subject: [PATCH] chore(deps): bump mcp-toolsets-runtime to 0.13.1 Also @developmentseed/mcp-view to 0.13.1. The chat-variables test now reads the variable names from config_from_environment: 0.12 added UiConfig fields (feedback, view_calls) that the server sets, not the environment. Co-Authored-By: Claude Opus 5.5 --- pyproject.toml | 2 +- tests/test_chat_variables.py | 15 +++++++++------ toolsets/stac-explorer/ui/package-lock.json | 8 ++++---- toolsets/stac-explorer/ui/package.json | 2 +- uv.lock | 10 +++++----- 5 files changed, 20 insertions(+), 17 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eccf47f..efde6c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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.12.0,>=0.11.0", + "mcp-toolsets-runtime[api]<0.14.0,>=0.13.1", "credential-demo", "hello", "stac-explorer", diff --git a/tests/test_chat_variables.py b/tests/test_chat_variables.py index 342b29a..44b9824 100644 --- a/tests/test_chat_variables.py +++ b/tests/test_chat_variables.py @@ -11,19 +11,22 @@ one test cover both targets in the base test job. """ +import inspect import re from pathlib import Path -from mcp_agent_api.ui import ENV_PREFIX, UiConfig +from mcp_agent_api.ui import ENV_PREFIX, config_from_environment ROOT = Path(__file__).resolve().parents[1] -#: Every variable the client reads, except `api`, which is not one: the server -#: writes it into the page from where it mounted the routes. +#: Every variable the runtime reads. Not every `UiConfig` field is one: the +#: server sets `api` from where it mounted the routes, and `feedback` and +#: `view_calls` from the routes it registered. EXPECTED = { - f"{ENV_PREFIX}{name.upper()}" - for name in UiConfig().__dataclass_fields__ - if name != "api" + f"{ENV_PREFIX}{name}" + for name in re.findall( + r'read\("([A-Z_]+)"', inspect.getsource(config_from_environment) + ) } #: Where each target says what the chat container is given. A target that has diff --git a/toolsets/stac-explorer/ui/package-lock.json b/toolsets/stac-explorer/ui/package-lock.json index 0f0ebf7..be6a4f9 100644 --- a/toolsets/stac-explorer/ui/package-lock.json +++ b/toolsets/stac-explorer/ui/package-lock.json @@ -8,7 +8,7 @@ "name": "stac-explorer-ui", "version": "0.1.0", "dependencies": { - "@developmentseed/mcp-view": "^0.11.0", + "@developmentseed/mcp-view": "^0.13.1", "leaflet": "^1.9.4", "react": "^18.3.1", "react-dom": "^18.3.1" @@ -307,9 +307,9 @@ } }, "node_modules/@developmentseed/mcp-view": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@developmentseed/mcp-view/-/mcp-view-0.11.0.tgz", - "integrity": "sha512-6H8e3U2CEG7EN5OjVnnqMP7oEN9ydLe089ZWlhdpWBrQVgSQ9Ysecm1sKcroYXLMufk79VT3fCqtjUaYQwK8rw==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/@developmentseed/mcp-view/-/mcp-view-0.13.1.tgz", + "integrity": "sha512-a1I6FtQTVcXfA7SrnnbwbW6PZmjD6jLeoo4XaOS5kpzMq9+YfwB9D6cI5WWYNqMyPv3oPC8oqxSNLzlR8HLiZQ==", "license": "MIT", "dependencies": { "@modelcontextprotocol/ext-apps": "^2.0.0" diff --git a/toolsets/stac-explorer/ui/package.json b/toolsets/stac-explorer/ui/package.json index 97b9da2..66c56f5 100644 --- a/toolsets/stac-explorer/ui/package.json +++ b/toolsets/stac-explorer/ui/package.json @@ -9,7 +9,7 @@ "dev": "VIEW=${VIEW:-collection-picker} vite" }, "dependencies": { - "@developmentseed/mcp-view": "^0.11.0", + "@developmentseed/mcp-view": "^0.13.1", "leaflet": "^1.9.4", "react": "^18.3.1", "react-dom": "^18.3.1" diff --git a/uv.lock b/uv.lock index 9bb0de0..9a993c8 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -revision = 3 +revision = 5 requires-python = ">=3.12, <3.14" resolution-markers = [ "python_full_version >= '3.13'", @@ -1079,7 +1079,7 @@ infra = [ requires-dist = [ { name = "credential-demo", editable = "toolsets/credential-demo" }, { name = "hello", editable = "toolsets/hello" }, - { name = "mcp-toolsets-runtime", extras = ["api"], specifier = ">=0.11.0,<0.12.0" }, + { name = "mcp-toolsets-runtime", extras = ["api"], specifier = ">=0.13.1,<0.14.0" }, { name = "stac-explorer", editable = "toolsets/stac-explorer" }, ] @@ -1102,7 +1102,7 @@ infra = [ [[package]] name = "mcp-toolsets-runtime" -version = "0.11.0" +version = "0.13.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "fastapi" }, @@ -1114,9 +1114,9 @@ dependencies = [ { name = "typer" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/7c/13/c93c76268ebc1745764d2ada4cc4bdb0cc0d9a369ec71458c1e3568eaac6/mcp_toolsets_runtime-0.11.0.tar.gz", hash = "sha256:e31d3deaf9b59a15d001d7e5ec34674b0cf7b14552c951f75cf44f8265940a22", size = 811554, upload-time = "2026-10-16T09:41:37.441Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a4/0e/36217f5c4c09021558dae8f8297be71cb519aafd117c824987f327618713/mcp_toolsets_runtime-0.13.1.tar.gz", hash = "sha256:3cf2d3c9c2e8facd7343ceb36204e5e37cc9a3cdf69962c11a2c80908857af72", size = 870293, upload-time = "2026-11-09T14:08:08.44Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/21/08/88de9c88a56f9b5a2ac07940b49765091cebfa550a3e8f60cdb45e8e60f0/mcp_toolsets_runtime-0.11.0-py3-none-any.whl", hash = "sha256:e384715469bf7735faa7668e491dc6b5383d85ccca1607ebb1f69e4b4c22e95a", size = 338430, upload-time = "2026-10-16T09:41:35.647Z" }, + { url = "https://files.pythonhosted.org/packages/22/ab/9c4a7b1a2816fc4a1dffddb79e6302abc94d9cdd8ff709b5266f1a731258/mcp_toolsets_runtime-0.13.1-py3-none-any.whl", hash = "sha256:fed0145afc9433dc4a2c24f6b27444436ef110e7fe602dcdb2d10da1999063f0", size = 361175, upload-time = "2026-11-09T14:08:06.371Z" }, ] [package.optional-dependencies]