Agentic Control Framework (ACF) 标志

Agentic Control Framework (ACF)

社区
FutureAtoms

A powerful CLI and MCP-based task management system for agentic workflows.

发布者FutureAtoms
代码仓库agentic-control-framework
语言JavaScript
复刻数
6
星标数
31
可用工具
0
传输类型stdio, streamable-http
分类
链接
  • 将工具接入 AI 工作流

    Agentic Control Framework (ACF) 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 31 个 Star 和 6 个 Fork。

Agentic Control Framework (ACF)

Author: Abhilash Chadhar (FutureAtoms) Repository: agentic-control-framework

Test Status Test Status Test Status Test Status Test Status Test Status Test Status Test Status Test Status smithery badge

CI

AI‑native orchestration layer (CLI + MCP) with 80+ tools for context engineering—retrieval, code editing, browser automation, terminal orchestration, and persistent memory—designed for Claude Code, Cursor, Codex, and VS Code. This README reflects the current code and tested integrations.

  • CLI entry: bin/acf
  • MCP server: bin/agentic-control-framework-mcp → src/mcp/server.js
  • Example client configs: config/examples/
  • Tests: npm run test:cli, npm test

What’s included

What’s in the box

  • Task manager with priorities, dependencies, subtasks, templates
  • CLI with rich commands
  • MCP server (JSON‑RPC over stdio) tested with Claude Desktop/Code, Cursor, Codex

Key Features:

  • 🔧 80+ Specialized Tools: Task management, filesystem, terminal, browser automation, AppleScript integration
  • 🎯 3 Usage Modes: CLI, Local MCP, Cloud MCP for maximum flexibility
  • 🔗 Universal Compatibility: Works with Claude Code, Cursor, Claude Desktop, VS Code, and any MCP-compatible client
  • ☁️ Cloud-Ready: Deploy to GCP, Railway, Fly.io with auto-scaling
  • 🚀 Production-Ready: Comprehensive test suite coverage across core tools
  • ⚡ High Performance: Average response time 200-1000ms, excellent reliability
  • 🛡️ Security-First: Filesystem guardrails, permission systems, and secure defaults
  • 📋 MCP 2025-03-26 Compliant: Default protocol with tool titles, annotations, and proper capabilities

How ACF Solves Context Engineering

ACF turns the messy, multi-file, multi-step reality of software work into precise, addressable “context units” that LLMs can request, refine, and act on. It does this by combining a task graph, rich context surfaces, retrieval/edit tools, and guardrails — all accessible via CLI and MCP.

  • Task Graph as Source of Truth

    • Each task/subtask has an ID, status, numeric priority (1–1000), dependencies, related files, activity log, timestamps.
    • Priority engine supports time decay and effort weighting to keep “what’s next” dynamically correct.
  • Rich, On‑Demand Context Surfaces

    • getContext returns the exact task/subtask context block (including related files metadata and activity log).
    • generateTaskFiles materializes one Markdown file per task (tasks/), and tasks-table.md gives a project overview.
    • CLI context <id> prints a human summary for humans and LLMs.
  • Retrieval and Editing Tools (for context building and application)

    • Retrieval: search_code, tree, list_directory, get_file_info, read_file/read_multiple_files, read_url.
    • Editing: edit_block applies surgical replacements using explicit old/new blocks (minimizes accidental drift).
    • Execution: terminal tools (execute_command, list_processes, sessions) to verify context assumptions (tests, builds).
  • Synchronization & Freshness

    • File watcher syncs tasks.json and per‑task files; debounced change detection; tasks-table.md kept fresh.
    • Guards: allowedDirectories and readonlyMode restrict the accessible filesystem scope.
  • Planning from Product Docs (optional)

    • parsePrd, expandTask, reviseTasks convert PRDs or change requests into structured tasks via Gemini, then fold back into the task graph for traceable execution.

Together, this provides a repeatable “context loop”: plan → retrieve → edit/verify → update state, with every step addressable by tools so MCP clients (Claude Code, Cursor, Codex, VS Code) can drive it reliably.

End‑to‑End Context Recipes

  • Bootstrap from PRD

    • tools/call: parsePrd { filePath } → tasks created with priorities and dependencies → generateTaskFiles for review.
  • Focus a Model on the Next Action

    • tools/call: getNextTask → get the next actionable task considering dependencies/priority.
    • tools/call: getContext { id } → fetch the task block; then read_file/search_code for surrounding code.
  • Safe, Surgical Code Change

    • Retrieve: search_code to identify exact block; verify with read_file.
    • Apply: edit_block { file_path, old_string, new_string, normalize_whitespace }.
    • Verify: execute_command { command: "npm test" } or suite‑specific commands.
  • Keep Context Fresh

    • start_file_watcher → modify files or tasks → file_watcher_status for stats → stop_file_watcher when done.

