feat: Add testing framework and initial test cases for various tools and database operations

This commit is contained in:
ethan.chen
2026-01-07 10:05:04 +08:00
parent 372b52b214
commit 47ecc40186
23 changed files with 1781 additions and 40 deletions

View File

@@ -19,6 +19,11 @@ class MCPServer {
private server: Server;
private tools: Map<string, { tool: Tool; handler: ToolHandler }> = new Map();
// Expose tools for testing
getTools(): Map<string, { tool: Tool; handler: ToolHandler }> {
return this.tools;
}
constructor() {
this.server = new Server(
{