Allows integration with n8n automation workflows to trigger coding tasks and file modifications programmatically via HTTP requests.
Facilitates automated bug fixing and integration testing by running Pytest suites and capturing execution output through command execution tools.
Enables the execution of autonomous coding tasks within Temporal workflows for durable and persistent agentic workflows.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Claude Code Control MCPrefactor the login logic in auth.py to include better error handling"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Claude Code Control MCP Server
Claude Code automation and control for agentic workflows.
Part of the Agentic System - a 24/7 autonomous AI framework with persistent memory.
Programmatic task execution using Claude AI for autonomous coding workflows.
Overview
The Claude Code Control MCP enables programmatic code task execution through the Model Context Protocol. It provides a bridge for AI agents and workflows to execute coding tasks using Claude Sonnet 4.5, with comprehensive file tracking, command execution, and status monitoring.
Features
Programmatic Task Execution: Execute natural language coding tasks autonomously
File Operations: Read, write, edit, and track file changes
Code Search: Grep-like search across codebases
Command Execution: Run shell commands with output capture
Change Tracking: Monitor all file modifications during execution
Status Monitoring: Real-time execution status and history
Architecture
Installation
Install dependencies:
Set API key:
Register with Claude Code:
Add to ~/.claude.json:
Restart Claude Code:
MCP Tools
execute_code_task
Execute a coding task using Claude AI with autonomous tool use.
Input:
Output:
read_codebase
Read and analyze multiple files using glob patterns.
Input:
Output:
search_code
Search for code patterns across the codebase.
Input:
Output:
modify_files
Modify multiple files with batch operations.
Input:
Output:
run_commands
Execute shell commands with output capture.
Input:
Output:
get_execution_status
Get status of current or recent execution.
Input:
Output:
Usage Examples
Example 1: Automated Code Refactoring
Example 2: Autonomous Bug Fixing
Example 3: Integration Testing
Integration Points
Temporal Workflows
n8n Workflows
Use HTTP Request node to call MCP server:
Intelligent Agents
File Tracking
The MCP server tracks all file changes during execution:
Created files: New files written
Modified files: Existing files changed
Deleted files: Files removed
Read files: Files accessed for reading
Changes include:
File hashes (SHA256)
Size changes
Timestamps
Line change statistics (when available)
Error Handling
The server handles errors gracefully:
Tool execution errors: Returned with error details
File operation errors: Logged and returned to caller
Command execution errors: Exit codes and stderr captured
API errors: Anthropic API errors propagated with context
Security Considerations
API Key Management: Store
ANTHROPIC_API_KEYsecurelyFile Access: Limited to specified working directories
Command Execution: Shell commands run with user permissions
Input Validation: All inputs validated before execution
Output Sanitization: Sensitive data filtered from outputs
Performance
Typical task execution: 5-30 seconds
File operations: < 1 second per file
Code search: < 5 seconds for large codebases
Memory usage: ~50-100MB during execution
Troubleshooting
Server won't start
Tool execution fails
File tracking issues
Development
Running Tests
Adding New Tools
Add tool definition to
list_tools()Implement handler in
call_tool()Update documentation
Add tests
Debugging
Enable debug logging:
Roadmap
Batch task execution
Task queuing and scheduling
Integration with enhanced-memory MCP
Code analysis tools (complexity, coverage)
Git integration (commit, push, PR creation)
Multi-file refactoring support
Streaming execution updates
Web UI for monitoring
Contributing
Contributions welcome! Areas for improvement:
Additional tool implementations
Performance optimizations
Enhanced error handling
Documentation improvements
Test coverage
License
Part of the agentic-system project. See main LICENSE file.
Support
For issues and questions:
Check logs:
~/.claude/logs/Review MCP documentation: https://modelcontextprotocol.io
Anthropic API docs: https://docs.anthropic.com
Related Documentation
Part of the MCP Ecosystem
This server integrates with other MCP servers for comprehensive AGI capabilities:
Server | Purpose |
4-tier persistent memory with semantic search | |
Persistent task queues and goal decomposition | |
Full AGI orchestration with 21 tools | |
Distributed task routing across nodes | |
Inter-node AI communication | |
Production-only policy enforcement |
See agentic-system-oss for the complete framework.