Skip to content

MCP Setup

This guide walks you through connecting your AI coding assistant to DevFlow using the Model Context Protocol (MCP).

The Model Context Protocol (MCP) is a standard for integrating AI assistants with external tools. Instead of copy-pasting context back and forth, MCP gives the AI agent direct access to structured tools — reading flows, creating tasks, updating progress, and more.

Think of it as giving the AI agent a seat at your desk. It can see your project, understand your tasks, and report its work — all through a well-defined interface.

The DevFlow MCP server is distributed as an npm package. Install and run it with:

Terminal window
npx @devflow/mcp-server

This starts a local MCP server that connects your AI assistant to your DevFlow instance.

Add the DevFlow MCP server to your Claude Code configuration. In your project’s .mcp.json or global MCP settings, add:

{
"mcpServers": {
"devflow": {
"command": "npx",
"args": ["@devflow/mcp-server"]
}
}
}

Once configured, Claude Code will automatically have access to DevFlow tools when you start a session.

Any AI assistant that supports MCP can connect to DevFlow. The setup pattern is the same:

  1. Point the assistant’s MCP configuration to npx @devflow/mcp-server
  2. Ensure the server can reach your DevFlow instance
  3. Authenticate (see below)

The MCP server uses your DevFlow credentials to authenticate. When you first run the server, it will prompt you to log in. Your session is stored locally so you do not need to re-authenticate every time.

The agent inherits your permissions — it can only access projects and flows that you have access to.

Once connected, the AI agent has access to the following tools:

ToolPurpose
flow_listList all flows in a project
flow_getGet details of a specific flow
flow_createCreate a new flow
flow_updateUpdate flow state, submit plans, or deliver results
flow_get_feedbackCheck for user feedback on plans or reviews
task_listList tasks for a flow
task_createCreate tasks to break down work
task_updateMark tasks as complete or update details
devflow_initStart a work session on a flow
searchSearch across flows, tasks, and projects

The agent uses these tools to participate in the full flow lifecycle — from planning through implementation to review.

After setup, verify the connection works by asking your AI assistant to list your flows:

“List my DevFlow flows”

The agent should call flow_list and return your active flows. If you see your project data, the connection is working.

The agent cannot find any flows

  • Verify the MCP server is running
  • Check that you are authenticated
  • Make sure you have at least one project with flows

The agent cannot update flows

  • Ensure the flow is not locked by another agent session
  • Check that the flow is in a state that allows the requested action

Connection errors

  • Verify your DevFlow instance is reachable from the MCP server
  • Check network/firewall settings if running DevFlow on a remote server