$ lexprog.com

// notes from an old coder -- php, databases, and the occasional rant

[November 29, 2026] OpenCode

Declare MCP in version control: on an untrusted clone

Onboarding should be clone-and-run, not a wiki of npx commands. Keep network and write on ask until you read skills and MCP.

────────────────────────────────────────────────────────

Declare MCP in version control: on an untrusted clone

Tip: The server list is part of the build

Onboarding should be clone-and-run, not a wiki of npx commands. Keep network and write on ask until you read skills and MCP.

{ "mcp": { "docs": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "./docs"] } } }

Gotcha: Filesystem MCP on $HOME (on an untrusted clone)

Scope the directory to the repo or a docs folder. A malicious skill is an install script; YOLO permissions are how it runs.

{ "args": ["-y", "server-filesystem", "/home"] }

Source: https://opencode.ai/docs/mcp

────────────────────────────────────────────────────────
<-- back to posts