Personal OpenCode configuration repository with custom plugins, MCP servers, and agent configurations.
This repository contains my personal OpenCode setup, including:
- Custom agent configurations via oh-my-opencode
- MCP server integrations
- OpenCode plugins for enhanced functionality
- Custom commands and skills for specialized workflows
- OpenCode installed
- pnpm for package management
- GitHub CLI (
gh) for GitHub operations - Access to various service APIs (see MCP Configuration section)
-
Clone this repository to your OpenCode configuration directory:
git clone https://github.com/lavoiesl/opencode.git ~/.config/opencode cd ~/.config/opencode
-
Install dependencies:
pnpm install
-
Configure MCP servers (see MCP Configuration)
MCP (Model Context Protocol) servers provide external integrations. Secrets are managed securely using 1Password CLI.
- 1Password CLI (
op) installed and configured - 1Password account (vault name will be specified in each server's
op.env)
-
Configure 1Password account:
cp mcp/_config.sh.example mcp/_config.sh
Edit
mcp/_config.shwith your 1Password settings:ACCOUNT="your-account.1password.com" -
Create MCP server folders and configuration:
For each MCP server requiring secrets:
- Create folder:
mcp/<server>/ - Create
mcp/<server>/mcp.sh(server launch script) - Create
mcp/<server>/op.envwith fullop://vault/item/fieldreferences
Example
mcp/slack/op.env:SLACK_BOT_TOKEN=op://MyVault/slack/SLACK_BOT_TOKEN SLACK_APP_TOKEN=op://MyVault/slack/SLACK_APP_TOKEN
- Create folder:
-
How it works:
- Each MCP server has its own folder:
mcp/<server>/ - The
mcp.shscript launches the server - If secrets needed,
op.envcontains fullop://references - Scripts source
_common.shand useenv_run op runresolves references at runtime, injecting secrets as environment variables- Secrets never written to disk - only exist in process memory
- Each MCP server has its own folder:
Each MCP server has its own folder with these files:
With secrets:
mcp/<server>/
├── mcp.sh # Server launch script
└── op.env # Full op:// secret references
Without secrets:
mcp/<server>/
└── mcp.sh # Server launch script only
Example mcp.sh requiring secrets:
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/../_common.sh"
env_run "$SCRIPT_DIR/op.env" \
npx some-mcp-server@latestExample mcp.sh without secrets:
#!/bin/bash
set -e
exec npx @playwright/mcp@latestLocated in command/:
supermemory-init.md: Initialize comprehensive codebase knowledgeplannotator-review.md: Interactive code review workflow
Located in skills/:
mcp-server-setup/: Skill for configuring MCP servers with 1Password secret management
- Start OpenCode with your preferred interface
- The configuration will automatically load
- Use specialized agents via delegation:
# Visual/Frontend work Use category: "visual-engineering" with skill: "frontend-ui-ux" # Complex logic Use category: "ultrabrain" # Quick fixes Use category: "quick"
Once configured, MCP servers are available automatically through OpenCode's integrations.
This is a personal configuration repository. Feel free to fork and adapt to your needs.
MIT (or specify your preferred license)