Persistent Memory (Activity Logs in tasks.json)

ACF keeps a durable, queryable memory of what the agent (or human) did, when, and why. This persistent memory lives in .acf/tasks.json and per‑task files:

  • What is stored

    • For every task and subtask: createdAt, updatedAt, and activityLog[] entries with timestamped messages.
    • Each change to a task (status, title, description, priority, dependencies, related files) appends a log entry and bumps updatedAt.
    • AI flows (parsePrd, expandTask, reviseTasks) also write clear activity messages.
  • How LLMs write memory

    • CLI: include --message "..." when changing state to append a human/LLM note to the activity log.
      • Examples:
        • acf status 12 inprogress --message "Started implementing parser"
        • acf update 12 --priority 750 --message "Raised priority due to deadline"
    • MCP: pass message in tools/call arguments for updateStatus or updateTask.
      • tools/call { name: "updateStatus", arguments: { id: "12", newStatus: "done", message: "Tests green; merging" } }
      • tools/call { name: "updateTask", arguments: { id: "12", priority: 820, message: "Escalated after stakeholder review" } }
  • How to consume memory

    • acf context <id> (CLI) prints a rich, human‑readable context including the recent activityLog.
    • tools/call: getContext { id } (MCP) returns the same structured block, ideal for LLM prompts.
    • generateTaskFiles produces markdown snapshots; tasks-table.md shows a live overview synced from .acf/tasks.json via the file watcher.

Quick Start

  • Requirements

    • Node.js 18+
    • macOS for AppleScript tools (optional). Playwright browsers if using browser tools: npx playwright install.
  • Install

    • cd agentic-control-framework && npm ci
  • CLI (local)

    • ./bin/acf init --project-name "Demo" --project-description "Getting started"
    • ./bin/acf add -t "First task" -p high
    • ./bin/acf list --format human
  • MCP Server (stdio)

    • node ./bin/agentic-control-framework-mcp --workspaceRoot $(pwd)
    • Use example client configs in config/examples/ for Claude Code, Cursor, and Codex.

Documentation

  • Overview

    • Primary docs index: docs/README.md
    • Project structure: docs/PROJECT-STRUCTURE.md
    • Architecture overview: docs/architecture/overview.md
    • MCP integration details: docs/architecture/mcp-integration.md
  • Integrations (MCP Clients)

    • Connection guides: docs/INTEGRATIONS.md
    • Example configs:
      • Claude Code (VS Code): config/examples/claude_code.json
      • Cursor (project/global): config/examples/cursor.mcp.json
      • Codex CLI (TOML): config/examples/codex.config.toml
    • Claude helper (dev notes): CLAUDE.md
  • Reference

    • CLI complete examples: docs/reference/cli_examples.md
    • MCP request/response examples (auto‑generated): docs/reference/mcp_examples.md
  • Testing & Validation

    • Test summary and notes: docs/TESTING_SUMMARY.md
    • Doc command validator: scripts/testing/validate-doc-commands.sh
  • Proposals & Ideas

    • Workspace indexing proposal: docs/workspace-indexing-proposal.md

MCP tools (implemented)

Tool Categories Overview

Core task tools

  • initProject, addTask, addSubtask, listTasks, updateTask, updateStatus, removeTask, getNextTask
  • generateTaskFiles, recalculatePriorities, getPriorityStatistics, getDependencyAnalysis
  • getPriorityTemplates, calculatePriorityFromTemplate, suggestPriorityTemplate, addTaskWithTemplate

Utilities

  • read_file, write_file
  • execute_command (stub for tests)

Note: Tools are advertised via tools/list from src/mcp/server.js, and each listed tool has a handler in the server.

Configuration

  • Core environment variables

    • WORKSPACE_ROOT: default workspace path used by CLI/MCP
    • ALLOWED_DIRS: additional allowed directories (path-delimited)
    • READONLY_MODE: set to true to disable write operations
    • ACF_PATH: project root override for bins
  • Optional/feature flags

    • GEMINI_API_KEY: enable AI-backed tools (parsePrd, expandTask, reviseTasks)
    • ACF_SKIP_POSTINSTALL=1: skip all postinstall steps
    • ACF_SKIP_PLAYWRIGHT=1: skip heavy Playwright browser downloads
    • ACF_INSTALL_SHARP=1 or ACF_INSTALL_ALL=1: install optional sharp
    • ACF_ENABLE_BROWSER_TOOLS=1: enable Playwright browser tests (macOS default)
    • ACF_ENABLE_APPLESCRIPT=1: enable AppleScript tests (macOS only)

Security & Guardrails

  • Filesystem access is constrained by allowedDirectories and readonlyMode.
  • URL reads (read_url) are explicit; edits use edit_block with old/new content to minimize unintended changes.
  • Terminal execution supports blocked commands and timeouts; sessions can be listed/terminated.

CLI commands (high level)

  • init, add, list, add-subtask, status, next, update, remove, context
  • update-subtask, bump, defer, prioritize, deprioritize
  • recalculate-priorities, priority-stats, dependency-analysis
  • start-file-watcher, stop-file-watcher, file-watcher-status, force-sync
  • list-templates, suggest-template, calculate-priority, add-with-template

Terminal Tools (6 tools) ✅

Command Execution:
- execute_command: Run shell commands with timeout
- read_output: Read from running processes
- force_terminate: Kill processes
- list_sessions: Show active terminal sessions
- list_processes: Show running processes
- kill_process: Terminate processes

Browser Automation Tools (25 tools) ✅

Navigation:
- browser_navigate: Navigate to URLs
- browser_navigate_back: Go back
- browser_navigate_forward: Go forward
- browser_close: Close browser

Interaction:
- browser_click: Click elements
- browser_type: Type text
- browser_hover: Hover over elements
- browser_drag: Drag and drop
- browser_select_option: Select dropdown options
- browser_press_key: Keyboard input

Capture:
- browser_take_screenshot: Screenshots
- browser_snapshot: Accessibility snapshots
- browser_pdf_save: Save as PDF

Management:
- browser_tab_list: List browser tabs
- browser_tab_new: Open new tabs
- browser_tab_select: Switch tabs
- browser_tab_close: Close tabs
- browser_file_upload: Upload files
- browser_wait: Wait for time/conditions
- browser_resize: Resize window
- browser_handle_dialog: Handle alerts/dialogs
- browser_console_messages: Get console logs
- browser_network_requests: Monitor network

Search & Edit Tools (2 tools) ✅

Code Operations:
- search_code: Advanced text/code search with ripgrep
- edit_block: Surgical text replacements

AppleScript Tools (1 tool) ✅

macOS Automation:
- applescript_execute: Run AppleScript for system integration

Configuration Tools (2 tools) ✅

Server Management:
- get_config: Get server configuration
- set_config_value: Update configuration values

MseeP.ai Security Assessment Badge

Project structure

The repository is organized following standard practices with clean separation of concerns:

agentic-control-framework/
├── 📁 bin/           # CLI executables and entry points
├── 📁 src/           # Core source code and tool implementations
├── 📁 docs/          # Comprehensive documentation (organized by category)
├── 📁 test/          # Testing infrastructure and test suites
├── 📁 config/        # Configuration files and examples
├── 📁 scripts/       # Setup, deployment, and maintenance scripts
├── 📁 deployment/    # Cloud deployment configurations
├── 📁 tasks/         # Task management files
├── 📁 templates/     # Project templates
├── 📁 public/        # Static assets
└── 📁 data/          # Data directory

See also: docs/PROJECT-STRUCTURE.md

Integrations

Use the ready-to-copy templates in config/examples/.

  • Claude Desktop: claude.json
  • Claude Code (VS Code): config/examples/claude_code.json
  • Cursor: config/examples/cursor.mcp.json
  • Codex: config/examples/codex.config.toml

More details: docs/INTEGRATIONS.md

☁️ Cloud Deployment

Testing

  • MCP tests: npm test
  • CLI tests: npm run test:cli
  • Coverage: npm run coverage:all

Environment flags

  • ACF_SKIP_POSTINSTALL=1 to skip all postinstall steps
  • ACF_SKIP_PLAYWRIGHT=1 to skip Playwright browser downloads on install
  • ACF_INSTALL_SHARP=1 (or ACF_INSTALL_ALL=1) to install optional sharp
  • ACF_ENABLE_BROWSER_TOOLS=1 to enable Playwright browser tests (macOS only by default)
  • ACF_ENABLE_APPLESCRIPT=1 to enable AppleScript tests (macOS only)

Platform gating (CI-safe by default)

  • Browser and AppleScript MCP tests are skipped by default and on Windows/Linux.
  • To run them locally on macOS, set the corresponding ACF_ENABLE_* env vars.
  • Google Cloud Run - GCP deployment
  • Docker - Container deployment
  • Remote Setup - Remote client configuration

🧪 Testing & Quality

🏗️ Technical Reference

📋 Complete Documentation Index

📊 Current Status

ComponentStatusDetails
CLI Mode✅ 100% WorkingAll task management and core tools functional
Local MCP✅ 100% WorkingAll core tools verified via MCP protocol
Cloud MCP✅ 100% Workingmcp-proxy integration, HTTP/SSE transport verified
IDE Integrations✅ 100% WorkingCursor, Claude Desktop, Claude Code, VS Code tested
Core ACF Tools✅ 25/25 WorkingTask management, priority system, file generation
Filesystem Tools✅ 14/14 WorkingFile operations, directory management, search
Browser Tools✅ 25/25 WorkingPlaywright automation, screenshots, PDF generation
Terminal Tools✅ 6/6 WorkingCommand execution, process management
Search/Edit Tools✅ 3/3 WorkingCode search with ripgrep, surgical editing
System Tools✅ 7/7 WorkingAppleScript, configuration management
MCP Protocol✅ SupportedJSON-RPC 2.0; MCP 2025-03-26 (default) and 2024-11-05

All tests passing! See ACF-TESTING-SUMMARY.md for detailed test results

🧪 Test Results & Quality Assurance

Latest Test Run: 100% Pass Rate (All Tests Passing)

✅ Comprehensive Test Coverage

  • CLI Tool Tests: ✅ PASSED - All task management operations working
  • Local MCP Tool Tests: ✅ PASSED - 3/3 core tests, 100% success rate
  • stdio MCP Tool Tests: ✅ PASSED - 25/25 comprehensive tests, 100% success rate
  • Specialized Tool Tests: ✅ PASSED - Filesystem, Browser, AppleScript, Search, Edit tools
  • Integration Tests: ✅ PASSED - MCP proxy, client configurations, SSE endpoints
  • End-to-End Tests: ✅ PASSED - System health check, all modules loading

📊 Performance Metrics

  • Average Response Time: 24ms
  • Maximum Response Time: 439ms
  • No Slow Responses: 0 responses >1s
  • No Large Responses: 0 responses >10KB
  • Quality Assessment: EXCELLENT (100% pass rate)

🔧 Validated Features

  • Task management workflow with dependencies
  • Priority system and recalculation
  • MCP protocol compliance and communication
  • Browser automation with Playwright
  • AppleScript integration (macOS)
  • Filesystem operations with security guardrails
  • Search and edit tool functionality
  • Client configuration generation (Cursor, Claude Desktop, VS Code)

🧪 Testing & Verification

Comprehensive Testing Completed (January 2025)

ACF has undergone extensive testing to ensure production readiness:

Tool Verification ✅

  • Extensive tool testing: Core tools verified via MCP protocol
  • 100% Success Rate: All tools working correctly across all categories
  • Performance Validated: Average 4ms response time, no slow responses

IDE Integration Testing ✅

  • Claude Code: 15/15 compatibility tests passed
  • Cursor IDE: Configuration and tool discovery verified
  • Claude Desktop: SSE transport and mcp-proxy integration tested
  • VS Code: Cline and Continue extension configurations verified

Protocol Compliance ✅

  • MCP 2025-03-26: Default protocol version; backward compatible with 2024-11-05
  • JSON-RPC 2.0: Full protocol implementation
  • Error Handling: Standard error codes and graceful degradation

📊 View Complete Testing Report

🚀 Quick Start

📋 Need detailed setup instructions? See our comprehensive Platform Setup Guide for Windows, macOS, and Ubuntu with step-by-step instructions.

Prerequisites

bash
# Install Node.js 22+ (LTS)
node --version

# Install dependencies
npm install

# Install global MCP dependencies (for IDE integration)
npm install -g mcp-proxy @modelcontextprotocol/inspector

# Install browser dependencies (for automation tools)
npx playwright install

