Configuration
Processes as tools
Section titled “Processes as tools”The MCP server can expose your YepCode processes as individual MCP tools. Each process becomes a callable tool that AI assistants can invoke.
Default tag: mcp-tool
Section titled “Default tag: mcp-tool”Tag a process with mcp-tool and it is automatically exposed as an MCP tool. No configuration needed.
Custom tags
Section titled “Custom tags”For custom tags, add them to YEPCODE_MCP_TOOLS so the MCP server discovers those processes:
- Tag your process (e.g.
core,automation) - Include that tag in
YEPCODE_MCP_TOOLS(see below) - The process appears as a tool named after its slug (or
yc_<processId>if the slug is longer than 60 characters)
Input schema and execution
Section titled “Input schema and execution”- Each process tool accepts parameters according to the process input schema (JSON Schema). Define a proper schema for better AI behavior.
- Sync (default): waits for completion, returns
executionId,logs,returnValue,error - Async: pass
synchronousExecution: falseto getexecutionIdimmediately
Common issues: No process tools with custom tags? Add those tags to YEPCODE_MCP_TOOLS. Tool not found? Ensure tag spelling matches. See Process tags for how to add and manage tags.
Environment variables
Section titled “Environment variables”| Variable | Required | Description |
|---|---|---|
YEPCODE_API_TOKEN | Yes (self-host) | API token from Settings → API Credentials |
YEPCODE_MCP_TOOLS | No | CSV: tool categories and custom process tags. Default: built-ins on; mcp-tool processes auto-exposed; custom tags require explicit listing |
YEPCODE_MCP_OPTIONS | No | CSV: runCodeCleanup, skipCodingRules |
YEPCODE_MCP_TOOLS
Section titled “YEPCODE_MCP_TOOLS”- Built-in categories:
run_code,yc_api,yc_api_full - Individual tools: e.g.
execute_process_sync,get_execution - Custom process tags: e.g.
core,automation— add tags to expose those processes (processes taggedmcp-toolare always exposed; see “Processes as tools” above)
YEPCODE_MCP_OPTIONS
Section titled “YEPCODE_MCP_OPTIONS”| Option | Default | Effect |
|---|---|---|
runCodeCleanup | on | Keeps run_code source for audit when enabled |
skipCodingRules | off | Omits coding rules from run_code schema (smaller defs, less AI guidance) |
Examples
Section titled “Examples”YEPCODE_MCP_TOOLS — enable run_code, basic API, and processes tagged core:
"env": { "YEPCODE_API_TOKEN": "your_token", "YEPCODE_MCP_TOOLS": "run_code,yc_api,core"}YEPCODE_MCP_OPTIONS — keep run_code source for audit and skip coding rules in the tool schema:
"env": { "YEPCODE_API_TOKEN": "your_token", "YEPCODE_MCP_OPTIONS": "runCodeCleanup,skipCodingRules"}Both — combine tool selection and options:
"env": { "YEPCODE_API_TOKEN": "your_token", "YEPCODE_MCP_TOOLS": "run_code,yc_api,core", "YEPCODE_MCP_OPTIONS": "runCodeCleanup,skipCodingRules"}