index_project

Trigger a full or incremental index scan of a project. Persists configuration and starts the file watcher. Reads tsconfig.json from root_dir automatically to resolve TypeScript path aliases (@scope/... imports). Override with tsconfig_path if your tsconfig is elsewhere.

Server Knocoph jagonzalr/knocoph
Category Write
Risk class Medium
Parameters 00 required

What index_project does on Knocoph

AI agents use index_project to create or update resources in Knocoph — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Knocoph environment.

Why index_project needs a policy

This tool writes data to the SQLite knowledge graph by indexing the project and persisting configuration. It also starts a file watcher, which is an ongoing external process. The primary effect is creating/updating persisted data in the database, which is reversible in nature (re-indexing would overwrite). No code execution, deletion, or financial action is involved.

From the tool's definition Trigger a full or incremental index scan of a project. Persists configuration and starts the file watcher.

Questions about index_project

What does the index_project tool do? +

Trigger a full or incremental index scan of a project. Persists configuration and starts the file watcher. Reads tsconfig.json from root_dir automatically to resolve TypeScript path aliases (@scope/... imports). Override with tsconfig_path if your tsconfig is elsewhere. It is categorised as a Write tool in the Knocoph MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on index_project? +

Register the Knocoph MCP server in PolicyLayer and add a rule for index_project: 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 Knocoph. Nothing to install.

What risk level is index_project? +

index_project is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit index_project? +

Yes. Add a rate_limit block to the index_project 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.

How do I block index_project completely? +

Set action: deny in the PolicyLayer policy for index_project. 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.

What MCP server provides index_project? +

index_project is provided by the Knocoph MCP server (jagonzalr/knocoph). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER 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 →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.