Installation
Architecture
The CLI operates on two configuration levels:| Level | Path | Content |
|---|---|---|
| Global | ~/.flowmcp/ | Config, .env with API keys, all imported schemas |
| Local | {project}/.flowmcp/ | Project config, groups with selected tools |
Two Modes
The CLI has two operating modes that control which commands are available:| Mode | Default | Description |
|---|---|---|
| Agent | Yes | Subset of commands for AI agent use (search, add, remove, list, call, run) |
| Dev | No | All commands including validation, testing, schema browsing, and imports |
flowmcp mode agent or flowmcp mode dev.
Agent mode is the default. It exposes only the commands an AI agent needs to discover, activate, and call tools. Switch to Dev mode for schema development and validation workflows.
Commands
Setup
Setup
flowmcp init
Interactive setup that creates global and local configuration. Run this once in each project.- Create
~/.flowmcp/if it does not exist - Optionally import the default schema repository
- Create
.flowmcp/in the current project - Set up a default group
flowmcp status
Show config, sources, groups, and health info.flowmcp mode [agent|dev]
Show or switch the current mode.Discovery
Discovery
Schema Management
Schema Management
flowmcp add <tool-name>
Activate a tool for this project. Adds it to the default group.flowmcp remove <tool-name>
Deactivate a tool from the project.flowmcp list
Show all active tools in the current project.flowmcp import <url> [--branch name]
Import schemas from a GitHub repository. Dev mode only.flowmcp import-registry <url>
Import schemas from a registry URL. Dev mode only.flowmcp update [source-name]
Update schemas from remote registries using hash-based delta sync.Group Management
Group Management
Groups organize tools into named collections. Each project can have multiple groups with one set as default.
List all groups and their tool counts.
Add tools to a group. Creates the group if it does not exist.
Remove tools from a group.
Set the default group used by
flowmcp group list
List all groups and their tool counts.flowmcp group append <name> --tools "refs"
Add tools to a group. Creates the group if it does not exist.flowmcp group remove <name> --tools "refs"
Remove tools from a group.flowmcp group set-default <name>
Set the default group used by call, test, and run commands.Validation & Testing (Dev Mode)
Validation & Testing (Dev Mode)
flowmcp validate [path] [--group name]
Validate schema structure against the FlowMCP specification.flowmcp test project [--route name] [--group name]
Test default group schemas with live API calls.flowmcp test user [--route name]
Test all user-created schemas with live API calls.flowmcp test single <path> [--route name]
Test a single schema file.Execution
Execution
flowmcp call list-tools [--group name]
List available tools in the default or specified group.flowmcp call <tool-name> [json] [--group name]
Call a tool with optional JSON input.flowmcp run [--group name]
Start as an MCP server using stdio transport. This is used for integration with AI agent frameworks like Claude Code.Tool Reference Format
Tools are referenced using thesource/file.mjs format:
Workflow Example
Environment Variables
API keys for schema testing go in~/.flowmcp/.env: