Skip to content

Commit cdf009f

Browse files
committed
refactor: remove MCP server references from documentation and codebase
1 parent 3fdc91f commit cdf009f

File tree

4 files changed

+31
-122
lines changed

4 files changed

+31
-122
lines changed

AGENTS.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ This file provides guidance for AI coding agents working on this codebase.
55
## Project Overview
66

77
OpenCode Team Sync (oct) is a CLI tool for synchronizing OpenCode configurations
8-
(agents, skills, MCP servers) across teams via Git repositories. The project is
9-
currently in the planning/specification phase.
8+
(agents and skills) across teams via Git repositories.
109

11-
**Tech Stack**: TypeScript 5.x, Node.js 18+, Commander.js, Vitest, tsup
10+
**Tech Stack**: TypeScript 5.x, Node.js 18+, Commander.js, Vitest, tsup, minimatch
1211

1312
## Build & Development Commands
1413

@@ -31,9 +30,9 @@ npm run format # Formatting
3130
src/
3231
├── cli/commands/ # init, sync, status, list, validate, update, rollback, remove, clean, info
3332
├── core/ # discovery, git, sync, validator, namespace, lockfile, tags
34-
├── schemas/ # Zod schemas for agent, skill, mcp, manifest, lockfile
33+
├── schemas/ # Zod schemas for agent, skill, manifest, lockfile
3534
├── types/ # TypeScript interfaces
36-
└── utils/ # fs-utils, path-utils, hash-utils, error-utils, logger
35+
└── utils/ # fs-utils, path-utils, hash-utils, error-utils, logger, yaml-utils
3736
3837
tests/
3938
├── unit/ # Fast, isolated tests (~70%)
@@ -120,10 +119,11 @@ export type AgentFrontmatter = z.infer<typeof AgentFrontmatterSchema>;
120119
```typescript
121120
interface ConfigEntry {
122121
path: string; // Relative path in repo
123-
type: ConfigType; // 'agent' | 'skill' | 'mcp'
122+
type: ConfigType; // 'agent' | 'skill'
124123
name: string; // Derived from filename/directory
125124
hash: string; // SHA-256 of content
126125
tags: string[];
126+
description?: string; // Optional metadata
127127
}
128128

129129
interface SyncResult {
@@ -138,8 +138,14 @@ interface SyncResult {
138138
## Configuration Types
139139

140140
- **Agents**: Markdown files with YAML frontmatter (`.md`)
141+
- Patterns: `agents/**/*.md`, `*.agent.md`
142+
- Validated by: `AgentValidator`
141143
- **Skills**: SKILL.md files in skill directories
142-
- **MCP Servers**: JSON/YAML configuration files
144+
- Patterns: `skills/**/SKILL.md`, `skill/**/SKILL.md`
145+
- Validated by: `SkillValidator`
146+
147+
**Note**: MCP servers are NOT distributed as files. They are configured in
148+
`opencode.json` and should be documented in team repos but not synced.
143149

144150
## Namespace Isolation
145151

ARCHITECTURE.md

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ src/
361361
│ │ ├── validation-engine.ts
362362
│ │ ├── agent-validator.ts
363363
│ │ ├── skill-validator.ts
364-
│ │ ├── mcp-validator.ts
365364
│ │ └── manifest-validator.ts
366365
│ ├── namespace/
367366
│ │ ├── namespace-manager.ts
@@ -376,7 +375,6 @@ src/
376375
├── schemas/ # Zod schemas
377376
│ ├── agent.schema.ts
378377
│ ├── skill.schema.ts
379-
│ ├── mcp.schema.ts
380378
│ ├── manifest.schema.ts
381379
│ └── lockfile.schema.ts
382380
@@ -509,11 +507,6 @@ export class DiscoveryEngine {
509507
*/
510508
private async discoverSkills(path: string): Promise<ConfigEntry[]>
511509

512-
/**
513-
* Discover MCP servers (.json/.yaml in mcp/)
514-
*/
515-
private async discoverMCP(path: string): Promise<ConfigEntry[]>
516-
517510
/**
518511
* Parse and merge with manifest if present
519512
*/
@@ -860,15 +853,15 @@ function matchTags(configTags: string[], filterTags: string[]): boolean {
860853
*/
861854
export interface ConfigEntry {
862855
path: string // Relative path in repo
863-
type: ConfigType // agent | skill | mcp
856+
type: ConfigType // agent | skill
864857
name: string // Derived from filename/directory
865858
hash: string // SHA-256 hash of content
866859
tags: string[] // Associated tags
867860
content?: string // Actual file content
868861
syncedAt?: string // ISO timestamp
869862
}
870863

871-
export type ConfigType = 'agent' | 'skill' | 'mcp'
864+
export type ConfigType = 'agent' | 'skill'
872865

873866
/**
874867
* Lockfile structure
@@ -965,35 +958,6 @@ export const SkillFrontmatterSchema = z.object({
965958
compatibility: z.string().optional(),
966959
metadata: z.record(z.string()).optional()
967960
})
968-
969-
/**
970-
* MCP local server schema
971-
*/
972-
export const MCPLocalSchema = z.object({
973-
type: z.literal('local'),
974-
command: z.array(z.string()),
975-
environment: z.record(z.string()).optional(),
976-
enabled: z.boolean().optional(),
977-
timeout: z.number().optional()
978-
})
979-
980-
/**
981-
* MCP remote server schema
982-
*/
983-
export const MCPRemoteSchema = z.object({
984-
type: z.literal('remote'),
985-
url: z.string().url(),
986-
enabled: z.boolean().optional(),
987-
headers: z.record(z.string()).optional(),
988-
oauth: z.union([z.boolean(), z.object({
989-
clientId: z.string().optional(),
990-
clientSecret: z.string().optional(),
991-
scope: z.string().optional()
992-
})]).optional(),
993-
timeout: z.number().optional()
994-
})
995-
996-
export const MCPSchema = z.union([MCPLocalSchema, MCPRemoteSchema])
997961
```
998962

999963
---
@@ -1183,8 +1147,7 @@ describe('Init and Sync Integration', () => {
11831147
beforeEach(async () => {
11841148
testRepo = await createTestRepository({
11851149
agents: ['frontend-dev.md', 'backend-api.md'],
1186-
skills: ['git-release/SKILL.md'],
1187-
mcp: ['jira.json']
1150+
skills: ['git-release/SKILL.md']
11881151
})
11891152
tempDir = await createTempDir()
11901153
})

ROADMAP.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@
253253
- [ ] Define Zod schemas (3h)
254254
- Agent schema (frontmatter validation)
255255
- Skill schema (SKILL.md validation)
256-
- MCP schema (JSON validation)
257256
- Manifest schema (.opencode-team.yaml)
258257
- Lockfile schema
259258

@@ -520,7 +519,7 @@
520519
**Subtasks**:
521520
- [ ] List functionality (3h)
522521
- List all configs (team + personal)
523-
- Filter by type (agent/skill/mcp)
522+
- Filter by type (agent/skill)
524523
- Filter by tags
525524
- Sort options
526525

@@ -594,7 +593,7 @@
594593
```bash
595594
oct remove <config-name> [options]
596595
Options:
597-
--type <type> Config type (agent/skill/mcp)
596+
--type <type> Config type (agent/skill)
598597
```
599598
- Remove single config
600599
- Update lockfile

0 commit comments

Comments
 (0)