{"_id":"@agent-eyes/agent-eyes-mcp","_rev":"7-3c86a0a6d2d5439b944c25ae12649bf3","name":"@agent-eyes/agent-eyes-mcp","dist-tags":{"latest":"0.1.8"},"versions":{"0.0.2":{"name":"@agent-eyes/agent-eyes-mcp","version":"0.0.2","keywords":["mcp","agent-eyes","code-inspector","model-context-protocol"],"author":{"name":"zh-lx","email":"18366276315@163.com"},"license":"MIT","_id":"@agent-eyes/agent-eyes-mcp@0.0.2","maintainers":[{"name":"agent-eyes","email":"17362864761@163.com"}],"homepage":"https://inspector.fe-dev.cn/en","bugs":{"url":"https://github.com/zh-lx/code-inspector/issues"},"bin":{"agent-eyes-mcp":"dist/cli.js"},"dist":{"shasum":"07005f1918fc9da132b261a471a0543c20579504","tarball":"https://registry.npmjs.org/@agent-eyes/agent-eyes-mcp/-/agent-eyes-mcp-0.0.2.tgz","fileCount":10,"integrity":"sha512-rhfOyC33jmShw5HYht53eDjxEqbh4iykDoOuAb3dxeclOpJHEzvyzKpakRXs9NiraHyF28Ka0v2d/7SyBlP3mw==","signatures":[{"sig":"MEUCIQCSOEFp+LjbRVdk1bTss6h760DBpiYDuo6QH5j9sYVpjAIgP6ZmDcxQMDVKdQgvRynnPMZgkCzc4s4i9yLevRrAxF0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18743},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./types/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./types/index.d.ts","default":"./dist/index.js"}}},"gitHead":"31a101a9f13d83e95859e3daffe3f68e72a0a9b3","scripts":{"pub":"pnpm publish","build":"node ./scripts/build.mjs","clear":"rimraf ./dist && rimraf ./types","pub:beta":"pnpm publish --tag beta"},"typings":"./types/index.d.ts","_npmUser":{"name":"agent-eyes","email":"17362864761@163.com"},"repository":{"url":"git+ssh://git@github.com/zh-lx/code-inspector.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for Agent Eyes selected context and AGENTS.md setup.","directories":{},"_nodeVersion":"23.11.1","dependencies":{"zod":"^3.25.76","@modelcontextprotocol/sdk":"^1.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.3.9","typescript":"^5.5.4","@types/node":"^20.3.3"},"_npmOperationalInternal":{"tmp":"tmp/agent-eyes-mcp_0.0.2_1774204309366_0.41348113557709465","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@agent-eyes/agent-eyes-mcp","version":"0.0.3","keywords":["mcp","agent-eyes","code-inspector","model-context-protocol"],"author":{"name":"zh-lx","email":"18366276315@163.com"},"license":"MIT","_id":"@agent-eyes/agent-eyes-mcp@0.0.3","maintainers":[{"name":"agent-eyes","email":"17362864761@163.com"}],"homepage":"https://inspector.fe-dev.cn/en","bugs":{"url":"https://github.com/zh-lx/code-inspector/issues"},"bin":{"agent-eyes-mcp":"dist/cli.js"},"dist":{"shasum":"664e02390ec8e84a2c312c84fcd564495a977d37","tarball":"https://registry.npmjs.org/@agent-eyes/agent-eyes-mcp/-/agent-eyes-mcp-0.0.3.tgz","fileCount":10,"integrity":"sha512-edA+nT8kJxUjAydAaUGpQLfhGoEEJNMeBNWa2j82U+gZgbpzpCKr84wbICcmTSd+mk1YVw73IZ6OKVzgsdgkUw==","signatures":[{"sig":"MEQCIEN1vx390pRjepiXn28cutLNW8RmB2Gz5LppmpcDSw/hAiA3+qHpdE3C6RTIuhJv85G87iVzWTVjxjOCf0KAuMucDA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18964},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./types/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./types/index.d.ts","default":"./dist/index.js"}}},"gitHead":"320a21b5ef939c6c85e026056edff49e2e020063","scripts":{"pub":"pnpm publish","build":"node ./scripts/build.mjs","clear":"rimraf ./dist && rimraf ./types","prepack":"pnpm build","pub:beta":"pnpm publish --tag beta"},"typings":"./types/index.d.ts","_npmUser":{"name":"agent-eyes","email":"17362864761@163.com"},"repository":{"url":"git+ssh://git@github.com/zh-lx/code-inspector.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for Agent Eyes selected context and AGENTS.md setup.","directories":{},"_nodeVersion":"23.11.1","dependencies":{"zod":"^3.25.76","@modelcontextprotocol/sdk":"^1.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.3.9","typescript":"^5.5.4","@types/node":"^20.3.3"},"_npmOperationalInternal":{"tmp":"tmp/agent-eyes-mcp_0.0.3_1774247048144_0.07013450077378103","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@agent-eyes/agent-eyes-mcp","version":"0.1.0","keywords":["mcp","agent-eyes","code-inspector","model-context-protocol"],"author":{"name":"zh-lx","email":"18366276315@163.com"},"license":"MIT","_id":"@agent-eyes/agent-eyes-mcp@0.1.0","maintainers":[{"name":"agent-eyes","email":"17362864761@163.com"}],"homepage":"https://inspector.fe-dev.cn/en","bugs":{"url":"https://github.com/zh-lx/code-inspector/issues"},"bin":{"agent-eyes-mcp":"dist/cli.js"},"dist":{"shasum":"688f09ffbc34d4a101f8e3068ba89a4ced174a24","tarball":"https://registry.npmjs.org/@agent-eyes/agent-eyes-mcp/-/agent-eyes-mcp-0.1.0.tgz","fileCount":10,"integrity":"sha512-UdBN8eLIUcqKwCeBJhKzCp4WmHT90pSESGn4zHdfUnmvUgLtyeG/gMWt4lN/QF/1aa7L/Hc/K9jALvCFZc2WHQ==","signatures":[{"sig":"MEUCIQDMLZV2ljXWUp8iAu3O0wS0SCvV3JFoysneSdkLBmd2VAIgf/xq7U+LR+zBCGYhSxoyQKaRhD9h2dgmkXJSJeLnCNI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21987},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./types/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./types/index.d.ts","default":"./dist/index.js"}}},"gitHead":"c5e1d117f0fdfb1857559dc9dee16bcb196c3896","scripts":{"pub":"pnpm publish","build":"node ./scripts/build.mjs","clear":"rimraf ./dist && rimraf ./types","prepack":"pnpm build","pub:beta":"pnpm publish --tag beta"},"typings":"./types/index.d.ts","_npmUser":{"name":"agent-eyes","email":"17362864761@163.com"},"repository":{"url":"git+ssh://git@github.com/zh-lx/code-inspector.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for Agent Eyes selected context and AGENTS.md setup.","directories":{},"_nodeVersion":"23.11.1","dependencies":{"zod":"^3.25.76","@modelcontextprotocol/sdk":"^1.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.3.9","typescript":"^5.5.4","@types/node":"^20.3.3"},"_npmOperationalInternal":{"tmp":"tmp/agent-eyes-mcp_0.1.0_1774343514585_0.75702983663242","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agent-eyes/agent-eyes-mcp","version":"0.1.1","keywords":["mcp","agent-eyes","code-inspector","model-context-protocol"],"author":{"name":"zh-lx","email":"18366276315@163.com"},"license":"MIT","_id":"@agent-eyes/agent-eyes-mcp@0.1.1","maintainers":[{"name":"agent-eyes","email":"17362864761@163.com"}],"homepage":"https://inspector.fe-dev.cn/en","bugs":{"url":"https://github.com/zh-lx/code-inspector/issues"},"bin":{"agent-eyes-mcp":"dist/cli.js"},"dist":{"shasum":"89d1ea8a68d1a63f87fc5e05dd2a02ff4ddb1239","tarball":"https://registry.npmjs.org/@agent-eyes/agent-eyes-mcp/-/agent-eyes-mcp-0.1.1.tgz","fileCount":10,"integrity":"sha512-OpMuCs2kZISHxboh4lvlIHL6Z9oI+Sq7dH40Uk/jDAk082ikdATNkMOQLyxsh27aHheCKnnv8OgkCFFX9TAOSA==","signatures":[{"sig":"MEQCIEgqED2zYvO6gJNPeSnkuBr1IxxCHyH6zOamtkvhsvKPAiBDiaF47iIVmvDxvERR+ybrxadU2slWKTCe8G+Oo1/GqA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21987},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./types/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./types/index.d.ts","default":"./dist/index.js"}}},"gitHead":"ab06c03521e2a72ecc226d2f5c897cf66c0198d0","scripts":{"pub":"pnpm publish","build":"node ./scripts/build.mjs","clear":"rimraf ./dist && rimraf ./types","prepack":"pnpm build","pub:beta":"pnpm publish --tag beta"},"typings":"./types/index.d.ts","_npmUser":{"name":"agent-eyes","email":"17362864761@163.com"},"repository":{"url":"git+ssh://git@github.com/zh-lx/code-inspector.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for Agent Eyes selected context and AGENTS.md setup.","directories":{},"_nodeVersion":"23.11.1","dependencies":{"zod":"^3.25.76","@modelcontextprotocol/sdk":"^1.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.3.9","typescript":"^5.5.4","@types/node":"^20.3.3"},"_npmOperationalInternal":{"tmp":"tmp/agent-eyes-mcp_0.1.1_1774353012029_0.7997059688972832","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@agent-eyes/agent-eyes-mcp","version":"0.1.6","keywords":["mcp","agent-eyes","code-inspector","model-context-protocol"],"author":{"name":"zh-lx","email":"18366276315@163.com"},"license":"MIT","_id":"@agent-eyes/agent-eyes-mcp@0.1.6","maintainers":[{"name":"agent-eyes","email":"17362864761@163.com"}],"homepage":"https://inspector.fe-dev.cn/en","bugs":{"url":"https://github.com/zh-lx/code-inspector/issues"},"bin":{"agent-eyes-mcp":"dist/cli.js"},"dist":{"shasum":"e515fb69dc016e43b68bbb772e0dc2dc55023187","tarball":"https://registry.npmjs.org/@agent-eyes/agent-eyes-mcp/-/agent-eyes-mcp-0.1.6.tgz","fileCount":10,"integrity":"sha512-c2eddqUMoupUPrZNUU9tEfCbvqS5lL/JxKXE5m1K7pPuB5p0Bjbe1Hyui5CfVGDCBogOtAzZ1oPucHWXEo57Mg==","signatures":[{"sig":"MEUCIQD/22pbgfTMisx6wQhh5rO7AvTUJWRxgPQTXTY11x4KBwIgO5thqHTV2i0ASD5duhlG0KzGnB2gjE3aeZRnMcLqY2k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21987},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./types/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./types/index.d.ts","default":"./dist/index.js"}}},"gitHead":"ab06c03521e2a72ecc226d2f5c897cf66c0198d0","scripts":{"pub":"pnpm publish","build":"node ./scripts/build.mjs","clear":"rimraf ./dist && rimraf ./types","prepack":"pnpm build","pub:beta":"pnpm publish --tag beta"},"typings":"./types/index.d.ts","_npmUser":{"name":"agent-eyes","email":"17362864761@163.com"},"repository":{"url":"git+ssh://git@github.com/zh-lx/code-inspector.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for Agent Eyes selected context and AGENTS.md setup.","directories":{},"_nodeVersion":"23.11.1","dependencies":{"zod":"^3.25.76","@modelcontextprotocol/sdk":"^1.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.3.9","typescript":"^5.5.4","@types/node":"^20.3.3"},"_npmOperationalInternal":{"tmp":"tmp/agent-eyes-mcp_0.1.6_1774435532038_0.872010742112969","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@agent-eyes/agent-eyes-mcp","version":"0.1.7","keywords":["mcp","agent-eyes","code-inspector","model-context-protocol"],"author":{"name":"zh-lx","email":"18366276315@163.com"},"license":"MIT","_id":"@agent-eyes/agent-eyes-mcp@0.1.7","maintainers":[{"name":"agent-eyes","email":"17362864761@163.com"}],"homepage":"https://inspector.fe-dev.cn/en","bugs":{"url":"https://github.com/zh-lx/code-inspector/issues"},"bin":{"agent-eyes-mcp":"dist/cli.js"},"dist":{"shasum":"573c908158a5f613ba5e3e0a4124ef45d9851bf2","tarball":"https://registry.npmjs.org/@agent-eyes/agent-eyes-mcp/-/agent-eyes-mcp-0.1.7.tgz","fileCount":10,"integrity":"sha512-Tmsy6iZaDcE4p5sz1+HaicebdLps7rMmf5itp9ZkKgYvR99TOyPMN4WdCQpGtvCxwlrOhx9gUSmpPpbNHcuKTQ==","signatures":[{"sig":"MEQCIAEpY1nVtj1n2LnKHV9mO9xfCq+Dy0Osg3xJjVzjy4rwAiAJ8WvtdiEKbr6n9JZIITV7Xfaccsle5ty5cVMKjkTdgg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31253},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./types/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./types/index.d.ts","default":"./dist/index.js"}}},"gitHead":"f4135315ba5361083d7cceb8e00110d3e7bb0c1f","scripts":{"pub":"pnpm publish","build":"node ./scripts/build.mjs","clear":"rimraf ./dist && rimraf ./types","prepack":"pnpm build","pub:beta":"pnpm publish --tag beta"},"typings":"./types/index.d.ts","_npmUser":{"name":"agent-eyes","email":"17362864761@163.com"},"repository":{"url":"git+ssh://git@github.com/zh-lx/code-inspector.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server for Agent Eyes selected context and AGENTS.md setup.","directories":{},"_nodeVersion":"23.11.1","dependencies":{"zod":"^3.25.76","@modelcontextprotocol/sdk":"^1.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.3.9","typescript":"^5.5.4","@types/node":"^20.3.3"},"_npmOperationalInternal":{"tmp":"tmp/agent-eyes-mcp_0.1.7_1774844394061_0.6621478794666422","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@agent-eyes/agent-eyes-mcp","version":"0.1.8","main":"./dist/index.js","module":"./dist/index.mjs","typings":"./types/index.d.ts","bin":{"agent-eyes-mcp":"dist/cli.js"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/zh-lx/code-inspector.git"},"author":{"name":"zh-lx","email":"18366276315@163.com"},"license":"MIT","homepage":"https://inspector.fe-dev.cn/en","description":"MCP server for Agent Eyes selected context and AGENTS.md setup.","exports":{".":{"import":{"types":"./types/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./types/index.d.ts","default":"./dist/index.js"}}},"keywords":["mcp","agent-eyes","code-inspector","model-context-protocol"],"bugs":{"url":"https://github.com/zh-lx/code-inspector/issues"},"dependencies":{"@modelcontextprotocol/sdk":"^1.26.0","zod":"^3.25.76"},"devDependencies":{"@types/node":"^20.3.3","typescript":"^5.5.4","vite":"^4.3.9"},"scripts":{"clear":"rimraf ./dist && rimraf ./types","build":"node ./scripts/build.mjs","pub":"pnpm publish","pub:beta":"pnpm publish --tag beta","prepack":"pnpm build"},"_id":"@agent-eyes/agent-eyes-mcp@0.1.8","gitHead":"b978ef756c1a9da182652bded97929f7af5534b2","_nodeVersion":"23.11.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Bi3MxtmPslFdNSzSkX/Y3URzHERspT0+n/Zw3nh5qVh2pR3UYAuIByWwVf3uwxjAQEv51Zjtji93kLQoRIynJQ==","shasum":"3e68b9fb212943860fad4bbdb90bdac8ca674eee","tarball":"https://registry.npmjs.org/@agent-eyes/agent-eyes-mcp/-/agent-eyes-mcp-0.1.8.tgz","fileCount":10,"unpackedSize":31253,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHBweTkXiOwdhm1nZqRpYhq2AfKuDITZ2tIYTOx1c3K2AiEA1wCPIfh3eBktUIMiNkMAy2hTQSul6VRWEXPLwdGcgYc="}]},"_npmUser":{"name":"agent-eyes","email":"17362864761@163.com"},"directories":{},"maintainers":[{"name":"agent-eyes","email":"17362864761@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-eyes-mcp_0.1.8_1775038572367_0.16165623755044"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-22T18:31:49.205Z","modified":"2026-04-01T10:16:12.627Z","0.0.2":"2026-03-22T18:31:49.513Z","0.0.3":"2026-03-23T06:24:08.292Z","0.1.0":"2026-03-24T09:11:54.721Z","0.1.1":"2026-03-24T11:50:12.173Z","0.1.6":"2026-03-25T10:45:32.171Z","0.1.7":"2026-03-30T04:19:54.205Z","0.1.8":"2026-04-01T10:16:12.502Z"},"bugs":{"url":"https://github.com/zh-lx/code-inspector/issues"},"author":{"name":"zh-lx","email":"18366276315@163.com"},"license":"MIT","homepage":"https://inspector.fe-dev.cn/en","keywords":["mcp","agent-eyes","code-inspector","model-context-protocol"],"repository":{"type":"git","url":"git+ssh://git@github.com/zh-lx/code-inspector.git"},"description":"MCP server for Agent Eyes selected context and AGENTS.md setup.","maintainers":[{"name":"agent-eyes","email":"17362864761@163.com"}],"readme":"# agent-eyes-mcp\n\nMCP server for Agent Eyes. It exposes two tools:\n\n- `get_selected_context`\n  Reads `GET /context/selected` from the local Agent Eyes service.\n- `ensure_agents_rule`\n  Creates or updates `AGENTS.md` in the target project root with the Agent Eyes workflow rule.\n\n## Install\n\n```bash\npnpm add -D agent-eyes-mcp\n```\n\n## Configure MCP client\n\nExample stdio config:\n\n```json\n{\n  \"mcpServers\": {\n    \"agent-eyes\": {\n      \"command\": \"npx\",\n      \"args\": [\"agent-eyes-mcp\"]\n    }\n  }\n}\n```\n\n## Tool notes\n\n`get_selected_context` auto-resolves base URL in this order:\n\n1. `baseUrl` tool argument\n2. if `projectRoot` is provided, resolve its git root, then read only `<gitRoot>/.code-inspector/record.json`\n3. match `projectRoot` against record keys with longest-prefix project-directory matching, then probe the matched project port first with `GET /context/selected`\n4. if the matched port fails, continue probing the other ports from the same record file\n5. if `projectRoot` is omitted, use the current workspace path to resolve the git root and do the same longest-prefix matching against the same record file\n6. fallback `http://127.0.0.1:5678`\n\nStrict rules:\n\n- Only use the git root `.code-inspector/record.json`.\n- Do not search the filesystem for other `.code-inspector` directories.\n- Do not scan arbitrary common ports such as `3000`, `5173`, or `8080`.\n- Do not choose a port before determining the matching project directory from the record keys.\n\n`ensure_agents_rule` writes `AGENTS.md` in the provided `projectRoot`, or in the git project root when omitted.\n","readmeFilename":"README.md"}