JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q66313F
  • License See LICENSE file

MCP server for YepCode

Package Exports

  • @yepcode/mcp-server

Readme

YepCode MCP Server ๐Ÿค–

An MCP (Model Context Protocol) server that enables AI platforms to interact with YepCode's infrastructure. Turn your YepCode processes into powerful tools that AI assistants can use directly.

Why YepCode MCP Server? โœจ

  • AI-Ready Automation ๐Ÿง : Transform your YepCode processes into tools that any AI assistant can use
  • Bidirectional Communication ๐Ÿ”„: Create two-way interactions between AI systems and your automation workflows
  • Secure Infrastructure ๐Ÿ”’: Execute code and processes in YepCode's secure, isolated environments
  • Flexible Integration ๐Ÿ”Œ: Works with any AI assistant that supports the Model Context Protocol (Claude, Cursor, etc.)

What is this for? ๐ŸŽฏ

This MCP server allows you to:

1. Create Custom AI Tools ๐Ÿ› ๏ธ

Build specialized tools for your AI assistants by creating YepCode processes for:

  • ๐Ÿ“Š Database queries and operations
  • ๐Ÿ”— API integrations
  • ๐Ÿ”„ Data transformations
  • ๐Ÿ’ก Custom business logic
  • ๐Ÿ”‘ Authentication flows
  • ๐Ÿ“ File processing

2. Execute Code โšก

  • ๐Ÿ’ป Run code snippets in various programming languages
  • ๐Ÿงช Test AI-generated code in isolated environments
  • โฑ๏ธ Execute long-running processes
  • ๐Ÿ” Access secure computing resources

3. Manage Infrastructure ๐Ÿ—๏ธ

  • โš™๏ธ Set and manage environment variables
  • ๐ŸŽฎ Control access to resources
  • ๐Ÿ“Š Monitor executions
  • โš ๏ธ Handle errors gracefully

Quick Start ๐Ÿš€

Integration with AI Platforms ๐Ÿ“ฆ

Using NPX

We have published the MCP server as a package in npm, so you may use npx as command to start the server.

This is the tipical JSON confiuration to be added to tools like Cursor or Claude Desktop.

{
  "mcpServers": {
    "yepcode-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@yepcode/mcp-server"
      ],
      "env": {
        "YEPCODE_API_KEY":"your_api_key_here",
        "YEPCODE_PROCESSES_AS_MCP_TOOLS": "true"  // Optional: Expose YepCode processes as individual MCP tools
      }
    }
  }
}

Using Docker

We also have a Dockerfile to build a container image that you can use to start the server.

For this, you need to download the source code and build the image with the following command:

docker build -t yepcode/mcp-server .

Then, you can configure the server with the docker command:

{
  "mcpServers": {
    "yepcode-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-d",
        "-e",
        "YEPCODE_API_KEY=your_api_key_here",
        "-e",
        "YEPCODE_PROCESSES_AS_MCP_TOOLS=true",
        "yepcode/mcp-server"
      ]
    }
  }
}

Debugging ๐Ÿงช

Debugging MCP servers can be tricky since they communicate over stdio. To make this easier, we recommend using the MCP Inspector, which you can run with the following command:

npm run inspector

This will start a server where you can access debugging tools directly in your browser.

Available Tools ๐Ÿงฐ

run_code ๐Ÿ’ป

Executes code in YepCode's secure environment.

// Input
{
  code: string;
  options?: {
    language?: string;                    // Programming language (default: 'javascript')
    comment?: string;                    // Execution context
    settings?: Record<string, unknown>;  // Runtime settings
  }
}

// Response
{
  success: boolean;
  returnValue?: unknown;  // Execution result
  logs?: string[];       // Console output
  error?: string;
}

Environment Variables ๐Ÿ”

set_env_var

Sets an environment variable.

// Input
{
  key: string;
  value: string;
  isSensitive?: boolean; // Mask value in logs (default: true)
}

remove_env_var

Removes an environment variable.

// Input
{
  key: string;
}

Run YepCode Processes as MCP Tools โšก

run_yepcode_process_*

When YEPCODE_PROCESSES_AS_MCP_TOOLS=true, each YepCode process becomes available as an individual MCP tool. This provides better discoverability and direct access to your processes from AI assistants.

There will be a tool for each YepCode process: run_yepcode_process_<process_slug>.

// Input
{
  parameters?: any;
  options?: {
    tag?: string;      // Process version
    comment?: string;  // Execution context
  };
  synchronousExecution?: boolean;  // Wait for completion (default: true)
}

// Response (synchronous execution)
{
  executionId: string;
  logs: string[];
  returnValue?: unknown;
  error?: string;
}

// Response (asynchronous execution)
{
  executionId: string;
}

get_execution

Retrieves the result of an execution.

// Input
{
  executionId: string;
}

// Response
{
  executionId: string;
  logs: string[];
  returnValue?: unknown;
  error?: string;
}

License โš–๏ธ

All rights reserved by YepCode. Usage is subject to YepCode Terms of Service.