opencode_project_init
Create or open a project directory on the MCP host to run an isolated OpenCode session. Provide the absolute path to initialize the workspace.
Instructions
Create or open a project directory on the MCP host for an isolated OpenCode session.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "opencode_project_init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to create/open |