AI agents invoke ingest_current_directory to trigger actions in Omni Rag. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
Triggering an indexing process is an Execute-category action: it runs an operation that processes files and writes index data. It is not purely a read, and while it writes index state, the primary action is executing an indexing pipeline. Severity is medium because misuse could cause unintended indexing of sensitive directories or resource exhaustion, but it does not delete or expose data directly.
From the tool's definition 'Manually trigger indexing' — the tool actively triggers an indexing operation over the current directory, which is an external operation with side effects (building/updating an index). Marked as Deprecated in favor of 'ingest'.
Attacks that exploit this kind of access
[Deprecated: use 'ingest'] Manually trigger indexing. It is categorised as a Execute tool in the Omni Rag MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Omni Rag MCP server in PolicyLayer and add a rule for ingest_current_directory: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Omni Rag. Nothing to install.
ingest_current_directory is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the ingest_current_directory rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for ingest_current_directory. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
ingest_current_directory is provided by the Omni Rag MCP server (suyash2013/codebase-rag-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →