Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Now just run `oc` to start OpenCode with Claude Max.
|---------------------|---------|-------------|
| `CLAUDE_PROXY_PORT` | 3456 | Proxy server port |
| `CLAUDE_PROXY_HOST` | 127.0.0.1 | Proxy server host |
| `CLAUDE_PROXY_WORKDIR` | (process cwd) | Base working directory used by MCP file/shell tools |

## How It Works

Expand Down
2 changes: 1 addition & 1 deletion src/mcpTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { glob as globLib } from "glob"

const execAsync = promisify(exec)

const getCwd = () => process.cwd()
const getCwd = () => process.env.CLAUDE_PROXY_WORKDIR || process.cwd()

export const opencodeMcpServer = createSdkMcpServer({
name: "opencode",
Expand Down