mcp-gs-robot gaussian bot
What is cfrs2005 mcp gs robot
Gausium OpenAPI MCP Server
This project implements an MCP (Model Control Protocol) server that acts as a bridge to the Gausium OpenAPI, allowing AI models or other clients to interact with Gausium robots through a standardized interface.
Repository: https://github.com/cfrs2005/mcp-gs-robot
Architecture
The server follows a layered architecture that separates concerns and promotes maintainability:
!Architecture Diagram
MCP Protocol Flow
The diagram below shows how AI models interact with Gausium robots through the MCP protocol:
!MCP Protocol Flow
Features
The server currently supports the following functionalities as MCP tools:
list_robots
: Lists robots accessible via the API key. (Based on: List Robots API)get_robot_status
: Fetches the detailed status of a specific robot by its serial number. (Based on: Get Robot Status API)list_robot_task_reports
: Retrieves cleaning task reports for a specific robot, with optional time filtering. (Based on: List Robot Task Reports API)list_robot_maps
: Lists the maps associated with a specific robot. (Based on: List Robot Maps API)
Project Structure
The project follows a structured layout based on Python best practices:
.
โโโ .venv/ # Virtual environment directory
โโโ src/
โ โโโ gs_openapi/
โ โโโ __init__.py
โ โโโ api/ # Modules for direct API interactions
โ โ โโโ __init__.py
โ โ โโโ maps.py
โ โ โโโ robots.py
โ โโโ auth/ # Authentication related modules
โ โ โโโ __init__.py
โ โ โโโ token_manager.py # Handles OAuth token lifecycle
โ โโโ config.py # Configuration (URLs, Env Vars)
โ โโโ mcp/ # MCP server specific implementations
โ โโโ __init__.py
โ โโโ gausium_mcp.py # GausiumMCP class extending FastMCP
โโโ .gitignore
โโโ docs/
โ โโโ images/ # Documentation images
โโโ main.py # Main application entry point, tool registration, server run
โโโ README.md # This file
โโโ requirements.txt # Project dependencies
src/gs_openapi/config.py
: Contains base URLs, API paths, and environment variable names.src/gs_openapi/auth/token_manager.py
: Manages acquiring and refreshing OAuth tokens.src/gs_openapi/api/
: Contains modules (robots.py
,maps.py
) with functions that directly call the Gausium OpenAPI endpoints usinghttpx
.src/gs_openapi/mcp/gausium_mcp.py
: Defines theGausiumMCP
class which integrates the API calls and token management.main.py
: InitializesGausiumMCP
, registers the API functionalities as MCP tools using@mcp.tool()
, configures basic logging, and starts the server usingmcp.run()
.
Setup and Running
-
Clone the repository:
git clone https://github.com/cfrs2005/mcp-gs-robot.git cd mcp-gs-robot
-
Create and activate a virtual environment using
uv
:uv venv source .venv`/bin/activate` # On Windows use `.venv\Scripts\activate`
-
Install dependencies using
uv
:uv pip install -r requirements.txt # Or, if you prefer adding specific core packages: # uv add httpx "mcp[cli]"
-
Configure Credentials: The application expects Gausium API credentials to be set as environment variables:
GS_CLIENT_ID
: Your Gausium Application Client ID.GS_CLIENT_SECRET
: Your Gausium Application Client Secret.GS_OPEN_ACCESS_KEY
: Your Gausium OpenAPI Access Key.
You can set these directly in your shell:
export GS_CLIENT_ID="your_client_id" export GS_CLIENT_SECRET="your_client_secret" export GS_OPEN_ACCESS_KEY="your_access_key"
(Alternatively, modify
src/gs_openapi/config.py
for development, but do not commit credentials). -
Run the server:
python main.py
By default, this starts the server using SSE transport on
http://0.0.0.0:8000
. You can modifymain.py
to usestdio
transport if needed.
Connecting an MCP Client
Once the server is running, an MCP client (like Cursor or another compatible tool) can connect to it via the appropriate transport (SSE or stdio) to utilize the defined tools.
Usage with Cursor
Below is an example of how Cursor interacts with this MCP server:
!Cursor Usage Screenshot
Debugging
You can monitor the server logs for debugging information. The basic logging configuration in main.py
provides timestamps, levels, and source information.
Below is an example of the server log output during operation:
!MCP Debug Screenshot
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
chrisdoc hevy mcp
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Zzzccs123 mcp sentry
mcp sentry for typescript sdk
zhuzhoulin dify mcp server
zhongmingyuan mcp my mac
zhixiaoqiang desktop image manager mcp
MCP ๆๅกๅจ๏ผ็จไบ็ฎก็ๆก้ขๅพ็ใๆฅ็่ฏฆๆ ใๅ็ผฉใ็งปๅจ็ญ๏ผๅฎๅ จ่ฎฉTraeๅฎ็ฐ๏ผ
zhixiaoqiang antd components mcp
An MCP service for Ant Design components query | ไธไธชๅๅฐ Ant Design ็ปไปถไปฃ็ ็ๆๅนป่ง็ MCP ๆๅก๏ผๅ ๅซ็ณป็ปๆ็คบ่ฏใ็ปไปถๆๆกฃใAPI ๆๆกฃใไปฃ็ ็คบไพๅๆดๆฐๆฅๅฟๆฅ่ฏข
Submit Your MCP Server
Share your MCP server with the community
Submit Now