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
2 changes: 1 addition & 1 deletion 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.12.0,>=0.11.0",
"mcp-toolsets-runtime[api]<0.14.0,>=0.13.1",
"credential-demo",
"hello",
"stac-explorer",
Expand Down
15 changes: 9 additions & 6 deletions tests/test_chat_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.11.0",
"@developmentseed/mcp-view": "^0.13.1",
"leaflet": "^1.9.4",
"react": "^18.3.1",
"react-dom": "^18.3.1"
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

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

Loading