Files
my-opencode-config/opencode.json
T
2026-05-15 16:12:37 +08:00

210 lines
5.5 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"permission": "allow",
"mcp": {
"devcontainers": {
"type": "local",
"command": ["npx", "-y", "@crunchloop/mcp-devcontainers"],
"enabled": false
},
"tofu": {
"type": "local",
"command": ["npx", "@opentofu/opentofu-mcp-server"],
"enabled": false
},
"filesystem": {
"type": "local",
"command": ["npx", "@modelcontextprotocol/server-filesystem", "/app"],
"enabled": false
},
"forgejo": {
"type": "local",
"command": ["/usr/local/bin/forgejo-mcp", "-t", "stdio", "-url", "https://git.cleverthis.com", "-token", "{env:FORGEJO_PAT}"],
"environment": {
"FORGEJO_HOST": "https://git.cleverthis.com",
"FORGEJO_ACCESS_TOKEN": "{env:FORGEJO_PAT}"
},
"enabled": true
},
"test-runner": {
"type": "local",
"command": ["/usr/local/bin/mcp-test-runner"],
"enabled": false
},
"dev-kit": {
"type": "local",
"command": ["uvx", "dev-kit-mcp-server", "--root-dir=/app"],
"enabled": false
},
"venv-management": {
"type": "local",
"command": ["uvx", "--from=git+https://github.com/sparfenyuk/venv-mcp-server.git", "venv-mcp-server"],
"enabled": false
},
"uv": {
"type": "local",
"command": ["uvx", "uv-mcp"],
"enabled": false
},
"ruff": {
"type": "local",
"command": ["ruff-mcp-server"],
"enabled": false
},
"context7": {
"type": "local",
"command": ["npx", "-y", "@upstash/context7-mcp"],
"enabled": false
},
"memory": {
"type": "local",
"command": ["npx", "@modelcontextprotocol/server-memory"],
"enabled": false
},
"git": {
"type": "local",
"command": ["uvx", "mcp-server-git", "--repository", "/app"],
"enabled": false
},
"fetch": {
"type": "local",
"command": ["uvx", "mcp-server-fetch"],
"enabled": false
},
"sequential-thinking": {
"type": "local",
"command": ["npx", "@modelcontextprotocol/server-sequential-thinking"],
"enabled": true
},
"pyright-mcp": {
"type": "local",
"command": ["npx", "@treedy/pyright-mcp"],
"enabled": false
},
"docker": {
"type": "local",
"command": ["npx", "mcp-server-docker"],
"enabled": false
},
"sqlite": {
"type": "local",
"command": ["uvx", "mcp-server-sqlite"],
"enabled": false
},
"postgres": {
"type": "local",
"command": ["npx", "-y", "@modelcontextprotocol/server-postgres"],
"environment": {
"POSTGRES_CONNECTION_STRING": "{env:POSTGRES_CONNECTION_STRING}"
},
"enabled": false
},
"semgrep": {
"type": "local",
"command": ["semgrep", "mcp"],
"enabled": false
}
},
"provider": {
"llama-local": {
"name": "Llama.cpp (10.233.1.16)",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://10.233.1.16:8080/v1"
},
"models": {
"google-gemma-4-31b-q5km-text": {
"name": "Gemma 4 31B text",
"limit": {
// adjust this according to llama-server parameter
"context": 262144,
"output": 65536
},
"options": {
"temperature": 1.0
},
"modalities": {
"input": ["text"],
"output": ["text"]
}
},
"gemma-4-26b-a4b": {
"name": "Gemma 4 26B A4B",
"limit": {
// adjust this according to llama-server parameter
"context": 262144,
"output": 65536
},
"options": {
"temperature": 1.0
},
"modalities": {
"input": ["text", "image", "video"],
"output": ["text"]
}
}
}
},
"cleverthis-qwen3.6-35b-a3b": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://bvx6otgvwg2ulrqp.us-east-2.aws.endpoints.huggingface.cloud/v1",
"apiKey": "{env:HF_TOKEN}",
"headers": {
"X-HF-Bill-To": "CleverThis",
"Authorization": "Bearer {env:HF_TOKEN}",
}
},
"models": {
"Qwen/Qwen3.6-35B-A3B": {
"name": "Qwen 3.6 35b A3B",
"limit": {
"context": 262144,
"output": 65536
},
}
}
},
"cleverthis-qwen3-next-80b-a3b": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://uwrztmmzueq75pt6.us-east-1.aws.endpoints.huggingface.cloud/v1",
"apiKey": "{env:HF_TOKEN}",
"headers": {
"X-HF-Bill-To": "CleverThis",
"Authorization": "Bearer {env:HF_TOKEN}",
}
},
"models": {
"Qwen/Qwen3-Next-80B-A3B-Instruct": {
"name": "Qwen 3-Next 80b A3B Instruct",
"limit": {
"context": 262144,
"output": 65536
},
}
}
},
"cleverthis-minimax-m2.5": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://obdke8f40n0l00nj.us-east-1.aws.endpoints.huggingface.cloud/v1",
"apiKey": "{env:HF_TOKEN}",
"headers": {
"X-HF-Bill-To": "CleverThis",
"Authorization": "Bearer {env:HF_TOKEN}",
}
},
"models": {
"MiniMaxAI/MiniMax-M2.5": {
"name": "MiniMax M2.5",
"limit": {
"context": 196608,
"output": 65536
},
}
}
}
}
}