Skip to content

Built-in MCP Server Tools

CTX provides several tools that can be enabled or disabled through environment variables. Below is a description of each tool, how to configure them, and how to use advanced features like JSON Schema, conditional arguments, and template processing.

Environment Variables Configuration

The tools system can be configured using environment variables to enable or disable specific features:

General Configuration

VariableDescriptionDefault
MCP_CUSTOM_TOOLS_ENABLEEnable/disable custom toolstrue
MCP_TOOL_MAX_RUNTIMEMaximum runtime for a command in seconds30
MCP_TOOL_COMMAND_EXECUTIONEnable/disable command executiontrue
MCP_FILE_OPERATIONSMaster switch for all file operation toolstrue
MCP_FILE_WRITEEnable/disable file write operationstrue
MCP_FILE_APPLY_PATCHEnable/disable applying patches to filesfalse
MCP_FILE_DIRECTORIES_LISTEnable/disable directory listingtrue
MCP_DOCS_TOOLS_ENABLEDEnable/disable Context7 documentation toolstrue

Available Tool Categories

File Operations (MCP_FILE_OPERATIONS=true)

Master switch for all file operation tools. When set to false, all below file tools are disabled regardless of their individual settings.

Tool KeyDescriptionEnvironment VariableDefault
file-infoGet information about a file (size, type, modification date)Always available when file operations are enabled-
file-readRead content from a fileAlways available when file operations are enabled-
file-renameRename a fileAlways available when file operations are enabled-
file-moveMove a file from one location to anotherAlways available when file operations are enabled-
directory-listList files and directories in a specified pathMCP_FILE_DIRECTORIES_LISTtrue
file-writeCreate new files or modify existing onesMCP_FILE_WRITEtrue
file-apply-patchApply git-style patches to filesMCP_FILE_APPLY_PATCHfalse (experimental)

Context Operations (MCP_CONTEXT_OPERATIONS=true)

Tools for working with context information.

Tool KeyDescriptionEnvironment VariableDefault
context-requestRequest context information using filters and modifiersAlways available when context operations are enabled-
context-getGet a specific context documentAlways available when context operations are enabled-
contextList all available contextsAlways available when context operations are enabled-

Prompt Operations (MCP_PROMPT_OPERATIONS=false)

Experimental tools for working with prompts.

Tool KeyDescriptionEnvironment VariableDefault
prompt-getRetrieve a specific promptMCP_PROMPT_OPERATIONSfalse (experimental)
prompts-listList all available promptsMCP_PROMPT_OPERATIONSfalse (experimental)

Docs Tools (MCP_DOCS_TOOLS_ENABLED)

Search for documentation libraries available on the Context7 service.

Parameters

ParameterTypeRequiredDefaultDescription
querystringYes-Search query to find documentation libraries
limitintegerNo5Maximum number of results to return

Always Available Tools

These tools are always available regardless of environment configuration:

Tool KeyDescription
project-structureGet information about the project structure
filesystem-operationsPerform basic filesystem queries
list-resourcesList all available resources
json-schemaGet JSON schema for various entities
document-contentGet document content by ID
list-toolsList all available tools (what you're using now)