forked from xTamasu/awesome-opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc
More file actions
134 lines (134 loc) · 4.83 KB
/
opencode.jsonc
File metadata and controls
134 lines (134 loc) · 4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"$schema": "https://opencode.ai/config.json",
"keybinds": {
"session_child_cycle": "shift+ctrl+right",
"session_child_cycle_reverse": "shift+ctrl+left"
},
// Plugins Configuration
"plugin": [
"opencode-skills"
],
// MCP Servers Configuration
// Note: MCP servers add to your context, so enable only what you need
"mcp": {
// ===== DOCUMENTATION & SEARCH =====
// Context7 - Search through library/framework documentation (REMOTE - recommended)
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"enabled": true
// Optional: Add API key for higher rate-limits
// "headers": { "CONTEXT7_API_KEY": "{env:CONTEXT7_API_KEY}" }
},
// Grep by Vercel - Search code snippets on GitHub
"gh_grep": {
"type": "remote",
"url": "https://mcp.grep.app",
"enabled": true
},
// ===== FILE & SYSTEM OPERATIONS =====
// Filesystem - Secure file operations with configurable access controls
// Requires specifying allowed directories as arguments
"filesystem": {
"type": "local",
"command": [
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"/home/fulgidus/Documenti"
],
"enabled": true // Enable and configure paths as needed
},
// ===== VERSION CONTROL =====
// Git - Read, search, and manipulate Git repositories
// NOTE: This is a Python-based MCP server, use uvx instead of npx
"git": {
"type": "local",
"command": [
"uvx",
"mcp-server-git"
],
"enabled": true // OpenCode has built-in git support, enable if you need more
},
// ===== WEB & FETCH =====
// Fetch - Web content fetching and conversion for efficient LLM usage
// NOTE: This is a Python-based MCP server, use uvx instead of npx
"fetch": {
"type": "local",
"command": [
"uvx",
"mcp-server-fetch"
],
"enabled": true // OpenCode has built-in webfetch, enable if you need more
},
// ===== UTILITIES =====
// Time - Time and timezone conversion capabilities
// NOTE: This is a Python-based MCP server, use uvx instead of npx
"time": {
"type": "local",
"command": [
"uvx",
"mcp-server-time"
],
"enabled": true
},
// ===== DATABASES (enable as needed) =====
// PostgreSQL - Read-only database access with schema inspection
// "postgres": {
// "type": "local",
// "command": ["npx", "-y", "@modelcontextprotocol/server-postgres"],
// "environment": {
// "POSTGRES_CONNECTION_STRING": "{env:POSTGRES_CONNECTION_STRING}"
// },
// "enabled": true
// },
// SQLite - Database interaction and business intelligence
// "sqlite": {
// "type": "local",
// "command": ["npx", "-y", "@modelcontextprotocol/server-sqlite", "/path/to/database.db"],
// "enabled": true
// },
// ===== BROWSER AUTOMATION (enable as needed) =====
// Puppeteer - Browser automation and web scraping
// "puppeteer": {
// "type": "local",
// "command": ["npx", "-y", "@modelcontextprotocol/server-puppeteer"],
// "enabled": true
// },
// ===== AI-POWERED SEARCH & RESEARCH =====
// Perplexity - AI-powered web search with citations for market research and competitive intelligence
// Tools: perplexity_search, perplexity_ask, perplexity_research, perplexity_reason
"perplexity": {
"type": "local",
"command": [
"npx",
"-y",
"@perplexity-ai/mcp-server"
],
"environment": {
"PERPLEXITY_API_KEY": "{env:PERPLEXITY_API_KEY}"
},
"enabled": false // Disabled - replaced by web-search
},
// Web Search - Web search for market research and competitive intelligence
"web-search": {
"type": "local",
"command": [
"npx",
"-y",
"open-websearch@latest"
],
"environment": {
"MODE": "stdio",
"DEFAULT_SEARCH_ENGINE": "duckduckgo"
},
"enabled": true
}
},
// Instructions - Load agent definitions and behavioral patterns
"instructions": [
"AGENTS.md",
".opencode/AGENTS.md",
".opencode/agent/*.md"
]
}