スキル一覧に戻る
rusmirbecirovic

run-synth-server

by rusmirbecirovic

0🍴 0📅 2026年1月16日
GitHubで見るManusで実行

SKILL.md


name: run-synth-server description: Instructions for starting the MCP Synth server (FastAPI) for synthetic data generation and tools.

Run Synth Server

The MCP Synth Server is a FastAPI application that exposes tools for generating synthetic airline data, inspecting models, previewing data, and exporting archives.

Prerequisites

  1. Python environment must be active: The .venv environment should be activated.

  2. Dependencies installed: uvicorn and fastapi must be installed (included in dev dependencies).

    Verify with:

    python -c "import uvicorn; import fastapi; print('OK')"
    

    If not installed, run from airline-discount-ml/:

    pip install -e ".[dev]"
    

Standard Server Start Procedure

Run the following commands in order:

  1. Navigate to Project Root:

    cd airline-discount-ml
    
  2. Start the Server (Background Mode - Recommended):

    Use nohup to run the server in the background so it persists when new terminal commands are run:

    nohup uvicorn src.mcp_synth.server:app --host 127.0.0.1 --port 8010 --reload > synth_server.log 2>&1 &
    

    This will:

    • Run the server in the background (&)
    • Keep it running even after terminal commands (nohup)
    • Log output to synth_server.log

    Alternative: Foreground Mode (blocks terminal):

    uvicorn src.mcp_synth.server:app --host 127.0.0.1 --port 8010 --reload
    

    Options:

    • --host 127.0.0.1: Bind to localhost only (safe for development)
    • --port 8010: Default port (change if occupied)
    • --reload: Auto-reload on code changes (development mode)

    Production mode (no auto-reload):

    nohup uvicorn src.mcp_synth.server:app --host 0.0.0.0 --port 8010 > synth_server.log 2>&1 &
    
  3. Verify Server is Running:

    curl http://127.0.0.1:8010/healthz
    

    Expected response: {"status":"ok"}

    Check version:

    curl http://127.0.0.1:8010/version
    

    View server logs:

    tail -f synth_server.log
    

Available Endpoints

EndpointMethodDescription
/healthzGETHealth check
/versionGETServer version
/synth_generatePOSTGenerate synthetic data
/mcpPOSTMCP JSON-RPC endpoint for tools

Stopping the Server

  • Press Ctrl+C in the terminal running the server
  • Or find and kill the process: lsof -i :8010 | awk 'NR>1 {print $2}' | xargs kill

Troubleshooting

IssueSolution
Port 8010 in useUse --port 8011 or kill existing process
Module not foundRun pip install -e ".[dev]" from airline-discount-ml/
Connection refusedEnsure server started successfully, check terminal output

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です