@agent-eyes/agent-eyes-mcp
v0.1.8
Published
MCP server for Agent Eyes selected context and AGENTS.md setup.
Maintainers
Readme
agent-eyes-mcp
MCP server for Agent Eyes. It exposes two tools:
get_selected_contextReadsGET /context/selectedfrom the local Agent Eyes service.ensure_agents_ruleCreates or updatesAGENTS.mdin the target project root with the Agent Eyes workflow rule.
Install
pnpm add -D agent-eyes-mcpConfigure MCP client
Example stdio config:
{
"mcpServers": {
"agent-eyes": {
"command": "npx",
"args": ["agent-eyes-mcp"]
}
}
}Tool notes
get_selected_context auto-resolves base URL in this order:
baseUrltool argument- if
projectRootis provided, resolve its git root, then read only<gitRoot>/.code-inspector/record.json - match
projectRootagainst record keys with longest-prefix project-directory matching, then probe the matched project port first withGET /context/selected - if the matched port fails, continue probing the other ports from the same record file
- if
projectRootis omitted, use the current workspace path to resolve the git root and do the same longest-prefix matching against the same record file - fallback
http://127.0.0.1:5678
Strict rules:
- Only use the git root
.code-inspector/record.json. - Do not search the filesystem for other
.code-inspectordirectories. - Do not scan arbitrary common ports such as
3000,5173, or8080. - Do not choose a port before determining the matching project directory from the record keys.
ensure_agents_rule writes AGENTS.md in the provided projectRoot, or in the git project root when omitted.