# Make CLI tools executable (macOS/Linux)
chmod +x bin/*

⚙️ Configuration Setup

Copy and customize configuration templates:

bash
# Copy configuration templates
cp config/examples/config.json ./config.json
cp config/examples/claude-mcp-config.json ./claude-mcp-config.json

# Update paths in configuration files
export ACF_PATH="$(pwd)"
export WORKSPACE_ROOT="$(pwd)"

# Replace placeholders (Linux/macOS)
sed -i 's|${ACF_PATH}|'$ACF_PATH'|g' *.json
sed -i 's|${WORKSPACE_ROOT}|'$WORKSPACE_ROOT'|g' *.json

# Or set environment variables instead
echo 'export ACF_PATH="'$(pwd)'"' >> ~/.bashrc
echo 'export WORKSPACE_ROOT="'$(pwd)'"' >> ~/.bashrc

📋 Need help with configuration? See config/README.md for detailed setup instructions.

🚀 Start ACF Server

Choose your preferred mode:

Option 1: CLI Mode (Direct Commands)

bash
# Initialize project
./bin/acf init --project-name "My Project" --project-description "Getting started with ACF"

# Start using CLI commands
./bin/acf add --title "First Task" --description "Test ACF functionality" --priority high
./bin/acf list

MCP server (for IDEs)

bash
node ./bin/agentic-control-framework-mcp --workspaceRoot $(pwd)

Option 3: Cloud MCP Mode (Remote Access)

bash
# Terminal 1: Start ACF MCP Server
node ./bin/agentic-control-framework-mcp --workspaceRoot $(pwd)

# Terminal 2: Start mcp-proxy for HTTP/SSE access
mcp-proxy --port 8080 node ./bin/agentic-control-framework-mcp --workspaceRoot $(pwd)

# Server available at http://localhost:8080

✅ Verify Installation

bash
# Test CLI functionality
./bin/acf --help

# Test MCP server (in separate terminal)
curl -X POST http://localhost:8080/stream -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"ping"}'  # If using mcp-proxy

# Run test suite
npm test

📋 Usage Modes

Usage Mode Comparison

1. 🖥️ CLI Mode (100% Working)

Perfect for: Automated scripts, local development, CI/CD integration

Basic Task Management

bash
# Initialize project
cd your-project
./path/to/acf/bin/acf init -n "My Project" -d "Project description"

# Add tasks
./path/to/acf/bin/acf add -t "Implement feature" -d "Add new functionality" -p high

# List tasks
./path/to/acf/bin/acf list

# Update task status
./path/to/acf/bin/acf status 1 inprogress -m "Started working"

# Add subtasks
./path/to/acf/bin/acf add-subtask 1 -t "Write tests"

# Get next actionable task
./path/to/acf/bin/acf next

# Generate task files
./path/to/acf/bin/acf generate

Advanced CLI Usage

bash
# Update task details
./path/to/acf/bin/acf update 1 -p medium --related-files "src/main.js,test/main.test.js"

# Get task context
./path/to/acf/bin/acf get-context 1

# Remove completed tasks
./path/to/acf/bin/acf remove 1

# Generate markdown table
./path/to/acf/bin/acf list --table

🎯 Numerical Priority System (1-1000)

ACF features a sophisticated numerical priority system that replaces traditional 4-level priorities with a flexible 1-1000 scale, providing fine-grained control and intelligent dependency management.

Priority System Architecture

Priority Ranges

  • 🟢 Low (1-399): Documentation, cleanup, nice-to-have features
  • 🟡 Medium (400-699): Standard development work, regular features
  • 🔴 High (700-899): Important features, significant bugs, urgent tasks
  • 🚨 Critical (900-1000): Security fixes, blocking issues, production emergencies

Basic Priority Usage

bash
# Using numerical priorities (1-1000)
./bin/acf add "Critical security fix" --priority 950
./bin/acf add "Feature implementation" --priority 650
./bin/acf add "Documentation update" --priority 200

# Using string priorities (backward compatible)
./bin/acf add "Bug fix" --priority high
./bin/acf add "Cleanup task" --priority low

Priority Manipulation Commands

bash
# Increase priority by amount
./bin/acf bump 123 --amount 100

# Decrease priority by amount
./bin/acf defer 123 --amount 50

# Set to high priority range (700-899)
./bin/acf prioritize 123

# Set to low priority range (1-399)
./bin/acf deprioritize 123

# View priority statistics and distribution
./bin/acf priority-stats

# Analyze dependencies and critical paths
./bin/acf dependency-analysis

# Trigger intelligent priority recalculation
./bin/acf recalculate-priorities

Advanced Priority Features

  • 🔄 Automatic Uniqueness: Every task gets a unique priority value
  • 📈 Dependency Boosts: Tasks with dependents automatically get priority increases
  • 🔗 Critical Path Analysis: Identifies and prioritizes bottleneck tasks
  • ⚡ Intelligent Recalculation: Optimizes priorities based on dependencies and time
  • 📊 Distribution Optimization: Prevents priority clustering and maintains meaningful differences

Priority Display Formats

bash
# Clean table format (default)
./bin/acf list --table
┌─────┬────────────────────┬──────────┐
│ ID  │ Title              │ Priority │
├─────┼────────────────────┼──────────┤
│ 24  │ Critical Bug Fix   │ 950      │
│ 25  │ Feature Request    │ 650      │
└─────┴────────────────────┴──────────┘

# Human-readable with distribution stats
./bin/acf list --human
📊 Priority Distribution:
🚨 Critical (900+): 2 | 🔴 High (700-899): 5 | 🟡 Medium (500-699): 8 | 🟢 Low (<500): 3

For complete documentation, see:

Automation Examples

bash
# Daily standup automation
#!/bin/bash
echo "📊 Daily Standup Report"
echo "======================="
./bin/acf list --status inprogress
echo ""
echo "Next Priority Tasks:"
./bin/acf next

# CI/CD Integration
#!/bin/bash
# In your CI pipeline
./bin/acf add -t "Deploy v$VERSION" -d "Deploy to production" -p high
./bin/acf status $TASK_ID done -m "Deployed successfully"

2. 🔗 Local MCP Mode (100% Working)

Perfect for: IDE integration (Cursor, Claude Desktop, Claude Code), local development

Cursor Configuration

Option 1: Via Cursor Settings UI (Recommended)

  1. Open Cursor → Settings → MCP
  2. Add new server:
    • Name: acf-local
    • Command: node
    • Args: ["/path/to/agentic-control-framework/bin/agentic-control-framework-mcp", "--workspaceRoot", "/path/to/your/project"]
    • Environment:
      json
      {
        "WORKSPACE_ROOT": "/path/to/your/project",
        "ALLOWED_DIRS": "/path/to/your/project:/tmp",
        "READONLY_MODE": "false"
      }

Option 2: Via settings.json

json
{
  "mcp.servers": {
    "acf-local": {
      "command": "node",
      "args": [
        "/path/to/agentic-control-framework/bin/agentic-control-framework-mcp",
        "--workspaceRoot",
        "/path/to/your/project"
      ],
      "env": {
        "WORKSPACE_ROOT": "/path/to/your/project",
        "ALLOWED_DIRS": "/path/to/your/project:/tmp",
        "READONLY_MODE": "false"
      }
    }
  }
}

Claude Desktop Configuration

⚠️ IMPORTANT: Use ONLY the Direct Executable Method - This is the ONLY method confirmed to work reliably

Configuration File Location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Configuration (replace with your actual paths):

json
{
  "mcpServers": {
    "agentic-control-framework": {
      "command": "/FULL/PATH/TO/agentic-control-framework/bin/agentic-control-framework-mcp",
      "env": {
        "ACF_PATH": "/FULL/PATH/TO/agentic-control-framework",
        "WORKSPACE_ROOT": "/FULL/PATH/TO/YOUR/WORKSPACE",
        "ALLOWED_DIRS": "/FULL/PATH/TO/YOUR/WORKSPACE:/tmp",
        "READONLY_MODE": "false",
        "BROWSER_HEADLESS": "false",
        "DEFAULT_SHELL": "/bin/bash"
      }
    }
  }
}

⚠️ CRITICAL REQUIREMENTS:

  • Use FULL ABSOLUTE PATHS - no relative paths or ~
  • Set ACF_PATH to your ACF installation directory
  • Set WORKSPACE_ROOT to your project workspace
  • Ensure bin/agentic-control-framework-mcp is executable: chmod +x bin/agentic-control-framework-mcp
  • ❌ DO NOT USE the node + args pattern - it fails in Claude Desktop

Claude Code Configuration

Option 1: Using Claude MCP commands (Recommended)

Configure ACF as an MCP server using Claude's built-in commands:

bash
# Navigate to your project directory
cd your-project-directory

# Add ACF as an MCP server
claude mcp add acf-server \
  -e ACF_PATH="/path/to/agentic-control-framework" \
  -e WORKSPACE_ROOT="$(pwd)" \
  -e READONLY_MODE="false" \
  -e BROWSER_HEADLESS="false" \
  -e DEFAULT_SHELL="/bin/bash" \
  -e NODE_ENV="production" \
  -- node /path/to/agentic-control-framework/bin/agentic-control-framework-mcp --workspaceRoot "$(pwd)"

# Start Claude with ACF tools available
claude

Option 2: Manual configuration

Add to your Claude Code MCP settings:

json
{
  "mcpServers": {
    "agentic-control-framework": {
      "type": "stdio",
      "command": "node",
      "args": [
        "/path/to/agentic-control-framework/bin/agentic-control-framework-mcp",
        "--workspaceRoot",
        "/path/to/your/project"
      ],
      "env": {
        "ACF_PATH": "/path/to/agentic-control-framework",
        "WORKSPACE_ROOT": "/path/to/your/project",
        "READONLY_MODE": "false",
        "BROWSER_HEADLESS": "false",
        "DEFAULT_SHELL": "/bin/bash",
        "NODE_ENV": "production"
      }
    }
  }
}

Option 3: Project-scoped setup

For team collaboration with shared MCP configuration:

bash
# Navigate to your project directory
cd /path/to/your/project

# Add ACF as project-scoped MCP server (shared with team)
claude mcp add acf-project -s project \
  -e ACF_PATH="/path/to/agentic-control-framework" \
  -e WORKSPACE_ROOT="$(pwd)" \
  -e READONLY_MODE="false" \
  -- node /path/to/agentic-control-framework/bin/agentic-control-framework-mcp --workspaceRoot "$(pwd)"

# This creates a .mcp.json file that can be committed to version control
# Team members can then use: claude

# Start Claude with shared ACF tools
claude

Usage Examples in IDE

Once configured, you can use natural language with your AI assistant:

"Add a new high-priority task for implementing user authentication"

"Create a critical priority task (950) for fixing the security vulnerability"

"List all tasks that are currently in progress"

"Show me priority statistics and distribution of all tasks"

"Bump the priority of task #123 by 100 points"

"Analyze dependencies and show me the critical path"

"Read the contents of src/main.js and create a task for adding error handling"

"Execute the test suite and create a task if there are failures"

"Search for all TODO comments in the codebase and create tasks for them"

"Take a screenshot of the application login page"

"Write a new file called docs/api.md with API documentation"

"Recalculate all task priorities with dependency boosts enabled"

Available Tools in MCP Mode

CategoryToolsStatus
Task ManagementlistTasks, addTask, updateStatus, getNextTask, priority tools✅ Working
Filesystemread_file, write_file, list_directory, search_files✅ Working
Terminalexecute_command, list_processes, kill_process✅ Working
Browsernavigate, click, type, screenshot, pdf_save✅ Working
Search/Editsearch_code, edit_block✅ Working
AppleScriptapplescript_execute (macOS only)✅ Working

3. ☁️ Cloud MCP Mode (100% Working)

Perfect for: Remote access, web clients, multi-client support

Setup Cloud Deployment

Local Development with mcp-proxy

bash
# Install mcp-proxy
npm install -g mcp-proxy

# Start ACF with mcp-proxy
export WORKSPACE_ROOT="/path/to/your/project"
export ALLOWED_DIRS="/path/to/your/project:/tmp"

mcp-proxy --port 8080 node bin/agentic-control-framework-mcp --workspaceRoot "$WORKSPACE_ROOT"

Test HTTP/SSE Endpoints

bash
# Test connectivity (should return error about session ID - this is expected)
curl -X POST http://localhost:8080/stream \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"ping"}'

# MCP initialization (requires proper session handling)
curl -X POST http://localhost:8080/stream \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}'

# List available tools
curl -X POST http://localhost:8080/stream \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'

# Call a tool
curl -X POST http://localhost:8080/stream \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"listTasks","arguments":{}}}'

Cursor Configuration for Cloud Mode

json
{
  "mcp.servers": {
    "acf-cloud": {
      "transport": "sse",
      "endpoint": "http://localhost:8080/sse"
    }
  }
}

Deploy to Google Cloud Platform

bash
# Authenticate
gcloud auth login

# Create project
gcloud projects create acf-your-name-$(date +%s)
export GCP_PROJECT_ID="your-project-id"

# Deploy
./quick-deploy.sh gcp --proxy-only

📚 Example Use Cases

1. Automated Project Setup

bash
# CLI approach
./bin/acf init -n "E-commerce App" -d "Build online store"
./bin/acf add -t "Setup project structure" -p high
./bin/acf add -t "Configure database" -p high
./bin/acf add -t "Implement user auth" -p medium
./bin/acf add -t "Add payment integration" -p medium
./bin/acf add -t "Deploy to production" -p low

2. Code Review Automation

javascript
// MCP approach - ask your AI assistant:
"Search the codebase for any TODO comments and create tasks for each one"
"Read all JavaScript files in src/ and create tasks for any functions missing error handling"
"Take a screenshot of the app and create a task for any UI issues you notice"

3. CI/CD Integration

bash
#!/bin/bash
# In your GitHub Actions workflow
- name: Update project tasks
  run: |
    ./bin/acf add -t "Test release v${{ github.event.release.tag_name }}" -p high
    ./bin/acf status $TASK_ID inprogress -m "Running tests for ${{ github.sha }}"
    
    # Run tests
    npm test
    
    if [ $? -eq 0 ]; then
      ./bin/acf status $TASK_ID done -m "Tests passed"
    else
      ./bin/acf status $TASK_ID error -m "Tests failed"
    fi

4. Browser Testing Automation

javascript
// Via MCP in your IDE
"Navigate to our staging site and take screenshots of the login, dashboard, and profile pages"
"Fill out the contact form with test data and take a screenshot of the success page"
"Test the mobile responsiveness by resizing to phone dimensions and taking screenshots"

🔧 Development & Testing

Run Tests

bash
# Comprehensive test suite
node test-simple-tools.js

# Individual component tests
./test-all-tools-comprehensive.sh

Development Setup

bash
# Clone repository
git clone https://github.com/your-org/agentic-control-framework.git
cd agentic-control-framework

# Install dependencies
npm install

# Setup development environment
chmod +x bin/*
export WORKSPACE_ROOT="$(pwd)"
export ALLOWED_DIRS="$(pwd):/tmp"

# Test CLI mode
./bin/acf list

# Test MCP mode
node bin/agentic-control-framework-mcp

🐛 Troubleshooting

CLI Mode Issues

bash
# Check if tasks.json exists
ls -la tasks.json

# Verify permissions
chmod +x bin/acf

# Check Node.js version
node --version  # Should be 22+

MCP Mode Issues

bash
# Check environment variables
echo $WORKSPACE_ROOT
echo $ALLOWED_DIRS

# Test MCP server directly
node bin/agentic-control-framework-mcp --help

# Check file permissions
ls -la bin/agentic-control-framework-mcp

Cloud Mode Issues

bash
# Check mcp-proxy installation
npm list -g mcp-proxy

# Test proxy connectivity
curl -X POST http://localhost:8080/stream -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"ping"}'

# Check proxy logs
mcp-proxy --port 8080 --debug node bin/agentic-control-framework-mcp --workspaceRoot $(pwd)

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Test your changes: node test-simple-tools.js
  4. Commit your changes: git commit -m 'Add amazing feature'
  5. Push to the branch: git push origin feature/amazing-feature
  6. Open a Pull Request

Testing Guidelines

  • All new tools must have CLI, MCP, and Cloud tests
  • Maintain or improve the current test coverage (68%+)
  • Add examples to this README for new functionality

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • MCP Protocol: For standardized AI-tool communication
  • Playwright: For browser automation capabilities
  • Commander.js: For excellent CLI interface
  • mcp-proxy: For HTTP/SSE bridge functionality

🚀 Ready to build your autonomous agent? Choose your mode and get started!

ModeUse CaseSetup TimeStatusTest Results
CLIScripts, automation2 minutes✅ Production Ready100% Pass Rate
Local MCPIDE integration5 minutes✅ Production Ready25/25 Tests Passing
Cloud MCPRemote access15 minutes✅ Production ReadyFull Integration Verified

For detailed test results and improvement roadmap, see ACF-TESTING-SUMMARY.md.

安装

TypingMind
{
  "mcpServers": {
    "agentic-control-framework": {
      "command": "node",
      "args": [
        "./bin/agentic-control-framework-mcp"
      ]
    }
  }
}

将 Agentic Control Framework (ACF) MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Agentic Control Framework (ACF) 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 您可以在自己的设备上本地运行 MCP,也可以通过 URL 连接远程 MCP 服务器。

方式 1:使用本地连接器

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Agentic Control Framework (ACF) 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Agentic Control Framework (ACF) MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "agentic-control-framework": {
      "command": "npx",
      "args": [
        "-y",
        "agentic-control-framework"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Agentic Control Framework (ACF) MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Agentic Control Framework (ACF) MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Agentic Control Framework (ACF) 帮我完成这项任务吗?
Agentic Control Framework (ACF)
当然。我已阅读。
以下是我使用 Agentic Control Framework (ACF) 得到的结果。

方式 2:添加 MCP 服务器 URL

如果 Agentic Control Framework (ACF) 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 提供商提供的 MCP 服务器 URL。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 提供商提供的 MCP 服务器 URL 粘贴到“服务器 URL”字段中。
  2. 为 Agentic Control Framework (ACF) 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接显示为“有效”。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认 Agentic Control Framework (ACF) 连接显示为“有效”。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 Agentic Control Framework (ACF) 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 Agentic Control Framework (ACF) 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Agentic Control Framework (ACF) 帮我完成这项任务吗?
Agentic Control Framework (ACF)
当然。我已阅读。
以下是我使用 Agentic Control Framework (ACF) 得到的结果。

常见问题

Agentic Control Framework (ACF) MCP 服务器有什么用途?

Agentic Control Framework (ACF) 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Agentic Control Framework (ACF) MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Agentic Control Framework (ACF),而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Agentic Control Framework (ACF) MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Agentic Control Framework (ACF) 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Agentic Control Framework (ACF) MCP 连接到 TypingMind?

您可以通过本地 MCP 连接器,或添加远程 MCP 服务器 URL,在 TypingMind 中连接 Agentic Control Framework (ACF)。当服务器需要访问您设备上的文件、应用或私有资源时,请使用本地连接器;当 MCP 服务器托管在远程时,请使用服务器 URL。

Agentic Control Framework (ACF) MCP 在 TypingMind 中提供哪些工具?

Agentic Control Framework (ACF) 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Agentic Control Framework (ACF) MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Agentic Control Framework (ACF) 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