feat(mcp-server): Add MCP server with tool registrations

Add MCP server implementation with support for:
- ask262_search_spec_sections tool
- ask262_get_section_content tool
- ask262_evaluate_in_engine262 tool
Includes proper error handling, input/output schemas, and structured
content responses.
This commit is contained in:
2026-04-14 11:12:03 +05:30
parent 1c9d08f7fa
commit 887ad3e5a4
8 changed files with 742 additions and 238 deletions
+3
View File
@@ -15,6 +15,8 @@
"test-search-spec-sections": "bun run src/test/manual/test-search-spec-sections.ts",
"agent": "bun run src/agent.ts",
"build": "bun run src/setup/buildGraph.ts",
"mcp-server": "bun run src/mcp-server.ts",
"test-mcp-server": "bun run src/test/manual/test-mcp-server.ts",
"test": "bun test"
},
"keywords": [],
@@ -28,6 +30,7 @@
"@langchain/core": "^0.2.0",
"@langchain/ollama": "^0.1.0",
"@langchain/openai": "^0.1.0",
"@modelcontextprotocol/sdk": "^1.0.4",
"acorn": "^8.16.0",
"cheerio": "^1.2.0",
"glob": "^13.0.6",