Your agent discovers these tools on its own once MCP is set up. This page is a reference. Infracodebase never sees your local files.
Your live Infracodebase role determines which enterprises, workspaces, repositories, and actions are available. If you connect a GitHub account, you can also view workspaces whose repository that account can read.
| Tool | Purpose |
|---|---|
get_workspace_context | Front door. Resolves repo → workspace, returns coding guidelines, ruleset metadata, and latest compliance state. |
get_build_rules | For a repo with no workspace yet, the rules of the optional rulesets the agent picked, without reloading the whole context. |
get_ruleset_details | Full rule contents for one ruleset. |
list_workspace_rulesets | Every ruleset that could apply to a workspace, including ones it has not attached yet. |
get_compliance_evaluation | A specific compliance evaluation (latest by default, or by id / commit SHA). |
wait_for_compliance_evaluation | Waits server-side for a run to finish and returns its result, so the agent never polls. Capped at 25 minutes. |
list_compliance_findings | Per-rule findings (optionally filtered by status). |
get_compliance_eval_spec | The CI evaluator's framing, so local advisory reasoning can mirror it. |
list_modules | The workspace's approved module catalog, so the agent reaches for sanctioned modules. |
list_workspace_modules | Module references stored from the workspace's default-branch scan, with versions and scan age. Starts no scan. |
list_module_consumers | Workspaces you can access that reference an approved module, with versions and scan age. |
list_enterprises | Your enterprises with role and workspace count. |
list_workspaces | Workspaces you can access (optionally filtered to one enterprise). |
list_enterprise_resources | Rulesets, MCP servers, and workflows available to attach to a workspace. |
list_vcs_connections | Version-control connections (GitHub, GitLab) configured for an enterprise, each saying whether you can create a repository through it. |
list_vcs_repos | Repos visible through a connection that your personal account can also read. |
plan_workspace_setup | Proposes how to bring a repo under governance: enterprise, connection, and rulesets. For a repo that does not exist yet, lists the connected accounts it could be created under. Makes no changes. |
| Tool | Purpose |
|---|---|
create_workspace | Create a workspace, attach resources, and optionally link a repository in one call. |
link_workspace_to_repo | Connect an existing workspace to a repository. |
update_workspace_resources | Add or remove rulesets, MCP servers, and workflows on a workspace. |
trigger_compliance_evaluation | Start a compliance run on code already pushed to the linked branch, optionally scoped to one ruleset or a few rules. |
setup_workspace | Apply a confirmed plan_workspace_setup plan: create or link the workspace. With create_repo, first creates the repository on the connection's provider with your own connected account (GitHub today). |
When fixes run out and some rules still fail, the agent can request exceptions for them: a risk acceptance for a real violation someone accepts, or not applicable for a rule that doesn't apply at this level. Everyone requests by default, and an authorized approver reviews. Workspace Maintainers, Admins, and Owners can also grant optional rule exceptions directly. Approvers can grant directly, but the agent only does that when you explicitly say "grant", and it confirms which rules will stop being enforced first. Exception decisions are recorded under your name, so they work with browser login or a personal access token, but not with an enterprise access token.
| Tool | Purpose |
|---|---|
list_compliance_exceptions | Active exceptions and requests waiting on an approver. |
submit_compliance_exceptions | Request exceptions for a batch of failing rules, or grant them when an approver says so. |
approve_compliance_exception | Approve a waiting request. Central approvers or optional-exception holders; takes effect immediately. |
reject_compliance_exception | Reject a waiting request with a reason. Central approvers or optional-exception holders. |
revoke_compliance_exception | End an exception so the rule is enforced again. Central approvers or optional-exception holders. |