v0.5 — MCP Client Config (Claude Desktop compatible)#40
Merged
Conversation
…ble) First of two v0.5 MCP-client PRs. Pure-Swift data layer; subprocess pool + chat-side tool-call routing land in part 2. - MCPClientConfig Codable struct mirroring Claude Desktop's ~/.claude_desktop_config.json mcpServers shape (also Cursor's identical schema). Users with existing MCP setups can copy the file across without reformatting. - MCPClientConfigStore actor reads / writes ~/.mac-mlx/mcp.json atomically, creating the parent directory on demand. Missing-file → empty config (no first-run error); malformed JSON → empty config (the bad bytes stay on disk for manual repair). - 7 new unit tests cover Claude Desktop schema decode (with + without env), JSON round-trip, empty config encode/decode, missing-file behaviour, save/load round-trip, parent-dir creation, and malformed-JSON fallthrough. .serialized for tmpdir safety. 133/133 + 7 new = 140 Core tests green (running locally). Subprocess pool (StdioTransport against spawned npx/uvx + connect / listAllTools / callTool) and HummingbirdServer tool-call routing follow in MCP track part 2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
48e44ad to
9f7caaa
Compare
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.
Summary
First of two v0.5 MCP-client PRs. Pure-Swift data layer for connecting macMLX to external MCP servers (mirror of v0.4.0's MCP server role, but reversed: macMLX is the host, chat models tool-call out to other people's MCP servers).
Plan: `docs/superpowers/plans/2026-05-10-v0.5.md` (Track B).
What lands
Test plan
What's deferred to MCP track part 2
🤖 Generated with Claude Code