[ENH] uvx installation of the MCP server#450
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.