Skip to content

Model Context Protocol (MCP) Server

ALP natively supports Anthropic's Model Context Protocol, allowing modern AI IDEs (like Claude Desktop, Cursor, and Windsurf) to securely query your .alp workspace and understand your architecture in real time.

Installation

The MCP server is provided via the @autonomous-lifecycle-protocol-alp/mcp-server package.

bash
npm install -g @autonomous-lifecycle-protocol-alp/mcp-server

Available Tools

Once connected, your IDE gains access to the following tools:

Core Tools

ToolDescription
alp_list_objectsList all objects, optionally filtered by type (e.g., task, agent, memory)
alp_read_objectRead a specific ALP object by its ID to get detailed instructions, rules, or memory
alp_get_graphGet the full dependency graph of the ALP workspace as a sorted execution order
alp_get_statusGet the current project status (task counts by state: [x], [~], [ ], [!], [?])
alp_validateValidate the ALP workspace to ensure the agent hasn't introduced syntax errors
alp_update_statusUpdate the status of a task (supports the [?] review marker for HITL handoffs)
alp_get_impactGet all downstream nodes affected by a change to a given node
alp_searchFuzzy search across all object IDs and descriptions
alp_delegateCreate a new task assigned to a specific role/agent
alp_decomposeSplit a large task into sub-tasks blocked by the parent
alp_create_taskScaffold a new task .alp file
alp_create_featureScaffold a new feature .alp file

Events & Analytics

ToolDescription
alp_get_eventsRead recent runtime events with optional type filtering and limit
alp_get_analyticsAnalytics summary from state store or event log

Governance & Registry — v4+

ToolDescription
alp_check_policyEvaluate policy decisions — check if a file path or command is permitted by workspace @policy rules
alp_visualizeGenerate a Mermaid DAG diagram of the project dependency graph for embedding in docs or chat
alp_search_registrySearch installed ALP registry packages
alp_get_timelinesRetrieve @timeline scheduling objects and their cron/at triggers

Contracts & Vaults

ToolDescription
alp_get_contractsList all @contract objects and their allow/deny rules
alp_get_vaultsList all @vault objects and their recipient/algorithm metadata

Swarm Marketplace & Event Mesh — v38.0.0

ToolDescription
alp_get_swarm_marketplaceList registered skills from @swarm_marketplace objects, optionally filtered by category
alp_get_event_meshList event mesh topics and recent events from @event_mesh objects

Macro Engine — v37+

ToolDescription
alp_get_macrosList @macro definitions from the workspace
alp_expand_macroExpand a @macro definition by ID and return generated objects

Memory Mesh — v38+

ToolDescription
alp_memory_storeStore a memory node in the workspace memory mesh
alp_memory_queryQuery the memory mesh for relevant memories
alp_memory_statsReturn memory mesh statistics

In addition, the server exposes the workspace .alp files as MCP resources (file:// URIs) so a client can read raw object files directly.

Usage with Claude Desktop

To add ALP to Claude Desktop, edit your claude_desktop_config.json and add the server:

json
{
  "mcpServers": {
    "alp": {
      "command": "alp-mcp",
      "args": []
    }
  }
}

Usage with Cursor

Add to your .cursor/mcp.json in your project root:

json
{
  "mcpServers": {
    "alp": {
      "command": "alp-mcp",
      "args": [],
      "env": {}
    }
  }
}

Usage with Windsurf

Add to your Windsurf MCP configuration (~/.windsurf/mcp.json):

json
{
  "mcpServers": {
    "alp": {
      "command": "alp-mcp",
      "args": []
    }
  }
}

Now, your AI coding assistant can natively read your project's architecture, enforce policies, visualize dependencies, and query task states before writing a single line of code!