

YepCode MCP サーバーとは何ですか?
AIプラットフォームとYepCodeのインフラストラクチャとの連携を可能にするMCP(モデルコンテキストプロトコル)サーバー。LLMで生成されたスクリプトを実行し、YepCodeのプロセスをAIアシスタントが直接使用できる強力なツールに変換します。
YepCode MCP サーバーを選ぶ理由
シームレスなAI統合:YepCodeプロセスを設定なしでAI対応ツールに変換
リアルタイムプロセス制御: AIシステムとワークフロー間の直接的な相互作用を可能にします
エンタープライズグレードのセキュリティ: YepCode の分離された本番環境対応環境でコードを実行します。
ユニバーサルな互換性: モデルコンテキストプロトコルをサポートするあらゆるAIプラットフォームと統合可能
Related MCP server: Vibe Coder MCP
統合ガイド
YepCode MCP サーバーは、リモート アプローチ (MCP サーバーのホスト バージョンを提供) またはローカル アプローチ (NPX または Docker のインストールが必要) のいずれかを使用して、 CursorやClaude Desktopなどの AI プラットフォームと統合できます。
SSEサーバーを使用したリモートアプローチ
YepCode Cloudにサインアップ
ワークスペースの「 Settings > API credentialsから MCP サーバー URL を取得します。
AI プラットフォーム設定に次の構成を追加します。
{
"mcpServers": {
"yepcode-mcp-server": {
"url": "https://cloud.yepcode.io/mcp/sk-c2E....RD/sse"
}
}
}
ローカルアプローチ
必要な環境変数
NPXの使用
AI プラットフォーム設定に次の構成を追加します。
{
"mcpServers": {
"yepcode-mcp-server": {
"command": "npx",
"args": ["-y", "@yepcode/mcp-server"],
"env": {
"YEPCODE_API_TOKEN": "your_api_token_here",
}
}
}
}
Dockerの使用
コンテナイメージをビルドします。
docker build -t yepcode/mcp-server .
AI プラットフォーム設定に次の構成を追加します。
{
"mcpServers": {
"yepcode-mcp-server": {
"command": "docker",
"args": [
"run",
"-d",
"-e",
"YEPCODE_API_TOKEN=your_api_token_here",
"yepcode/mcp-server"
]
}
}
}
デバッグ
MCPサーバーのデバッグは、stdio経由で通信するため、扱いが難しい場合があります。デバッグを容易にするために、 MCP Inspectorの使用をお勧めします。MCP Inspectorは、以下のコマンドで実行できます。
これにより、ブラウザで直接デバッグ ツールにアクセスできるサーバーが起動します。
YepCode MCP ツールリファレンス
MCP サーバーは、YepCode のインフラストラクチャと対話するためのいくつかのツールを提供します。
コード実行
コード実行
YepCode の安全な環境でコードを実行します。
// Input
{
code: string; // The code to execute
options?: {
language?: string; // Programming language (default: 'javascript')
comment?: string; // Execution context
settings?: Record<string, unknown>; // Runtime settings
}
}
// Response
{
returnValue?: unknown; // Execution result
logs?: string[]; // Console output
error?: string; // Error message if execution failed
}
MCPオプション
YepCode MCP サーバーは次のオプションをサポートしています。
run_codeツールを無効にする:場合によっては、 run_codeツールを無効にする必要がある場合があります。例えば、MCPサーバーをYepCodeアカウント内の既存のツールのプロバイダーとしてのみ使用したい場合などです。
run_code のクリーンアップをスキップ:デフォルトでは、run_code プロセスのソースコードは実行後に削除されます。監査目的でソースコードを保持したい場合は、このオプションを使用できます。
オプションは、 YEPCODE_MCP_OPTIONS環境変数内のコンマ区切りリストとして渡すことも、MCP サーバー URL 内のクエリ パラメータとして渡すこともできます。
// SSE server configuration
{
"mcpServers": {
"yepcode-mcp-server": {
"url": "https://cloud.yepcode.io/mcp/sk-c2E....RD/sse?mcpOptions=disableRunCodeTool,skipRunCodeCleanup"
}
}
}
// NPX configuration
{
"mcpServers": {
"yepcode-mcp-server": {
"command": "npx",
"args": ["-y", "@yepcode/mcp-server"],
"env": {
"YEPCODE_API_TOKEN": "your_api_token_here",
"YEPCODE_MCP_OPTIONS": "disableRunCodeTool,skipRunCodeCleanup"
}
}
}
}
環境管理
環境変数を設定する
YepCode ワークスペースで環境変数を設定します。
// Input
{
key: string; // Variable name
value: string; // Variable value
isSensitive?: boolean; // Whether to mask the value in logs (default: true)
}
環境変数を削除する
YepCode ワークスペースから環境変数を削除します。
// Input
{
key: string; // Name of the variable to remove
}
プロセス実行
MCPサーバーは、YepCodeプロセスを個別のMCPツールとして公開し、AIアシスタントから直接アクセスできるようにします。この機能は、プロセスにmcp-toolタグを追加するだけで有効になります(プロセスタグの詳細については、ドキュメントをご覧ください)。
公開されるプロセスごとにツールがあります: run_ycp_<process_slug> (ツール名が 60 文字を超える場合はrun_ycp_<process_id> )。
run_ycp_<プロセススラッグ>
// Input
{
parameters?: any; // This should match the input parameters specified in the process
options?: {
tag?: string; // Process version to execute
comment?: string; // Execution context
};
synchronousExecution?: boolean; // Whether to wait for completion (default: true)
}
// Response (synchronous execution)
{
executionId: string; // Unique execution identifier
logs: string[]; // Process execution logs
returnValue?: unknown; // Process output
error?: string; // Error message if execution failed
}
// Response (asynchronous execution)
{
executionId: string; // Unique execution identifier
}
get_execution
プロセス実行の結果を取得します。
// Input
{
executionId: string; // ID of the execution to retrieve
}
// Response
{
executionId: string; // Unique execution identifier
logs: string[]; // Process execution logs
returnValue?: unknown; // Process output
error?: string; // Error message if execution failed
}
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。