設定手順

by nsh58

249 downloads
Not rated
GitHub

Description

# 設定手順 以下の手順で開発環境をセットアップできます。 ① 仮想環境を作成 ``` uv venv ``` このコマンドを実行すると、カレントディレクトリに .venv/ フォルダが作成されます。 ② 仮想環境をアクティブにする ``` source .venv/bin/activate ``` ③ 依存パッケージをインストールする ``` uv pip install -r requirements.txt ``` このコマンドで、プロジェクトに必要なPythonライブラリが一括でインストールされます。 ④…

About

# 設定手順 以下の手順で開発環境をセットアップできます。 ① 仮想環境を作成 ``` uv venv ``` このコマンドを実行すると、カレントディレクトリに .venv/ フォルダが作成されます。 ② 仮想環境をアクティブにする ``` source .venv/bin/activate ``` ③ 依存パッケージをインストールする ``` uv pip install -r requirements.txt ``` このコマンドで、プロジェクトに必要なPythonライブラリが一括でインストールされます。 ④ LLMアプリの設定ファイルに下記を追記します。 ``` { "mcpServers": { "mysql": {…

Details

Author
nsh58
Downloads
249
Categories
Database

- Step‑by‑step environment setup using uv
- Automatically installs required Python dependencies
- Includes a ready‑to‑use MCP server configuration for MySQL
- Uses environment variables for database connection details

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name 設定手順
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Follow the five steps: (1) create a virtual environment with uv venv, (2) activate it with source .venv/bin/activate, (3) install dependencies with uv pip install -r requirements.txt, (4) add the mysql MCP server configuration to the LLM app’s settings file, (5) the server is then ready to be used by the LLM application.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "\u8a2d\u5b9a\u624b\u9806": {
            "mysql": {
                "command": "uv",
                "args": [
                    "--directory",
                    "/path/to/mcp-server-mysql",
                    "run",
                    "main.py"
                ],
                "env": {
                    "MYSQL_HOST": "",
                    "MYSQL_PORT": "",
                    "MYSQL_USER": "",
                    "MYSQL_PASSWORD": "",
                    "MYSQL_DATABASE": ""
                }
            }
        }
    }
}

McpServers

{
    "mysql": {
        "command": "uv",
        "args": [
            "--directory",
            "/path/to/mcp-server-mysql",
            "run",
            "main.py"
        ],
        "env": {
            "MYSQL_HOST": "",
            "MYSQL_PORT": "",
            "MYSQL_USER": "",
            "MYSQL_PASSWORD": "",
            "MYSQL_DATABASE": ""
        }
    }
}

設定手順

以下の手順で開発環境をセットアップできます。

① 仮想環境を作成

uv venv
このコマンドを実行すると、カレントディレクトリに .venv/ フォルダが作成されます。

② 仮想環境をアクティブにする

source .venv/bin/activate

③ 依存パッケージをインストールする

uv pip install -r requirements.txt
このコマンドで、プロジェクトに必要なPythonライブラリが一括でインストールされます。

④ LLMアプリの設定ファイルに下記を追記します。

{
  "mcpServers": {
    "mysql": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-server-mysql",
        "run",
        "main.py"
      ],
      "env": {
        "MYSQL_HOST": "${db_host}",
        "MYSQL_PORT": "${db_port}",
        "MYSQL_USER": "${db_user}",
        "MYSQL_PASSWORD": "${db_password}",
        "MYSQL_DATABASE": "${db_name}"
      }
    }
}

⑤ LLMアプリを再起動

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.