iflow-mcp_codemcp
v0.7.0MCP server for file operations
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
chmod
Changes file permissions using chmod. Unlike standard chmod, this tool only supports a+x (add executable permission) and a-x (remove executable permission), because these are the only bits that git knows how to track. Args: path: The absolute path to the file to modify mode: The chmod mode to apply, only "a+x" and "a-x" are supported chat_id: The unique ID to identify the chat session commit_hash: Optional Git commit hash for version tracking Example: chmod a+x path/to/file # Makes a file executable by all users chmod a-x path/to/file # Makes a file non-executable for a…
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
path * | string | |
chat_id | ||
commit_hash |
mv
Moves a file using git mv and commits the change. Provide a short description of why the file is being moved. Before using this tool: 1. Ensure the source file exists and is tracked by git 2. Ensure the target directory exists within the git repository 3. Provide a meaningful description of why the file is being moved Args: source_path: The path to the file to move (can be relative to the project root or absolute) target_path: The destination path where the file should be moved to (can be relative to the project root or absolute) description: Short description of why the file is…
| Parameter | Type | Description |
|---|---|---|
source_path * | string | |
target_path * | string | |
chat_id | ||
commit_hash | ||
description |
rm
Removes a file using git rm and commits the change. Provide a short description of why the file is being removed. Before using this tool: 1. Ensure the file exists and is tracked by git 2. Provide a meaningful description of why the file is being removed Args: path: The path to the file to remove (can be relative to the project root or absolute) description: Short description of why the file is being removed chat_id: The unique ID to identify the chat session commit_hash: Optional Git commit hash for version tracking Returns: A success message
| Parameter | Type | Description |
|---|---|---|
chat_id * | string | |
description * | string | |
path * | string | |
commit_hash |
edit_file
This is a tool for editing files. For larger edits, use the WriteFile tool to overwrite files. Provide a short description of the change. Before using this tool: 1. Use the ReadFile tool to understand the file's contents and context 2. Verify the directory path is correct (only applicable when creating new files): - Use the LS tool to verify the parent directory exists and is the correct location To make a file edit, provide the following: 1. path: The absolute path to the file to modify (must be absolute, not relative) 2. old_string: The text to replace (must be unique within the file,…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
chat_id | ||
commit_hash | ||
description | ||
new_string | ||
old_string | ||
read_file_timestamps |
glob
Fast file pattern matching tool that works with any codebase size Supports glob patterns like "**/*.js" or "src/**/*.ts" Returns matching file paths sorted by modification time Use this tool when you need to find files by name patterns Args: pattern: The glob pattern to match files against path: The directory to search in limit: Maximum number of results to return offset: Number of results to skip (for pagination) chat_id: The unique ID of the current chat session commit_hash: Optional Git commit hash for version tracking Returns: A formatted string with the searc…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
pattern * | string | |
chat_id | ||
commit_hash | ||
limit | ||
offset |
grep
Searches for files containing a specified pattern (regular expression) using git grep. Files with a match are returned, up to a maximum of 100 files. Note that this tool only works inside git repositories. Example: Grep "function.*hello" /path/to/repo # Find files containing functions with "hello" in their name Grep "console\.log" /path/to/repo --include="*.js" # Find JS files with console.log statements Args: pattern: The regular expression pattern to search for path: The directory or file to search in (must be in a git repository) include: Optional file pattern to filter…
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
chat_id | ||
commit_hash | ||
include | ||
path |
init_project
If and only if the user explicitly asks you to initialize codemcp with path, you should invoke this tool. This will return instructions which you should IMMEDIATELY follow before continuing, in particular, it will explain other ways you can invoke this tool. If the user indicates they want to "amend" or "continue working" on a PR, you should set reuse_head_chat_id=True to continue using the same chat ID. Args: directory: The directory path containing the codemcp.toml file user_prompt: The user's original prompt verbatim, starting AFTER instructions to initialize codemcp (e.g., you sh…
| Parameter | Type | Description |
|---|---|---|
directory | ||
path | ||
reuse_head_chat_id | boolean | |
subject_line | string | |
user_prompt | string |
ls
Lists files and directories in a given path. The path parameter must be an absolute path, not a relative path. You should generally prefer the Glob and Grep tools, if you know which directories to search. Args: path: The absolute path to the directory to list chat_id: The unique ID of the current chat session commit_hash: Optional Git commit hash for version tracking Returns: A formatted string representation of the directory contents
| Parameter | Type | Description |
|---|---|---|
path * | string | |
chat_id | ||
commit_hash |
read_file
Reads a file from the local filesystem. The path parameter must be an absolute path, not a relative path. By default, it reads up to 1000 lines starting from the beginning of the file. You can optionally specify a line offset and limit (especially handy for long files), but it's recommended to read the whole file by not providing these parameters. Any lines longer than 1000 characters will be truncated. For image files, the tool will display the image for you. Args: path: The absolute path to the file to read offset: The line number to start reading from (1-indexed) limit: The num…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
chat_id | ||
commit_hash | ||
limit | ||
offset |
run_command
Run a command that is configured in codemcp.toml. Args: project_dir: The directory path containing the codemcp.toml file command: The type of command to run (e.g., "format", "lint", "test") arguments: Optional arguments to pass to the command. Can be a string or a list. If a string, it will be parsed into a list of arguments using shell-style tokenization (spaces separate arguments, quotes can be used for arguments containing spaces, etc.). If a list, it will be used directly. chat_id: The unique ID of the current chat session comm…
| Parameter | Type | Description |
|---|---|---|
arguments | ||
chat_id | ||
command | string | |
commit_hash | ||
path | ||
project_dir |
think
Use the tool to think about something. It will not obtain new information or change the database, but just append the thought to the log. Use it when complex reasoning or some cache memory is needed. Args: thought: The thought to log chat_id: The unique ID of the current chat session commit_hash: Optional Git commit hash for version tracking Returns: A confirmation message that the thought was logged
| Parameter | Type | Description |
|---|---|---|
thought * | string | |
chat_id | ||
commit_hash |
write_file
Write a file to the local filesystem. Overwrites the existing file if there is one. Provide a short description of the change. Before using this tool: 1. Use the ReadFile tool to understand the file's contents and context 2. Directory Verification (only applicable when creating new files): - Use the LS tool to verify the parent directory exists and is the correct location Args: path: The absolute path to the file to write content: The content to write to the file. Can be a string, dict, or list (will be converted to JSON) description: Short description of the change chat…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
chat_id | ||
commit_hash | ||
content | ||
description |