opencode-agora 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +309 -0
  3. package/dist/api.d.ts +69 -0
  4. package/dist/api.d.ts.map +1 -0
  5. package/dist/api.js +109 -0
  6. package/dist/api.js.map +1 -0
  7. package/dist/cli/app.d.ts +22 -0
  8. package/dist/cli/app.d.ts.map +1 -0
  9. package/dist/cli/app.js +1111 -0
  10. package/dist/cli/app.js.map +1 -0
  11. package/dist/cli.d.ts +3 -0
  12. package/dist/cli.d.ts.map +1 -0
  13. package/dist/cli.js +10 -0
  14. package/dist/cli.js.map +1 -0
  15. package/dist/config-files.d.ts +27 -0
  16. package/dist/config-files.d.ts.map +1 -0
  17. package/dist/config-files.js +78 -0
  18. package/dist/config-files.js.map +1 -0
  19. package/dist/config.d.ts +24 -0
  20. package/dist/config.d.ts.map +1 -0
  21. package/dist/config.js +73 -0
  22. package/dist/config.js.map +1 -0
  23. package/dist/data.d.ts +8 -0
  24. package/dist/data.d.ts.map +1 -0
  25. package/dist/data.js +1123 -0
  26. package/dist/data.js.map +1 -0
  27. package/dist/format.d.ts +40 -0
  28. package/dist/format.d.ts.map +1 -0
  29. package/dist/format.js +127 -0
  30. package/dist/format.js.map +1 -0
  31. package/dist/index.d.ts +4 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +430 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/init.d.ts +22 -0
  36. package/dist/init.d.ts.map +1 -0
  37. package/dist/init.js +199 -0
  38. package/dist/init.js.map +1 -0
  39. package/dist/live.d.ts +100 -0
  40. package/dist/live.d.ts.map +1 -0
  41. package/dist/live.js +443 -0
  42. package/dist/live.js.map +1 -0
  43. package/dist/logger.d.ts +20 -0
  44. package/dist/logger.d.ts.map +1 -0
  45. package/dist/logger.js +59 -0
  46. package/dist/logger.js.map +1 -0
  47. package/dist/marketplace.d.ts +51 -0
  48. package/dist/marketplace.d.ts.map +1 -0
  49. package/dist/marketplace.js +219 -0
  50. package/dist/marketplace.js.map +1 -0
  51. package/dist/state.d.ts +46 -0
  52. package/dist/state.d.ts.map +1 -0
  53. package/dist/state.js +169 -0
  54. package/dist/state.js.map +1 -0
  55. package/dist/types.d.ts +70 -0
  56. package/dist/types.d.ts.map +1 -0
  57. package/dist/types.js +2 -0
  58. package/dist/types.js.map +1 -0
  59. package/package.json +57 -0
package/dist/data.js ADDED
@@ -0,0 +1,1123 @@
1
+ export const dataRefreshedAt = '2026-05-14';
2
+ export const samplePackages = [
3
+ // ── Filesystem & Core I/O ──
4
+ {
5
+ id: 'mcp-filesystem',
6
+ name: '@modelcontextprotocol/server-filesystem',
7
+ description: 'Secure file read/write, directory operations, search, and metadata access with configurable access control',
8
+ author: 'modelcontextprotocol',
9
+ version: '2026.1.14',
10
+ category: 'mcp',
11
+ tags: ['filesystem', 'files', 'io', 'security', 'official'],
12
+ stars: 4850,
13
+ installs: 189000,
14
+ repository: 'https://github.com/modelcontextprotocol/servers',
15
+ npmPackage: '@modelcontextprotocol/server-filesystem',
16
+ createdAt: '2024-08-15'
17
+ },
18
+ {
19
+ id: 'mcp-github',
20
+ name: '@modelcontextprotocol/server-github',
21
+ description: 'Full GitHub API integration — issues, PRs, repos, search, file contents, and releases',
22
+ author: 'modelcontextprotocol',
23
+ version: '2025.4.8',
24
+ category: 'mcp',
25
+ tags: ['github', 'git', 'api', 'official', 'devtools'],
26
+ stars: 5200,
27
+ installs: 245000,
28
+ repository: 'https://github.com/modelcontextprotocol/servers',
29
+ npmPackage: '@modelcontextprotocol/server-github',
30
+ createdAt: '2024-09-01'
31
+ },
32
+ {
33
+ id: 'mcp-git',
34
+ name: '@modelcontextprotocol/server-git',
35
+ description: 'Git operations — commit, diff, log, branch management, status checks',
36
+ author: 'modelcontextprotocol',
37
+ version: '2026.1.14',
38
+ category: 'mcp',
39
+ tags: ['git', 'version-control', 'official', 'devtools'],
40
+ stars: 2100,
41
+ installs: 78000,
42
+ repository: 'https://github.com/modelcontextprotocol/servers',
43
+ npmPackage: '@modelcontextprotocol/server-git',
44
+ createdAt: '2024-10-01'
45
+ },
46
+ {
47
+ id: 'mcp-brave-search',
48
+ name: '@modelcontextprotocol/server-brave-search',
49
+ description: 'Web search and local business queries using the Brave Search API',
50
+ author: 'modelcontextprotocol',
51
+ version: '0.6.2',
52
+ category: 'mcp',
53
+ tags: ['search', 'web', 'brave', 'api', 'official'],
54
+ stars: 1800,
55
+ installs: 93000,
56
+ repository: 'https://github.com/modelcontextprotocol/servers',
57
+ npmPackage: '@modelcontextprotocol/server-brave-search',
58
+ createdAt: '2024-10-05'
59
+ },
60
+ // ── Database Servers ──
61
+ {
62
+ id: 'mcp-postgres',
63
+ name: '@modelcontextprotocol/server-postgres',
64
+ description: 'Read/write PostgreSQL databases — schema inspection, queries, and transaction support',
65
+ author: 'modelcontextprotocol',
66
+ version: '0.6.2',
67
+ category: 'mcp',
68
+ tags: ['postgresql', 'database', 'sql', 'official', 'data'],
69
+ stars: 3400,
70
+ installs: 112000,
71
+ repository: 'https://github.com/modelcontextprotocol/servers',
72
+ npmPackage: '@modelcontextprotocol/server-postgres',
73
+ createdAt: '2024-11-01'
74
+ },
75
+ {
76
+ id: 'mcp-sqlite',
77
+ name: '@modelcontextprotocol/server-sqlite',
78
+ description: 'SQLite database access — query, schema exploration, and data manipulation',
79
+ author: 'modelcontextprotocol',
80
+ version: '2026.1.14',
81
+ category: 'mcp',
82
+ tags: ['sqlite', 'database', 'sql', 'official', 'data'],
83
+ stars: 2200,
84
+ installs: 67000,
85
+ repository: 'https://github.com/modelcontextprotocol/servers',
86
+ npmPackage: '@modelcontextprotocol/server-sqlite',
87
+ createdAt: '2024-11-15'
88
+ },
89
+ {
90
+ id: 'mcp-redis',
91
+ name: '@modelcontextprotocol/server-redis',
92
+ description: 'Redis key-value store operations — get/set, list management, and cache control',
93
+ author: 'modelcontextprotocol',
94
+ version: '2025.4.25',
95
+ category: 'mcp',
96
+ tags: ['redis', 'cache', 'database', 'official', 'data'],
97
+ stars: 1200,
98
+ installs: 34000,
99
+ repository: 'https://github.com/modelcontextprotocol/servers',
100
+ npmPackage: '@modelcontextprotocol/server-redis',
101
+ createdAt: '2024-12-01'
102
+ },
103
+ // ── AI & Memory ──
104
+ {
105
+ id: 'mcp-sequential-thinking',
106
+ name: '@modelcontextprotocol/server-sequential-thinking',
107
+ description: 'Structured multi-step reasoning with branching, revision, and chain-of-thought',
108
+ author: 'modelcontextprotocol',
109
+ version: '2025.12.18',
110
+ category: 'mcp',
111
+ tags: ['reasoning', 'thinking', 'ai', 'official'],
112
+ stars: 4100,
113
+ installs: 156000,
114
+ repository: 'https://github.com/modelcontextprotocol/servers',
115
+ npmPackage: '@modelcontextprotocol/server-sequential-thinking',
116
+ createdAt: '2024-10-20'
117
+ },
118
+ {
119
+ id: 'mcp-memory',
120
+ name: '@modelcontextprotocol/server-memory',
121
+ description: 'Persistent knowledge graph memory for cross-session context retention',
122
+ author: 'modelcontextprotocol',
123
+ version: '2026.1.26',
124
+ category: 'mcp',
125
+ tags: ['memory', 'knowledge-graph', 'persistence', 'official'],
126
+ stars: 3900,
127
+ installs: 134000,
128
+ repository: 'https://github.com/modelcontextprotocol/servers',
129
+ npmPackage: '@modelcontextprotocol/server-memory',
130
+ createdAt: '2024-10-15'
131
+ },
132
+ // ── Browser Automation ──
133
+ {
134
+ id: 'mcp-puppeteer',
135
+ name: '@modelcontextprotocol/server-puppeteer',
136
+ description: 'Headless Chrome browser automation — navigation, screenshots, PDF generation, and JavaScript evaluation',
137
+ author: 'modelcontextprotocol',
138
+ version: '2025.5.12',
139
+ category: 'mcp',
140
+ tags: ['browser', 'automation', 'puppeteer', 'official', 'web'],
141
+ stars: 3100,
142
+ installs: 89000,
143
+ repository: 'https://github.com/modelcontextprotocol/servers',
144
+ npmPackage: '@modelcontextprotocol/server-puppeteer',
145
+ createdAt: '2024-09-20'
146
+ },
147
+ {
148
+ id: 'mcp-playwright',
149
+ name: '@modelcontextprotocol/server-playwright',
150
+ description: 'Cross-browser automation with Playwright — multi-page, mobile emulation, and network interception',
151
+ author: 'modelcontextprotocol',
152
+ version: '2026.1.14',
153
+ category: 'mcp',
154
+ tags: ['browser', 'automation', 'playwright', 'official', 'testing'],
155
+ stars: 1900,
156
+ installs: 56000,
157
+ repository: 'https://github.com/modelcontextprotocol/servers',
158
+ npmPackage: '@modelcontextprotocol/server-playwright',
159
+ createdAt: '2024-11-10'
160
+ },
161
+ // ── Communication ──
162
+ {
163
+ id: 'mcp-slack',
164
+ name: '@modelcontextprotocol/server-slack',
165
+ description: 'Slack workspace integration — messaging, channel management, search, and user presence',
166
+ author: 'modelcontextprotocol',
167
+ version: '2025.4.25',
168
+ category: 'mcp',
169
+ tags: ['slack', 'communication', 'messaging', 'official'],
170
+ stars: 2600,
171
+ installs: 72000,
172
+ repository: 'https://github.com/modelcontextprotocol/servers',
173
+ npmPackage: '@modelcontextprotocol/server-slack',
174
+ createdAt: '2024-10-10'
175
+ },
176
+ // ── Monitoring & observability ──
177
+ {
178
+ id: 'mcp-sentry',
179
+ name: '@modelcontextprotocol/server-sentry',
180
+ description: 'Sentry error tracking and performance monitoring — issue management, events, and metrics',
181
+ author: 'modelcontextprotocol',
182
+ version: '2026.1.14',
183
+ category: 'mcp',
184
+ tags: ['sentry', 'monitoring', 'errors', 'observability', 'official'],
185
+ stars: 1100,
186
+ installs: 28000,
187
+ repository: 'https://github.com/modelcontextprotocol/servers',
188
+ npmPackage: '@modelcontextprotocol/server-sentry',
189
+ createdAt: '2024-12-10'
190
+ },
191
+ {
192
+ id: 'mcp-cloudflare',
193
+ name: '@modelcontextprotocol/server-cloudflare',
194
+ description: 'Cloudflare API — DNS, Workers, KV, R2, D1, and account management',
195
+ author: 'modelcontextprotocol',
196
+ version: '2026.1.14',
197
+ category: 'mcp',
198
+ tags: ['cloudflare', 'dns', 'workers', 'infrastructure', 'official'],
199
+ stars: 1400,
200
+ installs: 31000,
201
+ repository: 'https://github.com/modelcontextprotocol/servers',
202
+ npmPackage: '@modelcontextprotocol/server-cloudflare',
203
+ createdAt: '2025-01-05'
204
+ },
205
+ // ── Community servers ──
206
+ {
207
+ id: 'mcp-docker',
208
+ name: '@anthropic/server-docker',
209
+ description: 'Docker container lifecycle management — build, run, stop, logs, and compose operations',
210
+ author: 'anthropic',
211
+ version: '1.2.0',
212
+ category: 'mcp',
213
+ tags: ['docker', 'containers', 'infrastructure', 'devops'],
214
+ stars: 1800,
215
+ installs: 45000,
216
+ repository: 'https://github.com/anthropics/mcp-docker',
217
+ npmPackage: '@anthropic/server-docker',
218
+ createdAt: '2025-02-01'
219
+ },
220
+ {
221
+ id: 'mcp-tavily',
222
+ name: '@tavily/mcp-server',
223
+ description: 'AI-optimized web search with Tavily — real-time data for LLM contexts',
224
+ author: 'tavily',
225
+ version: '0.3.0',
226
+ category: 'mcp',
227
+ tags: ['search', 'web', 'ai', 'tavily'],
228
+ stars: 890,
229
+ installs: 23000,
230
+ repository: 'https://github.com/tavily-ai/mcp-server',
231
+ npmPackage: '@tavily/mcp-server',
232
+ createdAt: '2025-02-15'
233
+ },
234
+ {
235
+ id: 'mcp-firecrawl',
236
+ name: '@mendable/firecrawl-mcp',
237
+ description: 'Web scraping with JavaScript rendering, crawl support, and markdown output',
238
+ author: 'mendable',
239
+ version: '1.1.0',
240
+ category: 'mcp',
241
+ tags: ['scraping', 'web', 'crawl', 'markdown'],
242
+ stars: 1200,
243
+ installs: 34000,
244
+ repository: 'https://github.com/mendableai/firecrawl-mcp',
245
+ npmPackage: '@mendable/firecrawl-mcp',
246
+ createdAt: '2025-03-01'
247
+ },
248
+ {
249
+ id: 'mcp-kubernetes',
250
+ name: '@anthropic/server-kubernetes',
251
+ description: 'Kubernetes cluster management — pods, deployments, services, logs, and config',
252
+ author: 'anthropic',
253
+ version: '0.5.0',
254
+ category: 'mcp',
255
+ tags: ['kubernetes', 'k8s', 'containers', 'infrastructure', 'devops'],
256
+ stars: 980,
257
+ installs: 21000,
258
+ repository: 'https://github.com/anthropics/mcp-kubernetes',
259
+ npmPackage: '@anthropic/server-kubernetes',
260
+ createdAt: '2025-02-20'
261
+ },
262
+ {
263
+ id: 'mcp-jira',
264
+ name: '@atlassian/mcp-jira',
265
+ description: 'Jira issue tracking — create, update, search, and manage tickets and sprints',
266
+ author: 'atlassian',
267
+ version: '0.4.0',
268
+ category: 'mcp',
269
+ tags: ['jira', 'atlassian', 'project-management', 'issues'],
270
+ stars: 760,
271
+ installs: 18000,
272
+ repository: 'https://github.com/atlassian/mcp-jira',
273
+ npmPackage: '@atlassian/mcp-jira',
274
+ createdAt: '2025-03-10'
275
+ },
276
+ {
277
+ id: 'mcp-linear',
278
+ name: '@modelcontextprotocol/server-linear',
279
+ description: 'Linear issue tracking — create, update, search issues, and manage projects',
280
+ author: 'modelcontextprotocol',
281
+ version: '2026.1.14',
282
+ category: 'mcp',
283
+ tags: ['linear', 'project-management', 'issues', 'official'],
284
+ stars: 640,
285
+ installs: 12000,
286
+ repository: 'https://github.com/modelcontextprotocol/servers',
287
+ npmPackage: '@modelcontextprotocol/server-linear',
288
+ createdAt: '2025-01-15'
289
+ },
290
+ {
291
+ id: 'mcp-notion',
292
+ name: '@notionhq/mcp-server',
293
+ description: 'Notion workspace integration — pages, databases, search, and content management',
294
+ author: 'notion',
295
+ version: '0.3.0',
296
+ category: 'mcp',
297
+ tags: ['notion', 'documentation', 'knowledge-base'],
298
+ stars: 1500,
299
+ installs: 42000,
300
+ repository: 'https://github.com/notionhq/mcp-server',
301
+ npmPackage: '@notionhq/mcp-server',
302
+ createdAt: '2025-03-15'
303
+ },
304
+ {
305
+ id: 'mcp-figma',
306
+ name: '@figma/mcp-server',
307
+ description: 'Figma file access — read components, styles, and design tokens for design-to-code',
308
+ author: 'figma',
309
+ version: '0.2.0',
310
+ category: 'mcp',
311
+ tags: ['figma', 'design', 'design-tokens', 'frontend'],
312
+ stars: 1100,
313
+ installs: 29000,
314
+ repository: 'https://github.com/figma/mcp-server',
315
+ npmPackage: '@figma/mcp-server',
316
+ createdAt: '2025-04-01'
317
+ },
318
+ {
319
+ id: 'mcp-shadcn',
320
+ name: '@shadcn/mcp-server',
321
+ description: 'shadcn/ui component library — browse, install, and configure UI components',
322
+ author: 'shadcn',
323
+ version: '0.1.0',
324
+ category: 'mcp',
325
+ tags: ['shadcn', 'ui', 'components', 'react', 'frontend'],
326
+ stars: 2100,
327
+ installs: 56000,
328
+ repository: 'https://github.com/shadcn/mcp-server',
329
+ npmPackage: '@shadcn/mcp-server',
330
+ createdAt: '2025-04-10'
331
+ },
332
+ {
333
+ id: 'mcp-tailwind',
334
+ name: '@tailwindlabs/mcp-server',
335
+ description: 'Tailwind CSS — class suggestions, config validation, and design system queries',
336
+ author: 'tailwindlabs',
337
+ version: '0.1.0',
338
+ category: 'mcp',
339
+ tags: ['tailwind', 'css', 'design', 'frontend'],
340
+ stars: 1300,
341
+ installs: 31000,
342
+ repository: 'https://github.com/tailwindlabs/mcp-server',
343
+ npmPackage: '@tailwindlabs/mcp-server',
344
+ createdAt: '2025-04-15'
345
+ },
346
+ {
347
+ id: 'mcp-npm-info',
348
+ name: '@snyk-labs/mcp-server-npm',
349
+ description: 'npm package metadata lookup — versions, dependencies, health, and security info',
350
+ author: 'snyk-labs',
351
+ version: '1.0.0',
352
+ category: 'mcp',
353
+ tags: ['npm', 'packages', 'security', 'javascript'],
354
+ stars: 340,
355
+ installs: 8900,
356
+ repository: 'https://github.com/snyk-labs/mcp-server-npm',
357
+ npmPackage: '@snyk-labs/mcp-server-npm',
358
+ createdAt: '2025-03-20'
359
+ },
360
+ {
361
+ id: 'mcp-supabase',
362
+ name: '@supabase/mcp-server',
363
+ description: 'Supabase project management — database, auth, storage, and edge functions',
364
+ author: 'supabase',
365
+ version: '0.5.0',
366
+ category: 'mcp',
367
+ tags: ['supabase', 'database', 'backend', 'baas'],
368
+ stars: 780,
369
+ installs: 15000,
370
+ repository: 'https://github.com/supabase/mcp-server',
371
+ npmPackage: '@supabase/mcp-server',
372
+ createdAt: '2025-04-05'
373
+ },
374
+ {
375
+ id: 'mcp-stripe',
376
+ name: '@stripe/mcp-server',
377
+ description: 'Stripe payments — charges, customers, products, subscriptions, and webhooks',
378
+ author: 'stripe',
379
+ version: '0.3.0',
380
+ category: 'mcp',
381
+ tags: ['stripe', 'payments', 'billing', 'commerce'],
382
+ stars: 920,
383
+ installs: 22000,
384
+ repository: 'https://github.com/stripe/mcp-server',
385
+ npmPackage: '@stripe/mcp-server',
386
+ createdAt: '2025-04-20'
387
+ },
388
+ {
389
+ id: 'mcp-python-repl',
390
+ name: '@modelcontextprotocol/server-python-repl',
391
+ description: 'Execute Python code in a sandboxed REPL environment',
392
+ author: 'modelcontextprotocol',
393
+ version: '2026.1.14',
394
+ category: 'mcp',
395
+ tags: ['python', 'repl', 'execution', 'official'],
396
+ stars: 1500,
397
+ installs: 44000,
398
+ repository: 'https://github.com/modelcontextprotocol/servers',
399
+ npmPackage: '@modelcontextprotocol/server-python-repl',
400
+ createdAt: '2024-12-15'
401
+ },
402
+ {
403
+ id: 'mcp-openapi',
404
+ name: '@anthropic/server-openapi',
405
+ description: 'OpenAPI/Swagger — discover and call REST APIs from their OpenAPI specs',
406
+ author: 'anthropic',
407
+ version: '0.4.0',
408
+ category: 'mcp',
409
+ tags: ['openapi', 'rest', 'api', 'swagger', 'integration'],
410
+ stars: 670,
411
+ installs: 14000,
412
+ repository: 'https://github.com/anthropics/mcp-openapi',
413
+ npmPackage: '@anthropic/server-openapi',
414
+ createdAt: '2025-02-10'
415
+ },
416
+ {
417
+ id: 'mcp-obsidian',
418
+ name: '@obsidianmd/mcp-server',
419
+ description: 'Obsidian vault access — read, search, and create notes and links',
420
+ author: 'obsidian',
421
+ version: '0.2.0',
422
+ category: 'mcp',
423
+ tags: ['obsidian', 'notes', 'knowledge-base', 'markdown'],
424
+ stars: 1100,
425
+ installs: 27000,
426
+ repository: 'https://github.com/obsidianmd/mcp-server',
427
+ npmPackage: '@obsidianmd/mcp-server',
428
+ createdAt: '2025-03-25'
429
+ },
430
+ {
431
+ id: 'mcp-grafana',
432
+ name: '@grafana/mcp-server',
433
+ description: 'Grafana dashboards and alerts — query metrics, manage dashboards, investigate incidents',
434
+ author: 'grafana',
435
+ version: '0.3.0',
436
+ category: 'mcp',
437
+ tags: ['grafana', 'monitoring', 'metrics', 'observability'],
438
+ stars: 560,
439
+ installs: 11000,
440
+ repository: 'https://github.com/grafana/mcp-server',
441
+ npmPackage: '@grafana/mcp-server',
442
+ createdAt: '2025-04-25'
443
+ },
444
+ {
445
+ id: 'mcp-datadog',
446
+ name: '@datadog/mcp-server',
447
+ description: 'Datadog monitoring — metrics, logs, traces, dashboards, and incident management',
448
+ author: 'datadog',
449
+ version: '0.2.0',
450
+ category: 'mcp',
451
+ tags: ['datadog', 'monitoring', 'observability', 'logs'],
452
+ stars: 480,
453
+ installs: 9500,
454
+ repository: 'https://github.com/datadog/mcp-server',
455
+ npmPackage: '@datadog/mcp-server',
456
+ createdAt: '2025-05-01'
457
+ },
458
+ {
459
+ id: 'mcp-pagerduty',
460
+ name: '@pagerduty/mcp-server',
461
+ description: 'PagerDuty incident response — manage incidents, on-call schedules, and services',
462
+ author: 'pagerduty',
463
+ version: '0.1.0',
464
+ category: 'mcp',
465
+ tags: ['pagerduty', 'incident', 'oncall', 'devops'],
466
+ stars: 320,
467
+ installs: 7200,
468
+ repository: 'https://github.com/pagerduty/mcp-server',
469
+ npmPackage: '@pagerduty/mcp-server',
470
+ createdAt: '2025-05-10'
471
+ },
472
+ {
473
+ id: 'mcp-aws',
474
+ name: '@anthropic/server-aws',
475
+ description: 'AWS resource management — EC2, S3, Lambda, IAM, and CloudFormation',
476
+ author: 'anthropic',
477
+ version: '0.6.0',
478
+ category: 'mcp',
479
+ tags: ['aws', 'cloud', 'infrastructure', 'devops'],
480
+ stars: 1300,
481
+ installs: 35000,
482
+ repository: 'https://github.com/anthropics/mcp-aws',
483
+ npmPackage: '@anthropic/server-aws',
484
+ createdAt: '2025-03-01'
485
+ },
486
+ {
487
+ id: 'mcp-gcp',
488
+ name: '@anthropic/server-gcp',
489
+ description: 'Google Cloud Platform — GCS, Cloud Run, GKE, IAM, and Cloud SQL',
490
+ author: 'anthropic',
491
+ version: '0.3.0',
492
+ category: 'mcp',
493
+ tags: ['gcp', 'cloud', 'infrastructure', 'devops'],
494
+ stars: 540,
495
+ installs: 13000,
496
+ repository: 'https://github.com/anthropics/mcp-gcp',
497
+ npmPackage: '@anthropic/server-gcp',
498
+ createdAt: '2025-04-01'
499
+ },
500
+ {
501
+ id: 'mcp-elasticsearch',
502
+ name: '@elastic/mcp-server',
503
+ description: 'Elasticsearch — search, indexing, cluster health, and query management',
504
+ author: 'elastic',
505
+ version: '0.2.0',
506
+ category: 'mcp',
507
+ tags: ['elasticsearch', 'search', 'analytics', 'data'],
508
+ stars: 410,
509
+ installs: 8500,
510
+ repository: 'https://github.com/elastic/mcp-server',
511
+ npmPackage: '@elastic/mcp-server',
512
+ createdAt: '2025-05-05'
513
+ },
514
+ {
515
+ id: 'mcp-confluence',
516
+ name: '@atlassian/mcp-confluence',
517
+ description: 'Confluence — create, edit, and search pages, spaces, and attachments',
518
+ author: 'atlassian',
519
+ version: '0.2.0',
520
+ category: 'mcp',
521
+ tags: ['confluence', 'documentation', 'wiki', 'atlassian'],
522
+ stars: 380,
523
+ installs: 7800,
524
+ repository: 'https://github.com/atlassian/mcp-confluence',
525
+ npmPackage: '@atlassian/mcp-confluence',
526
+ createdAt: '2025-05-15'
527
+ },
528
+ {
529
+ id: 'mcp-sonar',
530
+ name: '@sonarsource/mcp-server',
531
+ description: 'SonarQube code quality — issues, metrics, and quality gates for code analysis',
532
+ author: 'sonarsource',
533
+ version: '0.1.0',
534
+ category: 'mcp',
535
+ tags: ['sonarqube', 'code-quality', 'linting', 'analysis'],
536
+ stars: 290,
537
+ installs: 5600,
538
+ repository: 'https://github.com/SonarSource/mcp-server',
539
+ npmPackage: '@sonarsource/mcp-server',
540
+ createdAt: '2025-05-20'
541
+ },
542
+ {
543
+ id: 'mcp-selenium',
544
+ name: '@anthropic/server-selenium',
545
+ description: 'Selenium WebDriver — browser automation with full webdriver protocol support',
546
+ author: 'anthropic',
547
+ version: '0.3.0',
548
+ category: 'mcp',
549
+ tags: ['selenium', 'browser', 'automation', 'testing'],
550
+ stars: 520,
551
+ installs: 11000,
552
+ repository: 'https://github.com/anthropics/mcp-selenium',
553
+ npmPackage: '@anthropic/server-selenium',
554
+ createdAt: '2025-03-05'
555
+ },
556
+ {
557
+ id: 'mcp-mongodb',
558
+ name: '@mongodb/mcp-server',
559
+ description: 'MongoDB — document queries, aggregation pipelines, indexing, and schema analysis',
560
+ author: 'mongodb',
561
+ version: '0.2.0',
562
+ category: 'mcp',
563
+ tags: ['mongodb', 'database', 'nosql', 'data'],
564
+ stars: 680,
565
+ installs: 16000,
566
+ repository: 'https://github.com/mongodb/mcp-server',
567
+ npmPackage: '@mongodb/mcp-server',
568
+ createdAt: '2025-04-15'
569
+ },
570
+ {
571
+ id: 'mcp-mysql',
572
+ name: '@modelcontextprotocol/server-mysql',
573
+ description: 'MySQL database — queries, schema exploration, and transaction management',
574
+ author: 'modelcontextprotocol',
575
+ version: '2026.1.14',
576
+ category: 'mcp',
577
+ tags: ['mysql', 'database', 'sql', 'official', 'data'],
578
+ stars: 980,
579
+ installs: 25000,
580
+ repository: 'https://github.com/modelcontextprotocol/servers',
581
+ npmPackage: '@modelcontextprotocol/server-mysql',
582
+ createdAt: '2025-01-20'
583
+ },
584
+ {
585
+ id: 'mcp-s3',
586
+ name: '@anthropic/server-s3',
587
+ description: 'Amazon S3 — bucket management, object operations, presigned URLs, and multipart uploads',
588
+ author: 'anthropic',
589
+ version: '0.4.0',
590
+ category: 'mcp',
591
+ tags: ['s3', 'aws', 'storage', 'cloud'],
592
+ stars: 760,
593
+ installs: 19000,
594
+ repository: 'https://github.com/anthropics/mcp-s3',
595
+ npmPackage: '@anthropic/server-s3',
596
+ createdAt: '2025-03-15'
597
+ },
598
+ {
599
+ id: 'mcp-ollama',
600
+ name: '@anthropic/server-ollama',
601
+ description: 'Ollama local LLM inference — run and manage local models directly from OpenCode',
602
+ author: 'anthropic',
603
+ version: '0.3.0',
604
+ category: 'mcp',
605
+ tags: ['ollama', 'llm', 'local', 'ai', 'inference'],
606
+ stars: 2600,
607
+ installs: 68000,
608
+ repository: 'https://github.com/anthropics/mcp-ollama',
609
+ npmPackage: '@anthropic/server-ollama',
610
+ createdAt: '2025-03-20'
611
+ },
612
+ // ── Prompts ──
613
+ {
614
+ id: 'prompt-code-review',
615
+ name: 'Comprehensive Code Review',
616
+ description: 'Multi-faceted code review covering security, performance, correctness, and best practices',
617
+ author: 'agora-community',
618
+ version: '2.0.0',
619
+ category: 'prompt',
620
+ tags: ['review', 'security', 'best-practices', 'quality'],
621
+ stars: 1200,
622
+ installs: 8900,
623
+ createdAt: '2025-01-10'
624
+ },
625
+ {
626
+ id: 'prompt-api-design',
627
+ name: 'API Design Review',
628
+ description: 'Review REST/GraphQL API designs for consistency, scalability, and developer experience',
629
+ author: 'agora-community',
630
+ version: '1.1.0',
631
+ category: 'prompt',
632
+ tags: ['api', 'design', 'rest', 'graphql'],
633
+ stars: 560,
634
+ installs: 3400,
635
+ createdAt: '2025-02-20'
636
+ },
637
+ {
638
+ id: 'prompt-refactor-plan',
639
+ name: 'Refactoring Strategy',
640
+ description: 'Plan and execute safe, incremental codebase refactoring with test coverage',
641
+ author: 'agora-community',
642
+ version: '1.0.0',
643
+ category: 'prompt',
644
+ tags: ['refactor', 'planning', 'safety', 'testing'],
645
+ stars: 780,
646
+ installs: 4500,
647
+ createdAt: '2025-03-01'
648
+ },
649
+ ];
650
+ export const sampleWorkflows = [
651
+ {
652
+ id: 'wf-tdd-cycle',
653
+ name: 'TDD Development Cycle',
654
+ description: 'Test-driven development — write failing test, implement, refactor. Repeat.',
655
+ author: 'testdriven',
656
+ prompt: `You are following TDD methodology. For each feature request:
657
+ 1. Write a failing test first
658
+ 2. Write minimal code to pass the test
659
+ 3. Refactor while keeping tests green
660
+
661
+ Always start by understanding the requirements and writing tests that describe expected behavior.`,
662
+ model: 'claude-sonnet-4-5',
663
+ tags: ['tdd', 'testing', 'workflow', 'methodology'],
664
+ stars: 456,
665
+ forks: 89,
666
+ createdAt: '2025-01-20'
667
+ },
668
+ {
669
+ id: 'wf-security-audit',
670
+ name: 'Security Audit Workflow',
671
+ description: 'Thorough security analysis covering OWASP Top 10, secrets, and dependency vulnerabilities',
672
+ author: 'security-first',
673
+ prompt: `Perform a thorough security audit of the codebase:
674
+ 1. Check for OWASP Top 10 vulnerabilities
675
+ 2. Look for hardcoded secrets and credentials
676
+ 3. Validate input sanitization
677
+ 4. Check dependency vulnerabilities
678
+ 5. Review authentication and authorization
679
+ 6. Verify CSRF and XSS protections
680
+
681
+ Report findings with severity levels (Critical/High/Medium/Low) and suggested fixes.`,
682
+ tags: ['security', 'audit', 'owasp', 'vulnerability'],
683
+ stars: 234,
684
+ forks: 45,
685
+ createdAt: '2025-02-01'
686
+ },
687
+ {
688
+ id: 'wf-api-design',
689
+ name: 'API Design Review',
690
+ description: 'Review API endpoints for RESTful best practices, consistency, and developer experience',
691
+ author: 'api-craft',
692
+ prompt: `Review the API design against these criteria:
693
+ 1. RESTful resource naming consistency
694
+ 2. HTTP method usage correctness
695
+ 3. Request/response structure
696
+ 4. Error handling and status codes
697
+ 5. Authentication and authorization
698
+ 6. Pagination, filtering, and sorting patterns
699
+ 7. Rate limiting documentation
700
+ 8. Versioning strategy
701
+
702
+ Provide specific recommendations for each issue found.`,
703
+ tags: ['api', 'design', 'review', 'rest'],
704
+ stars: 189,
705
+ forks: 34,
706
+ createdAt: '2025-02-15'
707
+ },
708
+ {
709
+ id: 'wf-refactor-large',
710
+ name: 'Large Scale Refactor',
711
+ description: 'Safe, incremental refactoring strategy for large codebases with minimal risk',
712
+ author: 'agora-community',
713
+ prompt: `Plan and execute a large-scale refactor:
714
+ 1. Map the current architecture and dependencies
715
+ 2. Identify refactoring targets by risk level
716
+ 3. Break the refactor into small, reversible steps
717
+ 4. Ensure test coverage before each change
718
+ 5. Execute changes incrementally
719
+ 6. Verify no regressions after each step
720
+ 7. Update documentation
721
+
722
+ Always prioritize keeping the system working over speed of refactoring.`,
723
+ tags: ['refactor', 'large-scale', 'safety', 'incremental'],
724
+ stars: 312,
725
+ forks: 67,
726
+ createdAt: '2025-02-15'
727
+ },
728
+ {
729
+ id: 'wf-db-migration',
730
+ name: 'Database Migration Review',
731
+ description: 'Review SQL migrations for safety, performance, and rollback readiness',
732
+ author: 'dba-master',
733
+ prompt: `Review the database migration:
734
+ 1. Check for backward compatibility
735
+ 2. Verify index usage and query performance
736
+ 3. Ensure rollback script exists and works
737
+ 4. Check data type correctness
738
+ 5. Validate constraint and foreign key handling
739
+ 6. Review for locking concerns
740
+ 7. Confirm zero-downtime deploy compatibility
741
+
742
+ Flag any migration that could cause data loss or extended downtime.`,
743
+ tags: ['database', 'migration', 'sql', 'safety'],
744
+ stars: 156,
745
+ forks: 28,
746
+ createdAt: '2025-03-01'
747
+ },
748
+ {
749
+ id: 'wf-code-review-arch',
750
+ name: 'Architecture Review',
751
+ description: 'High-level architecture review focusing on modularity, coupling, and scalability',
752
+ author: 'arch-wizard',
753
+ prompt: `Review the architecture:
754
+ 1. Evaluate module boundaries and separation of concerns
755
+ 2. Check for circular dependencies
756
+ 3. Review error propagation patterns
757
+ 4. Assess scalability of the design
758
+ 5. Verify logging and observability
759
+ 6. Check configuration management
760
+ 7. Review testing strategy completeness
761
+
762
+ Provide a score (1-10) for each dimension with actionable improvements.`,
763
+ tags: ['architecture', 'review', 'design', 'scalability'],
764
+ stars: 198,
765
+ forks: 42,
766
+ createdAt: '2025-03-10'
767
+ },
768
+ {
769
+ id: 'wf-dependency-audit',
770
+ name: 'Dependency Audit',
771
+ description: 'Audit project dependencies for security, licensing, and maintenance status',
772
+ author: 'safety-first',
773
+ prompt: `Audit all project dependencies:
774
+ 1. Check for known CVEs in each dependency
775
+ 2. Review license compatibility with your project
776
+ 3. Evaluate maintenance activity (last commit, release cadence)
777
+ 4. Identify unused or duplicate dependencies
778
+ 5. Check for deprecated packages
779
+ 6. Verify lockfile integrity
780
+ 7. Suggest alternatives for problematic dependencies
781
+
782
+ Priority order: security issues first, licensing second, maintenance third.`,
783
+ tags: ['dependencies', 'security', 'audit', 'npm'],
784
+ stars: 134,
785
+ forks: 23,
786
+ createdAt: '2025-03-20'
787
+ },
788
+ {
789
+ id: 'wf-performance-audit',
790
+ name: 'Performance Audit',
791
+ description: 'Identify and fix performance bottlenecks in code and database queries',
792
+ author: 'perf-nerd',
793
+ prompt: `Conduct a performance audit:
794
+ 1. Identify N+1 query patterns
795
+ 2. Review algorithm complexity (Big O)
796
+ 3. Check for memory leaks
797
+ 4. Review caching strategy
798
+ 5. Analyze bundle size and tree-shaking
799
+ 6. Check lazy-loading opportunities
800
+ 7. Review database query performance with EXPLAIN ANALYZE
801
+
802
+ Quantify improvements where possible (e.g., "reduces page load from 3s to 200ms").`,
803
+ tags: ['performance', 'optimization', 'audit', 'profiling'],
804
+ stars: 167,
805
+ forks: 31,
806
+ createdAt: '2025-04-01'
807
+ },
808
+ {
809
+ id: 'wf-ci-cd-review',
810
+ name: 'CI/CD Pipeline Review',
811
+ description: 'Review CI/CD configuration for speed, reliability, and security best practices',
812
+ author: 'devops-pro',
813
+ prompt: `Review the CI/CD pipeline:
814
+ 1. Check build caching effectiveness
815
+ 2. Verify test parallelization
816
+ 3. Review deployment stages and gates
817
+ 4. Check secret management
818
+ 5. Verify rollback procedures
819
+ 6. Review notification and alerting
820
+ 7. Check pipeline security (supply chain)
821
+
822
+ Suggest specific config changes to reduce pipeline time and improve reliability.`,
823
+ tags: ['ci-cd', 'devops', 'pipeline', 'automation'],
824
+ stars: 112,
825
+ forks: 19,
826
+ createdAt: '2025-04-10'
827
+ },
828
+ {
829
+ id: 'wf-new-project',
830
+ name: 'New Project Scaffold',
831
+ description: 'Scaffold a new project with best-practice structure, tooling, and configuration',
832
+ author: 'agora-community',
833
+ prompt: `Scaffold a new project:
834
+ 1. Set up the project structure following community best practices
835
+ 2. Configure TypeScript/linting/formatting
836
+ 3. Set up testing framework
837
+ 4. Configure CI/CD
838
+ 5. Add editor config and git hooks
839
+ 6. Create README with badges
840
+ 7. Set up dependency management
841
+ 8. Add Docker support if applicable
842
+
843
+ Ask about the project type first, then generate a complete scaffold.`,
844
+ tags: ['scaffold', 'new-project', 'setup', 'boilerplate'],
845
+ stars: 278,
846
+ forks: 52,
847
+ createdAt: '2025-04-15'
848
+ }
849
+ ];
850
+ export const sampleDiscussions = [
851
+ {
852
+ id: 'disc-mcp-vs-openai',
853
+ title: 'MCP Servers vs OpenAI Function Calling — When to use which?',
854
+ author: 'devarchitect',
855
+ content: 'I have been experimenting with both approaches. MCP seems more flexible for tool-based workflows since any client can use any server, but function calling is simpler to set up for single-provider apps. What is your experience and when do you reach for each?',
856
+ category: 'question',
857
+ replies: 23,
858
+ stars: 45,
859
+ createdAt: '2025-03-01'
860
+ },
861
+ {
862
+ id: 'disc-best-coder-model',
863
+ title: 'Best model for coding in 2026?',
864
+ author: 'local-llm-fan',
865
+ content: 'With Claude Opus 4.5, Gemini 2.5 Pro, GPT-5, DeepSeek V4, and Qwen4 all available — what are you using for daily development? Any standout for agentic coding workflows?',
866
+ category: 'discussion',
867
+ replies: 67,
868
+ stars: 89,
869
+ createdAt: '2025-03-10'
870
+ },
871
+ {
872
+ id: 'disc-agora-init',
873
+ title: 'Showcase: Zero-to-productive OpenCode setup in one command',
874
+ author: 'agora-core',
875
+ content: 'Just built an init flow that scans your project and generates the perfect opencode.json automatically. Node project? Gets the npm MCP servers. Python? Gets the right tools. Try `agora init` in your project!',
876
+ category: 'showcase',
877
+ replies: 12,
878
+ stars: 34,
879
+ createdAt: '2025-04-01'
880
+ },
881
+ {
882
+ id: 'disc-mcp-security',
883
+ title: 'Security considerations for MCP servers in production',
884
+ author: 'sec-ops',
885
+ content: 'What are people doing to secure MCP servers in production? I am particularly concerned about filesystem access scope, credential management, and rate limiting. Curious to hear what patterns the community has settled on.',
886
+ category: 'question',
887
+ replies: 31,
888
+ stars: 56,
889
+ createdAt: '2025-03-15'
890
+ },
891
+ {
892
+ id: 'disc-workflow-sharing',
893
+ title: 'Idea: Community workflow registry with versioning',
894
+ author: 'wf-creator',
895
+ content: 'What if we could version-control and share workflows like npm packages? Publish a workflow, others can install it with `agora use`, fork it, improve it, and contribute back. Think npm for agent workflows.',
896
+ category: 'idea',
897
+ replies: 18,
898
+ stars: 42,
899
+ createdAt: '2025-04-05'
900
+ },
901
+ {
902
+ id: 'disc-local-vs-remote',
903
+ title: 'Local models catching up — is 2026 the year of local coding?',
904
+ author: 'offline-first',
905
+ content: 'With Qwen4-72B and DeepSeek V4 running on consumer hardware, are we finally at the point where local models can replace cloud API for everyday coding? What is your local setup looking like?',
906
+ category: 'discussion',
907
+ replies: 45,
908
+ stars: 78,
909
+ createdAt: '2025-04-10'
910
+ },
911
+ {
912
+ id: 'disc-mcp-server-list',
913
+ title: 'What is your must-have MCP server stack?',
914
+ author: 'stack-builder',
915
+ content: 'Mine: filesystem (obvious), GitHub (dev workflow), sequential-thinking (complex reasoning), memory (context retention), and postgres (data access). What are your non-negotiables?',
916
+ category: 'discussion',
917
+ replies: 38,
918
+ stars: 63,
919
+ createdAt: '2025-04-15'
920
+ }
921
+ ];
922
+ export const sampleTutorials = [
923
+ {
924
+ id: 'tut-mcp-basics',
925
+ title: 'MCP Servers 101',
926
+ description: 'Learn the fundamentals of Model Context Protocol and how to use it with OpenCode',
927
+ level: 'beginner',
928
+ duration: '15 min',
929
+ steps: [
930
+ {
931
+ title: 'What is MCP?',
932
+ content: 'The Model Context Protocol (MCP) is an open standard that lets AI models connect with external tools and data sources. Think of it as a USB-C port for AI — a universal way to plug any AI into any tool. MCP was created by Anthropic and is now governed by the Linux Foundation\'s Agentic AI Foundation.',
933
+ },
934
+ {
935
+ title: 'Installing Your First MCP Server',
936
+ content: 'Let\'s install the filesystem MCP server. OpenCode uses MCP servers to access your files, run commands, and interact with APIs.',
937
+ code: `npm install -g @modelcontextprotocol/server-filesystem`,
938
+ },
939
+ {
940
+ title: 'Configure in OpenCode',
941
+ content: 'Add the MCP server to your OpenCode configuration and restart opencode to pick it up:',
942
+ code: `{
943
+ "mcpServers": {
944
+ "filesystem": {
945
+ "command": "npx",
946
+ "args": [
947
+ "@modelcontextprotocol/server-filesystem",
948
+ "./"
949
+ ]
950
+ }
951
+ }
952
+ }`,
953
+ },
954
+ {
955
+ title: 'Test It Out',
956
+ content: 'Now in OpenCode, try asking: "List the files in the current directory" or "Read the package.json file". The AI will use the filesystem MCP server to access your files safely.',
957
+ }
958
+ ]
959
+ },
960
+ {
961
+ id: 'tut-agents-skills',
962
+ title: 'OpenCode Agents & Skills Deep Dive',
963
+ description: 'Master the three-tier extensibility system: Skills, Agents, and Plugins',
964
+ level: 'intermediate',
965
+ duration: '30 min',
966
+ steps: [
967
+ {
968
+ title: 'Skills — Lightweight Prompts',
969
+ content: 'Skills are markdown files with frontmatter that define agent behavior. They\'re the lightest form of customization. Create a file called `.opencode/skills/reviewer.md` and OpenCode will load it automatically.',
970
+ code: `---
971
+ name: code-reviewer
972
+ description: Reviews code for quality and security
973
+ ---
974
+
975
+ You are a senior code reviewer. Focus on:
976
+ - Security vulnerabilities
977
+ - Performance issues
978
+ - Code style and maintainability`,
979
+ },
980
+ {
981
+ title: 'Agents — Specialized Workers',
982
+ content: 'Agents are specialized workers with their own system prompt and tool permissions. You can define them in your opencode.json or using the `opencode agent create` command. Each agent can have different model, permissions, and behavior.',
983
+ },
984
+ {
985
+ title: 'Plugins — Full Integration',
986
+ content: 'Plugins are npm packages that provide full TypeScript integration with hooks, tools, and event handlers. Agora itself runs as a plugin. Plugins can add custom tools, respond to events, and integrate deeply with OpenCode.',
987
+ }
988
+ ]
989
+ },
990
+ {
991
+ id: 'tut-tdd-workflow',
992
+ title: 'TDD with OpenCode',
993
+ description: 'Use the TDD workflow to drive test-first development with AI assistance',
994
+ level: 'intermediate',
995
+ duration: '20 min',
996
+ steps: [
997
+ {
998
+ title: 'Install the TDD Workflow',
999
+ content: 'Agora comes with a TDD workflow. View it first:',
1000
+ code: `agora browse wf-tdd-cycle`,
1001
+ },
1002
+ {
1003
+ title: 'Apply the Workflow',
1004
+ content: 'Apply the workflow as an OpenCode skill to use it during development:',
1005
+ code: `agora use wf-tdd-cycle`,
1006
+ },
1007
+ {
1008
+ title: 'Start Coding',
1009
+ content: 'Now when you ask OpenCode to implement a feature, it will automatically follow TDD — write the test first, implement, then refactor. The structured thinking MCP server helps with the planning phase.',
1010
+ }
1011
+ ]
1012
+ },
1013
+ {
1014
+ id: 'tut-security-audit',
1015
+ title: 'Security Auditing with OpenCode',
1016
+ description: 'Run automated security audits using the security workflow and community tools',
1017
+ level: 'advanced',
1018
+ duration: '25 min',
1019
+ steps: [
1020
+ {
1021
+ title: 'Install Security Tools',
1022
+ content: 'First, install the security audit workflow and the necessary MCP servers:',
1023
+ code: `agora use wf-security-audit
1024
+ agora install mcp-github`,
1025
+ },
1026
+ {
1027
+ title: 'Run an Audit',
1028
+ content: 'In OpenCode, use the security workflow: "Run a security audit on this project". The agent will check for OWASP Top 10 vulnerabilities, hardcoded secrets, dependency vulnerabilities, and more.',
1029
+ },
1030
+ {
1031
+ title: 'Review Findings',
1032
+ content: 'The audit produces a prioritized report with severity levels and suggested fixes. Each finding includes a clear remediation step you can ask OpenCode to implement.',
1033
+ }
1034
+ ]
1035
+ },
1036
+ {
1037
+ id: 'tut-advanced-mcp',
1038
+ title: 'Building Custom MCP Servers',
1039
+ description: 'Create your own MCP servers using the TypeScript SDK',
1040
+ level: 'advanced',
1041
+ duration: '45 min',
1042
+ steps: [
1043
+ {
1044
+ title: 'Prerequisites',
1045
+ content: 'Make sure you have the MCP SDK installed and a basic understanding of TypeScript.',
1046
+ code: `npm install @modelcontextprotocol/sdk zod`,
1047
+ },
1048
+ {
1049
+ title: 'Create a Basic Server',
1050
+ content: 'An MCP server exposes tools, resources, and prompts. Here is a minimal server with one tool:',
1051
+ code: `import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
1052
+ import { z } from "zod";
1053
+
1054
+ const server = new McpServer({ name: "My Server", version: "1.0.0" });
1055
+
1056
+ server.tool("greet", { name: z.string() }, async ({ name }) => ({
1057
+ content: [{ type: "text", text: \`Hello, \${name}!\` }]
1058
+ }));
1059
+
1060
+ // Start with stdio transport
1061
+ const { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js");
1062
+ const transport = new StdioServerTransport();
1063
+ await server.connect(transport);`,
1064
+ },
1065
+ {
1066
+ title: 'Test Your Server',
1067
+ content: 'Run it and test with an MCP inspector or add it to OpenCode:',
1068
+ code: `# Run your server
1069
+ npx tsx src/my-server.ts
1070
+
1071
+ # Add to opencode.json
1072
+ {
1073
+ "mcpServers": {
1074
+ "my-server": {
1075
+ "command": "npx",
1076
+ "args": ["tsx", "src/my-server.ts"]
1077
+ }
1078
+ }
1079
+ }`,
1080
+ }
1081
+ ]
1082
+ },
1083
+ {
1084
+ id: 'tut-opencode-tips',
1085
+ title: 'OpenCode Power User Tips',
1086
+ description: 'Advanced tips and workflows for getting the most out of OpenCode',
1087
+ level: 'beginner',
1088
+ duration: '10 min',
1089
+ steps: [
1090
+ {
1091
+ title: 'Keyboard Shortcuts',
1092
+ content: 'Learn the essential keybindings: Tab switches between agents, Ctrl+C interrupts the current action, Ctrl+L clears the conversation, / lists all available commands.',
1093
+ },
1094
+ {
1095
+ title: 'Custom Agents',
1096
+ content: 'Create specialized agents for different tasks. For example, a "reviewer" agent with read-only permissions for code review, or a "deploy" agent with access to deployment tools.',
1097
+ code: `opencode agent create --name reviewer --mode primary --permissions read,glob,grep`,
1098
+ },
1099
+ {
1100
+ title: 'Session Management',
1101
+ content: 'Continue previous sessions with `opencode -c`, fork them with `opencode --fork`, or start a specific agent with `opencode --agent reviewer`. Sessions persist across restarts.',
1102
+ }
1103
+ ]
1104
+ }
1105
+ ];
1106
+ export const trendingTags = [
1107
+ 'mcp',
1108
+ 'workflow',
1109
+ 'security',
1110
+ 'testing',
1111
+ 'refactor',
1112
+ 'llm',
1113
+ 'local',
1114
+ 'productivity',
1115
+ 'database',
1116
+ 'devops',
1117
+ 'frontend',
1118
+ 'ai',
1119
+ 'docker',
1120
+ 'api',
1121
+ 'observability'
1122
+ ];
1123
+ //# sourceMappingURL=data.js.map