Skip to content

feat: add OpenCode config import support#25

Open
NicoAvanzDev wants to merge 4 commits intonicobailon:mainfrom
NicoAvanzDev:feat/opencode-import-kind
Open

feat: add OpenCode config import support#25
NicoAvanzDev wants to merge 4 commits intonicobailon:mainfrom
NicoAvanzDev:feat/opencode-import-kind

Conversation

@NicoAvanzDev
Copy link
Copy Markdown

Summary

  • add opencode to supported ImportKind values
  • import MCP servers from OpenCode global config (~/.config/opencode/opencode.json) and project config (./opencode.json)
  • map OpenCode local/remote MCP definitions into Pi MCP server entries
  • document OpenCode in the README and add coverage for global/project import behavior

Testing

  • npm test
  • cd examples/interactive-visualizer && npm run build

@NicoAvanzDev NicoAvanzDev force-pushed the feat/opencode-import-kind branch from 2ebbba7 to 3a7c34c Compare March 23, 2026 10:50
@NicoAvanzDev NicoAvanzDev force-pushed the feat/opencode-import-kind branch from 3a7c34c to 144770f Compare March 23, 2026 10:54
@NicoAvanzDev NicoAvanzDev changed the title Add OpenCode config import support feat: add OpenCode config import support Mar 23, 2026
OpenCode uses {env:VAR} syntax for environment variable references in
headers and OAuth fields. Added this pattern to both resolveEnv() and
resolveHeaders() alongside existing ${VAR} and $env:VAR support.
Move env interpolation helpers from server-manager.ts to utils.ts where
they naturally belong as shared utilities. Add env-interpolation test
suite covering ${VAR}, $env:VAR, and {env:VAR} (OpenCode) syntax.
Rename and move JSON boundary guard from config.ts to utils.ts where
the other env/header helpers live. Cleaner implementation that avoids
intermediate array allocation. Added tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant