Skip to content

Deployment: Dockerfile and Smithery config #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
# syntax=docker/dockerfile:1
FROM python:3.11-slim

WORKDIR /app

# Copy project files including README for packaging
COPY pyproject.toml README.md ./
COPY src/ src/

# Install build dependencies (Hatchling) and application
RUN pip install --no-cache-dir .

# Default command to run the MCP server
ENTRYPOINT ["alibabacloud-dms-mcp-server"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# AlibabaCloud DMS MCP Server

[![smithery badge](https://smithery.ai/badge/@aliyun/alibabacloud-dms-mcp-server)](https://smithery.ai/server/@aliyun/alibabacloud-dms-mcp-server)

**AI-powered unified data management gateway** that supports connection to over 30+ data sources, serving as a multi-cloud universal data MCP Server to address cross-source data secure access in one-stop solution.

- Supports full Alibaba Cloud series: RDS, PolarDB, ADB series, Lindorm series, TableStore series, MaxCompute series.
Expand Down Expand Up @@ -124,6 +126,14 @@ Key features via MCP include:
---

## Getting Started
### Installing via Smithery

To install AlibabaCloud DMS Unified Data Gateway for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@aliyun/alibabacloud-dms-mcp-server):

```bash
npx -y @smithery/cli install @aliyun/alibabacloud-dms-mcp-server --client claude
```

### Option 1: Run from Source Code
#### Download the Code
```bash
Expand Down
37 changes: 37 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Smithery configuration file: https://smithery.ai/docs/build/project-config

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- alibabaCloudAccessKeyId
- alibabaCloudAccessKeySecret
properties:
alibabaCloudAccessKeyId:
type: string
description: Alibaba Cloud Access Key ID
alibabaCloudAccessKeySecret:
type: string
description: Alibaba Cloud Access Key Secret
alibabaCloudSecurityToken:
type: string
default: ""
description: Alibaba Cloud Security Token (optional)
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({
command: 'alibabacloud-dms-mcp-server',
args: [],
env: {
ALIBABA_CLOUD_ACCESS_KEY_ID: config.alibabaCloudAccessKeyId,
ALIBABA_CLOUD_ACCESS_KEY_SECRET: config.alibabaCloudAccessKeySecret,
ALIBABA_CLOUD_SECURITY_TOKEN: config.alibabaCloudSecurityToken || ''
}
})
exampleConfig:
alibabaCloudAccessKeyId: YOUR_ACCESS_KEY_ID
alibabaCloudAccessKeySecret: YOUR_ACCESS_KEY_SECRET
alibabaCloudSecurityToken: ""