MCP Integration
Learn how Flanner integrates with Claude Code through the Model Context Protocol (MCP) to provide seamless plan file management.
Overview
Flanner features automatic Claude Code integration! The MCP server is automatically registered with Claude Code when you run flanner init, making it seamless to use plan file management directly from Claude.
Features
Automatic Registration
- ✅ Auto-detect Claude Code installation
- ✅ Auto-configure MCP server settings
- ✅ Auto-update configuration if paths change
- ✅ Verify registration on every status check
Manual Control
- 🔧 Register/unregister at any time
- 🔧 Force update configuration
- 🔧 View detailed integration status
- 🔧 Support for future cloud-based servers
Quick Setup
1. Initialize (Auto-Registration)
# Run init - MCP server is automatically registered! flanner initOutput includes:
✓ Initialized Flanner... 🔌 Registering MCP server with Claude Code... ✓ MCP server registered in Claude Code You may need to restart Claude Code for changes to take effect2. Verify Registration
flanner statusShows:
------------------------------------------------------------ CLAUDE CODE INTEGRATION ------------------------------------------------------------ Config Path: C:\Users\...\Claude\claude_desktop_config.json MCP Server: Registered & Valid3. View Detailed Info
flanner claude-infoShows complete details including configuration file location, registration status, and current server configuration.
4. Restart Claude Code
After registration, restart Claude Code to load the MCP server.
5. Test with Claude
Ask Claude to interact with the plan manager:
User: "List all my projects in the plan manager" User: "Create a new architecture plan for my current project" User: "Show me the version history of the architecture plan"Available MCP Tools
Flanner exposes the following tools to Claude through MCP:
get_plan_config()
Get configuration for creating plan files.
list_projects()
List all projects.
create_project_tool()
Create a new project.
list_plan_files()
List plan files for a project.
create_plan_file_tool()
Create a new plan file with automatic frontmatter.
update_plan_file_tool()
Update a plan file and create a new version.
get_plan_history_tool()
Get version history for a plan file.
JIRA Tools
configure_jira_tool()- Configure JIRA for a projectlink_plan_to_jira_tool()- Link plan to JIRA issueget_jira_links_tool()- Get JIRA links for a planlist_jira_links_tool()- List all JIRA linksunlink_jira_issue_tool()- Unlink JIRA issuesget_jira_config_tool()- Get JIRA configuration
Configuration File Location
The CLI automatically detects Claude Code's configuration file:
Windows
C:\Users\YourName\AppData\Roaming\Claude\claude_desktop_config.jsonmacOS
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux
~/.config/claude/claude_desktop_config.jsonHow It Works
On init Command
- Check if MCP server is already registered
- Verify configuration is correct if registered
- Update configuration if paths changed
- Register if missing
- Notify user of next steps
On status Command
- Check if server is registered
- Validate current configuration matches expected
- Show action needed if not registered or outdated
Configuration Structure
{
"mcpServers": {
"flanner-manager": {
"command": "python",
"args": [
"-m",
"src.server"
],
"cwd": "C:\\path\\to\\flanner",
"env": {}
}
}
}Manual Registration
Register MCP Server
# If auto-registration failed or was skipped flanner register # Force update configuration flanner register --force # Skip Claude integration during init flanner init --skip-claudeUnregister
# Remove MCP server from Claude Code flanner unregisterTroubleshooting
Could not find Claude Code configuration path
Solution:
- Ensure Claude Code is installed
- Check if configuration file exists
- Try manual registration
MCP server registered but not working in Claude
Solutions:
- Restart Claude Code completely
- Check Claude Code's MCP settings UI
- Run
flanner claude-infoto verify configuration - Re-register with
flanner register --force
Configuration path is different
Edit src/claude_integration.py and add your custom path.
Use Cases
First Installation
pip install -r requirements.txt flanner init # ✓ MCP server automatically registered # ✓ Ready to use with Claude immediatelyMoved Project Directory
# You moved the flanner folder flanner init # ✓ Configuration automatically updated with new pathMultiple Developers
# Each developer runs init on their machine flanner init # ✓ Each gets correct path for their system # ✓ No manual configuration neededStatus Indicators
Registered & Valid (Green)
- ✅ MCP server is registered
- ✅ Configuration is correct
- ✅ No action needed
Registered (config outdated) (Yellow)
- ⚠️ MCP server is registered
- ⚠️ Configuration has changed
- 💡 Run
flanner initto update
Not Registered (Yellow)
- ⚠️ MCP server not found in Claude config
- 💡 Run
flanner initorflanner register
Summary: Just run flanner init and restart Claude Code. The integration happens automatically!