feat(opencode): native opencode addon — /mcpctl switcher + live project switching + footer indicator #100
Open
michal
wants to merge 1 commits from
feat/opencode-mine into main
pull from: feat/opencode-mine
merge into: michal:main
michal:main
michal:fix/smoke-resultid-regex
michal:fix/drilldown-required-params
michal:deploy/bounded-failures
michal:fix/bounded-mcp-failures
michal:test/wire-safe-smoke
michal:fix/wire-safe-prose
michal:fix/wire-safe-tool-names
michal:fix/gitea-mcp-digest-pin
michal:feat/gitea-mcp-shell-base
michal:fix/injector-image-server-argv
michal:feat/injector-attach-mode
michal:fix/injector-entrypoint
michal:fix/server-repo-field-mapping
michal:feat/per-server-identity-tests
michal:fix/openbao-list-verb
michal:feat/openbao-resilience
michal:fix/stdio-restart-recovery
michal:hotfix/toolcall-timeout
michal:fix/deploy-double-smoke
michal:fix/paginator-drilldown-contract
michal:fix/chat-repl-thread-brick
michal:fix/chat-sse-streaming
michal:fix/pi-ext-module-resolution
michal:worktree-fix-healthcheck-unifi
michal:feat/agent-parity
michal:feat/opencode-extension
michal:opencodeeepseek
michal:feat/opencode-extension-mcpctl
michal:feat/opencode-extension-abhishek
michal:feat/pi-extension
michal:feat/prime-agent-switcher-ux
michal:fix/smoke-test-cleanup
michal:feat/mcpctl-switcher-status
michal:feat/config-prime-agent
michal:bench/config-prime-agent-pre-fix
michal:fix/mcp-bridge-head-of-line
michal:feat/llm-tier-resolution
1 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2022e584d1 |
feat(opencode): native opencode addon — /mcpctl switcher, live project switching, footer indicator
Some checks failed
CI/CD / lint (pull_request) Successful in 1m10s
CI/CD / test (pull_request) Successful in 1m22s
CI/CD / typecheck (pull_request) Successful in 3m8s
CI/CD / smoke (pull_request) Failing after 1m55s
CI/CD / build (pull_request) Successful in 2m8s
CI/CD / publish (pull_request) Has been skipped
Implement mcpctl as an opencode addon mirroring the pi/prime-agent integrations. Mounts the active project's MCP gateway through opencode's own live MCP API, so switching projects needs no restart and opencode.json is never touched (the bearer token stays in a 0600 state file). - server plugin (plugin/mcpctl.ts): headless mount under a stable 'mcpctl' name, re-asserted on first contact + before each turn; skips re-registering an unchanged mount so a gated project's begin_session state survives. - TUI plugin (mcpctl/mcpctl-tui.tsx): /mcpctl filterable picker (live switch), /mcpctl-status, /mcpctl-skills, and a mcpctl:<project> footer indicator right of the model name, directly above the token counter. - mcpctl config opencode: mint/reuse project mcptoken, install + register plugins, write 0600 state, write marker, sync skills. - skills sync --agent opencode: new shared-tree target (XDG-aware). - shared credential plumbing lifted from config prime-agent and parameterised by agent so both hosts share mint/reuse/retire logic. - embedded-source generator + freshness test; typechecked against the real @opencode-ai/plugin types (1.18.15); unit tests for settings, order, embed. typecheck (incl. opencode-ext) and the full cli suite (619 tests) pass. |