opencode_context
Retrieve project, path, VCS, config, and agent details in one call, optionally for a chosen directory, so OpenCode MCP clients can load context without multiple requests.
Instructions
Get project context in one call: project, path, VCS, config, agents.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "opencode_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Project directory to target. Optional; defaults to the server default project. |