{"_id":"@binhonglee/slogx-mcp","_rev":"2-b3e28c1ff8a4df08c0a4ee8f8b391892","name":"@binhonglee/slogx-mcp","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@binhonglee/slogx-mcp","version":"0.0.1","keywords":["mcp","slogx","logging","debugging","claude"],"license":"MIT","_id":"@binhonglee/slogx-mcp@0.0.1","maintainers":[{"name":"binhonglee","email":"binhonglee@hotmail.com"}],"bin":{"slogx-mcp":"dist/index.js"},"dist":{"shasum":"e3e99bce6aa173da4c46a46cdca3b959dba8861f","tarball":"https://registry.npmjs.org/@binhonglee/slogx-mcp/-/slogx-mcp-0.0.1.tgz","fileCount":15,"integrity":"sha512-6sZU/6alDhBfVMyRUqmTsTmZf+5+n72Mk7gpm9ZZf6oYkRj4KXvGvhnjmgN0xxOY8gZhpD8/L4oW9f/IdM54YA==","signatures":[{"sig":"MEYCIQDfiwXl3FBaj/jKj04e+YLQAogjUpIrdVZOd/fAtI8KlgIhAMQ0FCTULd6nzZ4c8RW4wWYx77X+GPXwApClOH40DnKX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55757},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"9e696a6bf2f8067ef78e3df0cd33f1b9059122e1","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","start":"node dist/index.js","test:watch":"vitest"},"_npmUser":{"name":"binhonglee","email":"binhonglee@hotmail.com"},"_npmVersion":"11.8.0","description":"MCP server for slogx - real-time log streaming for AI assistants","directories":{},"_nodeVersion":"24.13.1","dependencies":{"ws":"8.18.0","@modelcontextprotocol/sdk":"1.29.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.2","@types/ws":"8.18.0","typescript":"6.0.2","@types/node":"25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/slogx-mcp_0.0.1_1775154009548_0.006563310233287822","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@binhonglee/slogx-mcp","version":"0.0.4","description":"MCP server for slogx - real-time log streaming for AI assistants","main":"dist/index.js","bin":{"slogx-mcp":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsc --watch","test":"vitest run","test:watch":"vitest"},"keywords":["mcp","slogx","logging","debugging","claude"],"license":"MIT","dependencies":{"@modelcontextprotocol/sdk":"1.30.0","ws":"8.21.1"},"devDependencies":{"@types/node":"26.1.2","@types/ws":"8.18.1","typescript":"7.0.2","vitest":"4.1.10"},"gitHead":"771ab88d38f261a2adf40759ae7cee9ddeac6e2f","types":"./dist/index.d.ts","_id":"@binhonglee/slogx-mcp@0.0.4","_nodeVersion":"26.5.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-CuNN0m7S6N0X+hTHqGAAiNVzBOIm5gc98SDSX4iFiiSsadGrpCFnmJ4657veeraoLRWuBzmY2Gg+EAv3xCWYRA==","shasum":"4f5d16e10dcda76655065caa643898d5042929fd","tarball":"https://registry.npmjs.org/@binhonglee/slogx-mcp/-/slogx-mcp-0.0.4.tgz","fileCount":19,"unpackedSize":68885,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFeSRHKqYdqp0jtNLELXREO/XAwDMkR6fLkmbLSDFzveAiBfbOYFhefsqlmY0wJrYiG8uR90xPufB7lgucMKMlSTlg=="}]},"_npmUser":{"name":"binhonglee","email":"binhonglee@hotmail.com"},"directories":{},"maintainers":[{"name":"binhonglee","email":"binhonglee@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/slogx-mcp_0.0.4_1786009149275_0.8775619852358478"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-02T18:20:09.465Z","modified":"2026-08-06T09:39:09.611Z","0.0.1":"2026-04-02T18:20:09.699Z","0.0.4":"2026-08-06T09:39:09.427Z"},"license":"MIT","keywords":["mcp","slogx","logging","debugging","claude"],"description":"MCP server for slogx - real-time log streaming for AI assistants","maintainers":[{"name":"binhonglee","email":"binhonglee@hotmail.com"}],"readme":"# slogx MCP Server\n\nMCP (Model Context Protocol) server for slogx - enables AI assistants like Claude to access real-time logs from your backend services.\n\n## Installation\n\n```bash\ncd mcp\nnpm install\nnpm run build\n```\n\n## Claude Code Setup\n\nAdd to your Claude Code MCP settings (`~/.claude/claude_desktop_config.json` or via Claude Code settings):\n\n```json\n{\n  \"mcpServers\": {\n    \"slogx\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/slogx/mcp/dist/index.js\"]\n    }\n  }\n}\n```\n\n## Available Tools\n\n| Tool | Description |\n|------|-------------|\n| `slogx_list` | List connected services and their status |\n| `slogx_connect` | Connect to a slogx WebSocket server |\n| `slogx_disconnect` | Disconnect from a server |\n| `slogx_search` | Search logs by keyword (preferred) |\n| `slogx_get_errors` | Get recent error logs |\n| `slogx_get_logs` | Get recent logs (use sparingly) |\n| `slogx_get_details` | Get full details for a log entry |\n\n## Usage Flow\n\n1. Start your backend with slogx SDK enabled\n2. Ask Claude to help debug: \"help me debug my checkout service\"\n3. Claude will ask for your slogx URL (e.g., `ws://localhost:8080`)\n4. Claude connects and can now search/view your logs\n\n## Example Conversation\n\n```\nUser: \"My API is returning 500 errors\"\n\nClaude: [calls slogx_list]\n        \"No connections yet. What's your slogx WebSocket URL?\"\n\nUser: \"ws://localhost:8080\"\n\nClaude: [calls slogx_connect(\"ws://localhost:8080\")]\n        [calls slogx_get_errors]\n        \"I see a NullPointerException in payment.go:142...\"\n        [calls slogx_get_details(\"abc-123\")]\n        \"The error shows the card object is null. Looking at the stacktrace...\"\n```\n\n## Token Efficiency\n\nThe MCP server uses a compact log format to minimize token usage:\n\n- `slogx_search` / `slogx_get_logs` return one-line summaries\n- `slogx_get_details` returns full info only when needed\n- Buffer holds last 500 logs per connection\n\n## See also\n\nThe companion **slogx skill** teaches AI coding agents the efficient workflow on top of these tools (connect first, prefer `slogx_search`, drill into details only when needed). It works in Claude Code, Codex CLI, and Cursor. Install with one curl line — see [`.claude/skills/slogx/INSTALL.md`](../.claude/skills/slogx/INSTALL.md).\n","readmeFilename":"README.md"}