flamel_mcp

The core MCP server. Handles plans, file operations, shell commands, code search, and UI interactions. Every flamel session has this wired in by default.

Plans

ToolWhat it does
plan(action="create", ...)Create a new plan with a title and list of items
plan(action="get", plan_id="...")Get full plan details including item IDs and statuses
plan(action="list")List plans, defaulting to the current session when available
plan(action="update_item", ...)Update item status: todo / in_progress / done / blocked
plan(action="add_items", ...)Append new items to an existing plan
plan(action="replace_items", ...)Replace all items (for restructuring a plan)
plan(action="rename", ...)Rename a plan

File operations

ToolWhat it does
read_fileRead a file with optional line range
create_text_fileCreate or overwrite a file
flamel_replaceExact-string replacement in a file
replace_contentRegex or multi-line replacement
replace_symbol_bodyRewrite an entire function, class, or method by name
find_fileFind files by glob pattern
list_dirList directory contents

Code search & navigation

ToolWhat it does
search_for_patternRegex search across files (replaces grep)
find_symbolFind a function, class, or type by name
get_symbols_overviewOutline a file's structure — functions, classes, types
find_referencing_symbolsFind all callers / references to a symbol
get_importsGet import graph for a file

Shell

ToolWhen to use
flamel_shellQuick one-shot commands (ls, git status, fast scripts)
shell_runBlocking builds — streams output, waits for exit (cargo build, npm install, pytest)
shell_startInteractive processes that need stdin (SSH, password prompts)
shell_readDrain output from an interactive session
shell_writeWrite to stdin of an interactive session
shell_killTerminate an interactive session

Other tools

ToolWhat it does
thinkingExtended reasoning — for architectural decisions and hard problems
AskUserQuestionPause execution and ask the user a question with optional choices
fetch_imageFetch and view an image from a URL
create_model3dGenerate a 3D model from OpenSCAD code