MCP.so
Sign In
Servers

MCP

@LikeRainDay

The mcp service collection, including aliyun cli and aliyun log, mysql, redis, and the se service of the common tool collection

中文说明

docker build \
  --build-arg ALIYUN_REGION_ID=cn-beijing \
  --build-arg ALIYUN_ACCESS_KEY_ID=** \
  --build-arg ALIYUN_ACCESS_KEY_SECRET=** \
  --build-arg NACOS_SERVER_ADDR=localhost:8848 \
  --build-arg NACOS_NAMESPACE=** \
  --build-arg NACOS_DATA_ID=mcp_rust.yml \
  --build-arg NACOS_GROUP=DEFAULT_GROUP \
  --build-arg OFFLINE_MODE=false \
  --build-arg CONFIG_FILE=config.yml \
  -t mcp-server:latest .

Usage

  • Start MCP server
cargo run
  • Start MCP client
npx @modelcontextprotocol/inspector sse http://127.0.0.1:3001/sse
  • Run in Docker in Docker
docker run -d -it -p 3001:3001  --name=test-mcp  mcp_service:latest
  • Cursor MCP Configuration

Curosr MCP.

{
    "mcpServers": {
        "mcp-server": {
            "url": "http://localhost:3001/sse"
        }
    }
}


MCP Module Descriptions

This directory contains the core functional modules related to MCP (Management Control Platform), as follows:

1. mcp_config.rs

  • Function: Responsible for managing MCP-related configuration information.
  • Description: Defines and loads the configuration information required by MCP, allowing flexible adjustment of system parameters.

2. mcp_time.rs

  • Function: Utility functions related to time.
  • Description: Provides practical methods for time formatting, timestamp conversion, and other time-related processing.

3. mcp_aliyun_log_cli.rs

  • Function: Aliyun Log CLI tool integration.
  • Description: Encapsulates command-line operations for interacting with Aliyun Log Service, facilitating log query and management.

4. mcp_aliyun_cli.rs

  • Function: Aliyun CLI tool integration.
  • Description: Encapsulates command-line operations for interacting with various Aliyun services, supporting multiple Aliyun API calls.

5. mod.rs

  • Function: Module aggregation entry point.
  • Description: Uniformly exposes the functional modules in this directory for external calls.

More from Developer Tools