Feature request for product/service
Cursor IDE
Describe the request
Currently, all custom subagents (.cursor/agents/*.md) automatically inherit every configured MCP server and every tool within those servers from the parent environment. There is no way to “un-inherit” or scope this.
I am requesting a configuration schema within the subagent frontmatter that allows for granular control over the agent’s toolset.
Problems
- Forced Inheritance: Subagents are “polluted” with dozens of irrelevant tools, wasting context tokens and increasing the risk of model confusion.
- Lack of Permission Control: A subagent designed for “Read Only” tasks still inherits destructive tools (e.g.,
delete_tableorrm_dir) if the parent MCP server provides them. - Token Inefficiency: Large JSON schemas for unused tools are sent in every API call, significantly increasing costs.
Proposed Solution
Allow a mcp_config block in the subagent YAML that supports both server-level and tool-level whitelisting.
Example Syntax
---
name: specialized-subagent
mcp_servers:
- name: "database-server"
tools: ["read_query", "list_tables"] # Only these specific tools
- name: "filesystem"
tools: ["read_file"] # Exclude write/delete tools
---
Expected Benefits
This ensures the subagent only “sees” the specific tools required for its role, leading to:
- Better Security: Prevents accidental or malicious use of destructive tools in read-only subagents
- Lower Costs: Reduces token consumption by excluding irrelevant tool schemas from API calls
- Higher Accuracy: Reduces model confusion by eliminating irrelevant options from the tool context window