|
| 1 | +# MCP Server Tools |
| 2 | + |
| 3 | +The MCP Server provides several tools that can be enabled or disabled through environment variables. Below is a |
| 4 | +description of each tool. |
| 5 | + |
| 6 | +## Environment Variables Configuration |
| 7 | + |
| 8 | +### General Configuration |
| 9 | + |
| 10 | +- `MCP_DOCUMENT_NAME_FORMAT`: Controls how documents are named in the system. |
| 11 | + - Default: `[{path}] {description}` |
| 12 | + - Example: A document might appear as `[src/file.php] Main controller file` |
| 13 | + |
| 14 | +## Available Tool Categories |
| 15 | + |
| 16 | +### File Operations (`MCP_FILE_OPERATIONS=true`) |
| 17 | + |
| 18 | +Master switch for all file operation tools. When set to `false`, all below file tools are disabled regardless of their |
| 19 | +individual settings. |
| 20 | + |
| 21 | +| Tool Key | Description | Environment Variable | Default | |
| 22 | +|--------------------|--------------------------------------------------------------|---------------------------------------------------|------------------------| |
| 23 | +| `file-info` | Get information about a file (size, type, modification date) | Always available when file operations are enabled | - | |
| 24 | +| `file-read` | Read content from a file | Always available when file operations are enabled | - | |
| 25 | +| `file-rename` | Rename a file | Always available when file operations are enabled | - | |
| 26 | +| `file-move` | Move a file from one location to another | Always available when file operations are enabled | - | |
| 27 | +| `directory-list` | List files and directories in a specified path | `MCP_FILE_DIRECTORIES_LIST` | `true` | |
| 28 | +| `file-write` | Create new files or modify existing ones | `MCP_FILE_WRITE` | `true` | |
| 29 | +| `file-apply-patch` | Apply git-style patches to files | `MCP_FILE_APPLY_PATCH` | `false` (experimental) | |
| 30 | + |
| 31 | +### Context Operations (`MCP_CONTEXT_OPERATIONS=true`) |
| 32 | + |
| 33 | +Tools for working with context information. |
| 34 | + |
| 35 | +| Tool Key | Description | Environment Variable | Default | |
| 36 | +|-------------------|---------------------------------------------------------|------------------------------------------------------|---------| |
| 37 | +| `context-request` | Request context information using filters and modifiers | Always available when context operations are enabled | - | |
| 38 | +| `context-get` | Get a specific context document | Always available when context operations are enabled | - | |
| 39 | +| `context` | List all available contexts | Always available when context operations are enabled | - | |
| 40 | + |
| 41 | +### Prompt Operations (`MCP_PROMPT_OPERATIONS=false`) |
| 42 | + |
| 43 | +Experimental tools for working with prompts. |
| 44 | + |
| 45 | +| Tool Key | Description | Environment Variable | Default | |
| 46 | +|----------------|----------------------------|-------------------------|------------------------| |
| 47 | +| `get-prompt` | Retrieve a specific prompt | `MCP_PROMPT_OPERATIONS` | `false` (experimental) | |
| 48 | +| `list-prompts` | List all available prompts | `MCP_PROMPT_OPERATIONS` | `false` (experimental) | |
| 49 | + |
| 50 | +### Always Available Tools |
| 51 | + |
| 52 | +These tools are always available regardless of environment configuration: |
| 53 | + |
| 54 | +| Tool Key | Description | |
| 55 | +|-------------------------|--------------------------------------------------| |
| 56 | +| `project-structure` | Get information about the project structure | |
| 57 | +| `filesystem-operations` | Perform basic filesystem queries | |
| 58 | +| `list-resources` | List all available resources | |
| 59 | +| `json-schema` | Get JSON schema for various entities | |
| 60 | +| `document-content` | Get document content by ID | |
| 61 | +| `list-tools` | List all available tools (what you're using now) | |
| 62 | + |
| 63 | +## Configuration Examples |
| 64 | + |
| 65 | +### Developer Mode (All Features) |
| 66 | + |
| 67 | +``` |
| 68 | +MCP_FILE_OPERATIONS=true |
| 69 | +MCP_FILE_WRITE=true |
| 70 | +MCP_FILE_APPLY_PATCH=true |
| 71 | +MCP_FILE_DIRECTORIES_LIST=true |
| 72 | +MCP_CONTEXT_OPERATIONS=true |
| 73 | +MCP_PROMPT_OPERATIONS=true |
| 74 | +``` |
| 75 | + |
| 76 | +### Read-Only Mode (Safe for Production) |
| 77 | + |
| 78 | +``` |
| 79 | +MCP_FILE_OPERATIONS=true |
| 80 | +MCP_FILE_WRITE=false |
| 81 | +MCP_FILE_APPLY_PATCH=false |
| 82 | +MCP_FILE_DIRECTORIES_LIST=true |
| 83 | +MCP_CONTEXT_OPERATIONS=true |
| 84 | +MCP_PROMPT_OPERATIONS=false |
| 85 | +``` |
| 86 | + |
| 87 | +### Minimal Mode |
| 88 | + |
| 89 | +``` |
| 90 | +MCP_FILE_OPERATIONS=true |
| 91 | +MCP_FILE_WRITE=false |
| 92 | +MCP_FILE_APPLY_PATCH=false |
| 93 | +MCP_FILE_DIRECTORIES_LIST=true |
| 94 | +MCP_CONTEXT_OPERATIONS=false |
| 95 | +MCP_PROMPT_OPERATIONS=false |
| 96 | +``` |
| 97 | + |
| 98 | +This documentation provides users with a clear understanding of available tools, their purpose, and how to enable or |
| 99 | +disable them without requiring knowledge of the underlying class implementation. |
0 commit comments