{"_id":"@dungngo4520/mcp-zig","_rev":"5-02cff8fe208c5a48f2e7a6ec1927b6c8","name":"@dungngo4520/mcp-zig","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@dungngo4520/mcp-zig","version":"1.0.1","keywords":["mcp","zig","zls","lsp","language-server","model-context-protocol","completions","hover"],"author":{"name":"dungngo4520","email":"dungngo4520@gmail.com"},"license":"MIT","_id":"@dungngo4520/mcp-zig@1.0.1","maintainers":[{"name":"dungngo4520","email":"dungngo4520@gmail.com"}],"homepage":"https://github.com/dungngo4520/mcp-zig#readme","bugs":{"url":"https://github.com/dungngo4520/mcp-zig/issues"},"bin":{"mcp-zig":"dist/index.js"},"dist":{"shasum":"c1af2e07fc15016c88515b9e16a28acdd9ed0edb","tarball":"https://registry.npmjs.org/@dungngo4520/mcp-zig/-/mcp-zig-1.0.1.tgz","fileCount":6,"integrity":"sha512-Y0S6Hc1kS0i6uRBngaPoVkKPA4IKesG2FuL+Kp4pJrcnkWdzZJyTUTAiotLemMI4ZhqQn+BEsH/Oz4nW/3UJ1A==","signatures":[{"sig":"MEQCIDBV4a++gpRGu2jq6NnVN2EQss9dUKQtnPIW/xsH7jmSAiBcpk9cPkBslezy8sFTYOjLH70OAMkgu3Egw/myKC6iSQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19346},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"ad96e06f72293d43a27e484761053cad240468f2","scripts":{"dev":"tsx src/index.ts","build":"tsc","start":"node dist/index.js","prepare":"npm run build"},"_npmUser":{"name":"dungngo4520","email":"dungngo4520@gmail.com"},"repository":{"url":"git+https://github.com/dungngo4520/mcp-zig.git","type":"git"},"_npmVersion":"11.6.3","description":"MCP server for Zig language features (completions, hover, definitions) via zls integration","directories":{},"_nodeVersion":"25.2.1","dependencies":{"vscode-languageclient":"^9.0.1","@modelcontextprotocol/sdk":"^1.22.0","vscode-languageserver-protocol":"^3.17.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.6","typescript":"^5.9.3","@types/node":"^24.10.1"},"_npmOperationalInternal":{"tmp":"tmp/mcp-zig_1.0.1_1764005969820_0.11398735542496286","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@dungngo4520/mcp-zig","version":"1.0.2","description":"MCP server for Zig language features (completions, hover, definitions) via zls integration","main":"dist/index.js","type":"module","bin":{"mcp-zig":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsx src/index.ts","prepare":"npm run build"},"keywords":["mcp","zig","zls","lsp","language-server","model-context-protocol","completions","hover"],"author":{"name":"dungngo4520","email":"dungngo4520@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/dungngo4520/mcp-zig.git"},"bugs":{"url":"https://github.com/dungngo4520/mcp-zig/issues"},"homepage":"https://github.com/dungngo4520/mcp-zig#readme","engines":{"node":">=18.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.22.0","vscode-languageclient":"^9.0.1","vscode-languageserver-protocol":"^3.17.5"},"devDependencies":{"@types/node":"^24.10.1","tsx":"^4.20.6","typescript":"^5.9.3"},"gitHead":"75daeaafb5089cbf9fc9f87078d1c9b37e979ade","types":"./dist/index.d.ts","_id":"@dungngo4520/mcp-zig@1.0.2","_nodeVersion":"25.2.1","_npmVersion":"11.6.3","dist":{"integrity":"sha512-+9zLv7N1wKD/0wrlMskFhVm2hEG6VyZAgpGYkklfD4Gw1rez0UiJO1jlwsLfcZq0Bn9ijxYLJYu4tZFOB8/T1Q==","shasum":"18ae292e638d23c93ec337ef571f813e0d0c3336","tarball":"https://registry.npmjs.org/@dungngo4520/mcp-zig/-/mcp-zig-1.0.2.tgz","fileCount":6,"unpackedSize":19346,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEaJZz1uafUb3+Geqi7NjouXJOch0yLKWspMdSz4SOSEAiB6UxUhGl36VjEroXJB3uroYcgNyqSnvpC50bPxcANGYw=="}]},"_npmUser":{"name":"dungngo4520","email":"dungngo4520@gmail.com"},"directories":{},"maintainers":[{"name":"dungngo4520","email":"dungngo4520@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-zig_1.0.2_1764006484823_0.7818027498773459"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-24T17:39:29.729Z","modified":"2025-11-24T17:48:05.190Z","1.0.0":"2025-11-24T17:32:51.419Z","1.0.1":"2025-11-24T17:39:30.025Z","1.0.2":"2025-11-24T17:48:04.999Z"},"bugs":{"url":"https://github.com/dungngo4520/mcp-zig/issues"},"author":{"name":"dungngo4520","email":"dungngo4520@gmail.com"},"license":"MIT","homepage":"https://github.com/dungngo4520/mcp-zig#readme","keywords":["mcp","zig","zls","lsp","language-server","model-context-protocol","completions","hover"],"repository":{"type":"git","url":"git+https://github.com/dungngo4520/mcp-zig.git"},"description":"MCP server for Zig language features (completions, hover, definitions) via zls integration","maintainers":[{"name":"dungngo4520","email":"dungngo4520@gmail.com"}],"readme":"# MCP Zig Server\n\nMCP server providing Zig language features (completions, hover info, definitions, references) via integration with the Zig Language Server (zls).\n\nWorks with any MCP-compatible client: AI assistants, IDEs, or coding agents that support the Model Context Protocol.\n\n## Quick Setup\n\n### 1. Install zls\n\n```bash\n# macOS/Linux\nbrew install zls\n\n# Windows\nscoop install zls\n\n# Or download binary: https://github.com/zigtools/zls/releases\n```\n\n### 2. Configure Your MCP Client\n\nAdd to your MCP settings file:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-zig\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@dungngo4520/mcp-zig\"],\n      \"env\": {\n        \"WORKSPACE_ROOT\": \"/path/to/your/zig/project\"\n      }\n    }\n  }\n}\n```\n\n**Common config locations:**\n\n- **macOS:** `~/Library/Application Support/<client>/config.json`\n- **Windows:** `%APPDATA%\\<client>\\config.json`\n- **Linux:** `~/.config/<client>/config.json`\n\nReplace `<client>` with your MCP client's name. Check your client's documentation for exact path.\n\n### 3. Restart Your MCP Client\n\nYou'll have access to 4 new tools:\n\n- `zig_complete` - Code completions\n- `zig_hover` - Symbol information\n- `zig_goto_definition` - Jump to definitions\n- `zig_find_references` - Find all usages\n\n## Usage\n\nAsk natural language questions about your Zig code:\n\n- \"What does this function do?\"\n- \"Show me completions here\"\n- \"Where is this defined?\"\n- \"Find all usages of this symbol\"\n\nYour AI assistant automatically chooses the right tool.\n\n## Troubleshooting\n\n**Tools not showing up?**\n\n- Verify `zls` is installed: `zls --version`\n- Check the config file path for your MCP client\n- Restart your MCP client after config changes\n- Make sure `WORKSPACE_ROOT` points to a valid Zig project\n\n## Contributing\n\n```bash\ngit clone https://github.com/dungngo4520/mcp-zig.git\ncd mcp-zig\nnpm install\nnpm run build\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}