Skip to content

feat: convert opencode-ast to an MCP server - #1

Open
wj-e2b wants to merge 1 commit into
optix2000:masterfrom
wj-e2b:feat/mcp-server
Open

feat: convert opencode-ast to an MCP server#1
wj-e2b wants to merge 1 commit into
optix2000:masterfrom
wj-e2b:feat/mcp-server

Conversation

@wj-e2b

@wj-e2b wj-e2b commented Aug 5, 2026

Copy link
Copy Markdown

Summary

  • replace the OpenCode plugin entrypoint with a stdio MCP server exposing the existing ast operations
  • add workspace-root containment for absolute paths, traversal, and symlink escapes
  • package an executable Bun bundle and document generic MCP client configuration
  • enforce a 14-day minimum dependency age for Bun installs

Verification

  • bun test — 87 passed
  • bun x tsc --noEmit
  • bun run bundle
  • bundled stdio MCP listTools + callTool smoke test
  • clean npm pack --dry-run --json via prepack
  • independent pre-commit review passed with no security or logic findings

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