MCP Prompts are guided workflow templates that your client can offer as selectable actions. They structure multi-step interactions with OpenCode.
Review code changes in an OpenCode session.
| Argument | Type | Required | Description |
|---|---|---|---|
sessionId |
string | yes | Session ID to review |
What it does:
- Fetches the diff with
opencode_review_changes - Analyzes changes for correctness, style, performance, and security
- Provides structured line-level feedback
- Suggests improvements
Start a guided debugging session.
| Argument | Type | Required | Description |
|---|---|---|---|
issue |
string | yes | Description of the bug |
context |
string | no | Additional context (file paths, error messages) |
What it does:
- Gets project context with
opencode_context - Searches for relevant files
- Reads and analyzes source code
- Identifies root cause and suggests a fix
Get oriented in a new project.
No arguments.
What it does:
- Gets project info, VCS status, and available agents
- Lists the project structure
- Reads key files (README, package.json, configs, entry points)
- Provides a summary: what the project does, tech stack, structure, how to build/run
Have OpenCode implement a feature or make changes.
| Argument | Type | Required | Description |
|---|---|---|---|
description |
string | yes | What to implement |
requirements |
string | no | Specific requirements or constraints |
What it does:
- Gets project context
- Sends the implementation request to OpenCode's build agent
- Reviews the changes made
- Reports what was implemented and any follow-up items
Get guidance on using opencode-mcp effectively.
No arguments.
What it does: Provides structured advice on:
- Initial setup and provider configuration
- Tool selection (which tools to use for which tasks)
- Session management and monitoring patterns
- Common pitfalls and how to avoid them
- Recommended workflows for common scenarios
Summarize what happened in an OpenCode session.
| Argument | Type | Required | Description |
|---|---|---|---|
sessionId |
string | yes | Session ID to summarize |
What it does:
- Gets session metadata
- Reads the full conversation history
- Reviews file changes
- Provides a summary: what was discussed, actions taken, files modified, remaining work