Skip to content

[ENH] uvx installation of the MCP server#450

Merged
Shashankss1205 merged 2 commits into
sktime:mainfrom
pranavvp16:uvx-installations
May 7, 2026
Merged

[ENH] uvx installation of the MCP server#450
Shashankss1205 merged 2 commits into
sktime:mainfrom
pranavvp16:uvx-installations

Conversation

@pranavvp16
Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Fixes #186

Implements

Adding uvx support to sktime-mcp: docs updated, lazy loading added.

  • The lazy loading change (DEMO_DATASETS → _get_demo_datasets()) is directly required for uvx to feel fast.

  • When uvx runs sktime-mcp, it spins up a fresh Python process every time. The old eager evaluation meant_discover_demo_datasets() — which uses inspect.getmembers() on sktime.datasets — ran at import time, adding ~1 second to every cold start before the MCP server could even respond to its first message.

  • With lazy loading, the module imports in ~0.3s and dataset discovery only happens the first time a tool actually needs it (load_dataset, list_datasets, export_code). Most MCP sessions never call those tools at all, so the cost is often never paid.

@pranavvp16 pranavvp16 changed the title uvx installation of the MCP server [ENH] uvx installation of the MCP server May 6, 2026
@Shashankss1205 Shashankss1205 merged commit 5f72e84 into sktime:main May 7, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH] Support zero-install uvx execution for MCP client configuration

2 participants