diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5331d33 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +FROM python:3.11-slim + +WORKDIR /app + +# Copy project files +COPY pyproject.toml README.md ./ +COPY src ./src + +# Install build dependencies +RUN apt-get update && apt-get install -y --no-install-recommends build-essential \ + && pip install --no-cache-dir . \ + && apt-get purge -y --auto-remove build-essential \ + && rm -rf /var/lib/apt/lists/* + +# Default entrypoint +ENTRYPOINT ["alibaba-cloud-ops-mcp-server"] diff --git a/README.md b/README.md index 2d88a52..1d82084 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # alibaba-cloud-ops-mcp-server [中文版本](./README_zh.md) + +[![smithery badge](https://smithery.ai/badge/@aliyun/alibaba-cloud-ops-mcp-server)](https://smithery.ai/server/@aliyun/alibaba-cloud-ops-mcp-server) + ## Prepare Install [uv](https://github.com/astral-sh/uv) @@ -13,6 +16,14 @@ curl -LsSf https://astral.sh/uv/install.sh | sh Use [VS Code](https://code.visualstudio.com/) + [Cline](https://cline.bot/) to config MCP Server. +### Installing via Smithery + +To install Alibaba Cloud Operations Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@aliyun/alibaba-cloud-ops-mcp-server): + +```bash +npx -y @smithery/cli install @aliyun/alibaba-cloud-ops-mcp-server --client claude +``` + To use `alibaba-cloud-ops-mcp-server` MCP Server with any other MCP Client, you can manually add this configuration and restart for changes to take effect: ```json @@ -79,4 +90,4 @@ If you have any questions, please join the [Alibaba Cloud Ops MCP discussion gro ## Know More -- [Alibaba Cloud MCP Server is ready to use out of the box!!](https://developer.aliyun.com/article/1661348) \ No newline at end of file +- [Alibaba Cloud MCP Server is ready to use out of the box!!](https://developer.aliyun.com/article/1661348) diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..fd52d51 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,24 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + required: + - accessKeyId + - accessKeySecret + properties: + accessKeyId: + type: string + description: Alibaba Cloud Access Key ID + accessKeySecret: + type: string + description: Alibaba Cloud Access Key Secret + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ command: 'alibaba-cloud-ops-mcp-server', args: ['--transport', 'stdio'], env: { ALIBABA_CLOUD_ACCESS_KEY_ID: config.accessKeyId, ALIBABA_CLOUD_ACCESS_KEY_SECRET: config.accessKeySecret } }) + exampleConfig: + accessKeyId: + accessKeySecret: