feat(serve): started upstream initialization in background#5
Open
mittalsuraj18 wants to merge 4 commits into
Open
feat(serve): started upstream initialization in background#5mittalsuraj18 wants to merge 4 commits into
mittalsuraj18 wants to merge 4 commits into
Conversation
added 4 commits
April 26, 2026 13:54
- Created initializing, ready, and failed engine states for background catalog loading. - Returned initializing or failed errors from search and execute until the catalog is ready. - Guarded background loads and reloads with generation checks to prevent stale state updates. - Documented fast startup behavior in README.md and CLAUDE.md.
- Added a reusable skill that directs agents to discover with search and invoke tools through execute. - Documented client-specific installation paths and routing guidance in the README.
… as any server is ready Servers now connect concurrently (one tokio::spawn per server) instead of sequentially. search() and execute() return results immediately with whatever servers are connected so far, appending a status note about pending servers. The old EngineState enum (Initializing/Ready/Failed) is replaced with an always-ready ProxyState that grows incrementally as servers connect. Key changes: - ClientPool: add new(), add_server(), RwLock<HashMap> for interior mutability - Sandbox: catalog behind Arc<RwLock<Catalog>>, read-locked per call - ProxyEngine: per-server concurrent spawning, pending/failed tracking - search/execute: always succeed (no more 'still initializing' errors)
- Trim SKILL.md from 180 to ~30 lines: keep only essential rules, naming gotcha, and initialization retry note - Add frontmatter description triggers and compatibility field - Replace per-client install table in README with Agent Skills standard discovery paths
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.
Feat: Adds a feature that lets cmcp server start immediately while the mcp tools are loading in the background.