AlaeddineMessadi/opencode-mcp ? reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript MCP server called opencode mcp that connects any MCP client like Claude Desktop, Claude Code, Cursor, or Windsurf to OpenCode’s headless API.
I want it to work through npx, start up easily, and automatically launch or connect to an OpenCode server if one is not already running. The main goal is to let an AI assistant delegate real coding work, like creating files, editing code, running tests, checking progress, and reviewing changes, inside a chosen project folder.
Please include the useful workflow tools for asking OpenCode to do a task, waiting for it, checking status, looking at sessions, and getting a summary of changes. Also expose a few read only resources for things like health, config, providers, sessions, and project info. Make it support more than one project by letting each request point at a directory.
If anything in the latest OpenCode docs has changed, look it up online and follow the current setup.
Are you gonna build this?
make sure you review the code using coderabbit