About scope-guard
scope-guard is an MCP server for enforcing boundaries in multi-agent systems. It checks actions against scope contracts and identifies delegation loops and duplicated work from agent activity logs.
Key features
- 01Define tool, file, and delegation limits
- 02Check actions against scope contracts
- 03Detect circular delegation chains
- 04Log agent actions for compliance
- 05Generate per-agent compliance reports
- 06Find duplicated work across agents
Use cases
- 01Restrict which tools an agent may use
- 02Check file access before an action
- 03Investigate repeated delegation patterns
- 04Identify duplicated work in action logs
MCP support
It exposes scope-contract, action validation, delegation-loop, logging, compliance, and duplication tools to MCP clients, plus a resource listing active contracts.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEscope-guard-mcp
MCP server that enforces multi-agent scope boundaries. Prevents scope drift, work duplication, and infinite delegation loops in agentic systems.
Tools
| Tool | Purpose |
|---|---|
create_scope_contract | Define agent boundaries: allowed/forbidden tools, file access patterns, delegation limits |
validate_action | Pre-flight check — is a tool call or file access within scope? |
detect_delegation_loop | Analyze delegation chains for circular patterns |
log_agent_action | Track agent actions for compliance monitoring |
get_compliance_report | Per-agent summary: actions, violations, delegation count, scope utilization % |
detect_work_duplication | Find agents doing the same work across action logs |
Resources
| URI | Description |
|---|---|
scope-guard://contracts | All active scope contracts |
Install
npm install
node src/index.js
Claude Desktop
{
"mcpServers": {
"scope-guard": {
"command": "npx",
"args": ["scope-guard-mcp"]
}
}
}
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.