Cover image
Try Now
2025-04-14

MIA平台控制台MCP服务器

3 years

Works with Finder

1

Github Watches

0

Github Forks

1

Github Stars

Mia-Platform Console MCP Server

pipeline status license

Introduction

The Mia-Platform Console MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Mia-Platform Console APIs, enabling advanced automation and interaction capabilities for developers and tools.

Prerequisites

  1. To run the server in a container, you will need to have Docker installed.
  2. Once Docker is installed, you will also need to ensure Docker is running.
  3. Lastly you will need to Create a Mia-Platform Service Account. For now the only authentication method supported is the Client Secret Basic one.

Installation

VS Code

For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON). Optionally, you can add it to a file called .vscode/mcp.json in your workspace.

Once you have done it, toggle Agent mode (located by the Copilot Chat text input) and the server will start.

Note that the mcp key is not needed in the .vscode/mcp.json file.

Also note that you can change the host of the Console instance to your custom installation

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "mia_client_id",
        "description": "Mia-Platform Client ID",
        "password": false
      },
      {
        "type": "promptString",
        "id": "mia_client_secret",
        "description": "Mia-Platform Client Secret",
        "password": true
      },
    ],
    "servers": {
      "mia-platform-console": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-e",
          "MIA_PLATFORM_CLIENT_ID",
          "-e",
          "MIA_PLATFORM_CLIENT_SECRET",
          "ghcr.io/mia-platform/console-mcp-server",
          "node",
          "build/index.js",
          "start",
          "--host=https://console.cloud.mia-platform.eu"
        ],
        "env": {
          "MIA_PLATFORM_CLIENT_ID": "${input:mia_client_id}",
          "MIA_PLATFORM_CLIENT_SECRET": "${input:mia_client_secret}",
        }
      }
    }
  }
}

More about using MCP server tools in VS Code's agent mode documentation.

Claude Desktop

{
  "mcpServers": {
    "mia-platform-console": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MIA_PLATFORM_CLIENT_ID",
        "-e",
        "MIA_PLATFORM_CLIENT_SECRET",
        "ghcr.io/mia-platform/console-mcp-server",
        "node",
        "build/index.js",
        "start",
        "--host=https://console.cloud.mia-platform.eu"
      ],
      "env": {
        "MIA_PLATFORM_CLIENT_ID": "<YOUR_CLIENT_ID>",
        "MIA_PLATFORM_CLIENT_SECRET": "<YOUR_CLIEND_SECRET>",
      }
    }
  }
}

Run from sources

If you don't have Docker installed, you can use NPM and Node.js for running it locally. Once you have cloned the project you can run the commands:

npm ci
npm run build

These commands will install all the dependencies and then transpile the typescript code in the build folder.
Once these steps are completed you can setup the MCP server using the node command like the following:

{
  "mcp": {
    "servers": {
      "github": {
        "command": "node",
        "args": [
          "/path/to/the/project/build/index.js",
          "start",
          "--host=https://console.cloud.mia-platform.eu"
        ],
        "env": {
          "MIA_PLATFORM_CLIENT_ID": "<YOUR_CLIENT_ID>",
          "MIA_PLATFORM_CLIENT_SECRET": "<YOUR_CLIEND_SECRET>",
        }
      }
    }
  }
}

Local Development

To help with the development of the server you need Node.js installed on your machine.
The reccomended way is to use a version manager like nvm or mise.

Once you have setup your environment with the correct Node.js version declared inside the .nvmrc file you can run the following command:

npm ci

Once has finished you will have all the dependencies installed on the project, then you can run:

npm run local:test

This command will download and launch the MCP inspector on http://localhost:6274 where you can test if the implementation will work correctly testing the tools discovery and calls without the needs of a working llm environmnet.

To run tests for new implementations you can use:

npm test

Or running a test for a single file run:

node --test --import tsx <FILE_PATH>

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

  • dmayboroda
  • 带有可配置容器的本地对话抹布

    Reviews

    3.7 (10)
    Avatar
    user_AsanXubJ
    2025-04-26

    As a loyal user of the console-mcp-server by mia-platform, I can confidently say it's an outstanding tool for managing multiple console applications seamlessly. The interface is intuitive, and it offers reliable performance and efficient process management. Highly recommend this for anyone looking to streamline their app console operations!

    Avatar
    user_BhQCgIIa
    2025-04-26

    As a loyal user of the console-mcp-server by Mia-Platform, I must say this product is a game-changer. User-friendly and robust, it streamlines server management effortlessly. The intuitive interface and seamless integration make it indispensable for efficient workflows. Highly recommend!

    Avatar
    user_RuRT9TGz
    2025-04-26

    As a dedicated user of the console-mcp-server by mia-platform, I am thoroughly impressed by its performance and reliability. The seamless integration and efficient server management have significantly streamlined my workflow. The user-friendly interface and comprehensive features make it an indispensable tool for any project. Highly recommended for anyone seeking a top-notch mcp application!

    Avatar
    user_xufTt2dF
    2025-04-26

    I've been using console-mcp-server by mia-platform, and it's simply amazing! The seamless integration and easy-to-use interface make server management hassle-free. High performance and reliability have always been its hallmark. Highly recommended for anyone serious about efficient server administration.

    Avatar
    user_PoRdWgV4
    2025-04-26

    The console-mcp-server by Mia-Platform is an absolute game-changer for managing microservices. Its seamless integration and user-friendly interface make it a must-have for any developer. The efficient monitoring and robust features have significantly improved our workflow. Highly recommended!

    Avatar
    user_zGKs4HU1
    2025-04-26

    As a dedicated user of the console-mcp-server by mia-platform, I've found it to be an outstanding tool for managing my cloud infrastructure. Its intuitive interface and powerful features streamline the deployment and monitoring processes. Highly recommended for anyone seeking efficient and reliable cloud server management.

    Avatar
    user_oRup5h0a
    2025-04-26

    As a loyal user of console-mcp-server by Mia-Platform, I find it indispensable for managing microservices. Its user-friendly interface and robust features streamline operations and enhance productivity. Highly recommended for anyone looking to efficiently oversee their microservices architecture!

    Avatar
    user_53iM8Kd1
    2025-04-26

    As a dedicated user of the console-mcp-server by mia-platform, I am thoroughly impressed by its performance and reliability. This server seamlessly manages all my application needs, ensuring a smooth and efficient experience. Highly recommended for anyone looking for a robust MCP solution!

    Avatar
    user_ja984ZBF
    2025-04-26

    As a dedicated user of console-mcp-server by Mia-Platform, I must say this product is fantastic. The seamless integration and robust performance have significantly enhanced our project management. Highly recommend it for anyone seeking a reliable MCP application.

    Avatar
    user_vpp293kp
    2025-04-26

    As a dedicated user of console-mcp-server by mia-platform, I must say this product has greatly enhanced my application management experience. The interface is intuitive, and the functionality is robust, allowing seamless server control. Highly recommend it to anyone looking for a reliable and efficient MCP solution!