MCP tools

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.

Read-only

ToolPurpose
get_workspace_contextFront door. Resolves repo → workspace, returns coding guidelines, ruleset metadata, and latest compliance state.
get_build_rulesFor a repo with no workspace yet, the rules of the optional rulesets the agent picked, without reloading the whole context.
get_ruleset_detailsFull rule contents for one ruleset.
list_workspace_rulesetsEvery ruleset that could apply to a workspace, including ones it has not attached yet.
get_compliance_evaluationA specific compliance evaluation (latest by default, or by id / commit SHA).
wait_for_compliance_evaluationWaits server-side for a run to finish and returns its result, so the agent never polls. Capped at 25 minutes.
list_compliance_findingsPer-rule findings (optionally filtered by status).
get_compliance_eval_specThe CI evaluator's framing, so local advisory reasoning can mirror it.
list_modulesThe workspace's approved module catalog, so the agent reaches for sanctioned modules.
list_workspace_modulesModule references stored from the workspace's default-branch scan, with versions and scan age. Starts no scan.
list_module_consumersWorkspaces you can access that reference an approved module, with versions and scan age.
list_enterprisesYour enterprises with role and workspace count.
list_workspacesWorkspaces you can access (optionally filtered to one enterprise).
list_enterprise_resourcesRulesets, MCP servers, and workflows available to attach to a workspace.
list_vcs_connectionsVersion-control connections (GitHub, GitLab) configured for an enterprise, each saying whether you can create a repository through it.
list_vcs_reposRepos visible through a connection that your personal account can also read.
plan_workspace_setupProposes 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.

Read and write

ToolPurpose
create_workspaceCreate a workspace, attach resources, and optionally link a repository in one call.
link_workspace_to_repoConnect an existing workspace to a repository.
update_workspace_resourcesAdd or remove rulesets, MCP servers, and workflows on a workspace.
trigger_compliance_evaluationStart a compliance run on code already pushed to the linked branch, optionally scoped to one ruleset or a few rules.
setup_workspaceApply 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).

Compliance exceptions

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.

ToolPurpose
list_compliance_exceptionsActive exceptions and requests waiting on an approver.
submit_compliance_exceptionsRequest exceptions for a batch of failing rules, or grant them when an approver says so.
approve_compliance_exceptionApprove a waiting request. Central approvers or optional-exception holders; takes effect immediately.
reject_compliance_exceptionReject a waiting request with a reason. Central approvers or optional-exception holders.
revoke_compliance_exceptionEnd an exception so the rule is enforced again. Central approvers or optional-exception holders.