MCP to fetch my workshop details.
npm install
Build the server
npm run build
echo -e '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {"tools": {}}, "clientInfo": {"name": "test-client", "version":
"1.0.0"}}}\n{"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {"name": "workshops", "arguments": {"action": "list"}}}' | node <path-to-your-project>/workshop-mcp/build/index.js
Or use
npx @modelcontextprotocol/inspector
with command: node
and arguments: <path-to-your-project>/workshop-mcp/build/index.js
Add workshops tool to:
~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"workshops": {
"command": "node",
"args": ["<path-to-your-project>/workshop-mcp/build/index.js"]
}
}
}
Logs: tail -n 20 -f ~/Library/Logs/Claude/mcp*.log