Skip to content

Commit 36ce00b

Browse files
committed
feat: Implement new tool handlers with simplified schemas for devlog and project operations
- Added tool-handlers.ts to manage tool operations using Zod schemas for validation. - Refactored index.ts to utilize new tool handlers, reducing complexity and improving maintainability. - Created base schemas in base.ts for reusable components across devlog and project schemas. - Developed devlog operation schemas in devlog-schemas.ts, including create, get, update, list, add note, complete, and find related. - Established project operation schemas in project-schemas.ts for listing, getting current, and switching projects. - Updated devlog-tools.ts to reflect new action-based naming and reduced parameters for AI-friendly design. - Simplified project-tools.ts by removing legacy implementations and focusing on schema-driven tools. - Consolidated all schemas in index.ts for cleaner imports and organization.
1 parent 94701e6 commit 36ce00b

File tree

14 files changed

+772
-1073
lines changed

14 files changed

+772
-1073
lines changed

.vscode/mcp.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
"args": [
1414
"@codervisor/devlog-mcp@dev"
1515
]
16+
},
17+
"github": {
18+
"type": "http",
19+
"url": "https://api.githubcopilot.com/mcp/",
20+
"headers": {
21+
"Authorization": "Bearer ${env:GITHUB_TOKEN}"
22+
}
1623
}
1724
},
1825
"inputs": []
19-
}
26+
}

packages/mcp/src/adapters/adapter-factory.ts

Lines changed: 0 additions & 115 deletions
This file was deleted.

packages/mcp/src/adapters/index.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
/**
2-
* Adapter exports for MCP package
2+
* MCP Adapter - Clean, single implementation
33
*/
44

5-
export { MCPApiAdapter } from './mcp-api-adapter.js';
6-
export {
7-
createMCPAdapter,
8-
createMCPAdapterWithDiscovery,
9-
checkWebApiAvailability,
10-
discoverWebApiUrl,
11-
isApiAdapter,
12-
type MCPAdapter,
13-
} from './adapter-factory.js';
5+
export { MCPAdapter, type StandardResponse, type MCPAdapterConfig } from './mcp-adapter.js';

0 commit comments

Comments
 (0)