Files
tolaria/mcp-server/package.json
lucaronin 7d235d723f feat(ai-chat): WebSocket bridge for MCP vault ops
Add WebSocket bridge connecting MCP server tools to the frontend:
- mcp-server/ws-bridge.js: WebSocket server exposing vault tools
  (read_note, create_note, search_notes, append_to_note)
- src/hooks/useMcpBridge.ts: React hook for typed tool invocations
  with lazy connection, request/response correlation, timeouts
- Vite MCP bridge info endpoint (/api/mcp/info)

Protocol: client sends {id, tool, args}, server responds {id, result}
Default port: 9710 (configurable via WS_PORT env var)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 22:59:00 +01:00

16 lines
329 B
JSON

{
"name": "laputa-mcp-server",
"version": "0.1.0",
"description": "MCP server for Laputa vault operations",
"type": "module",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "node --test test.js"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.0",
"ws": "^8.19.0"
}
}