You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "me2seeks (via GitHub)" <gi...@apache.org> on 2026/08/26 03:51:34 UTC
[PR] feat(tui): add local MCP status and publication [maka]
me2seeks opened a new pull request, #3855:
URL: https://github.com/apache/maka/pull/3855
## Summary
Add the first local `/mcp` vertical slice for the TUI.
- Load the existing workspace `mcp.json` in the background and let `McpClientManager` retain ownership of server connections, discovery, calls, credentials, and stdio children.
- Publish discovered tools through the TUI's existing Local Runtime Host connection. Publications are serialized and fenced by both connection identity and tool revision, then recreated after that connection is replaced.
- Add a localized, read-only `/mcp` view for server state, configured transport, negotiated protocol, tool count, diagnostics, and Host publication state. The command is refused during a running turn.
- Unregister the active capability and close MCP resources before closing the TUI connection.
This does not add another Host connection, reconnect timer, MCP state authority, or provider abstraction. Remote Host publication and management actions remain the later rollout slices described in the issue.
Refs #3838
## Review focus
The lifecycle boundary is intentional: MCP config, credentials, transports, and child processes remain client-owned; Runtime Host only receives the existing Client Capability projection and remains the execution/provider-binding authority.
`RuntimeHostReconnectingConnection` exposes only its current availability and identity. The TUI controller observes that existing lifecycle; it does not connect or schedule retries itself.
## Verification
- `npm --workspace maka-agent test` — 472 passed
- `npm --workspace @maka/runtime-host test` — 1,227 passed, 9 skipped
- `npm --workspace @maka/mcp test` — 179 passed
- Real Local integration: saved config → stdio discovery → Host-visible publication → tool invocation → connection replacement → republish/invoke → unregister and child exit
- `npm --workspace @maka/mcp run typecheck`
- `npm --workspace @maka/runtime-host run typecheck`
- `npm --workspace maka-agent run typecheck`
- `npm run format:check`
- `npm run lint`
- Scoped Knip was run for MCP, Runtime Host, and CLI; it reports existing findings outside this diff and no finding on the new files or exports
Not run locally: an interactive Windows TUI session. The repository CI remains the cross-platform check.
## AI use
Select exactly one:
- [ ] No generative tool made a substantive contribution
- [x] Generative tooling made a substantive contribution
Tool(s) and scope: Codex traced the existing MCP and Runtime Host ownership boundaries, implemented the local TUI slice, reviewed its lifecycle and simplification risks, and ran the verification above.
## Checklist
- [x] Tests cover the change and fail without it
- [x] Lint, format, typecheck and the affected suites pass locally
Does this PR entail a change in behavior?
- [x] Yes — described under Summary above
- [ ] No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] feat(tui): add local MCP status and publication [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #3855:
URL: https://github.com/apache/maka/pull/3855
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org