From eb0874667fa327cfcd0950ed4f13d8fc341e08fb Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Wed, 12 Mar 2025 08:52:56 +0000 Subject: [PATCH 1/4] Add Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 386660e..9b1736b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile FROM node:22.12-alpine AS builder # 复制项目文件 From 681360a9daa5c6b94c4138807fbad4a345437cf0 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Wed, 12 Mar 2025 08:52:57 +0000 Subject: [PATCH 2/4] Add Smithery configuration --- smithery.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..91f6526 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,31 @@ +# 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: + - giteePersonalAccessToken + properties: + giteePersonalAccessToken: + type: string + description: Gitee personal access token, required for authentication. + giteeApiBaseUrl: + type: string + default: https://gitee.com/api/v5 + description: Optional Gitee API base URL + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ + command: 'node', + args: ['dist/bin.js'], + env: { + GITEE_PERSONAL_ACCESS_TOKEN: config.giteePersonalAccessToken, + GITEE_API_BASE_URL: config.giteeApiBaseUrl || 'https://gitee.com/api/v5' + } + }) + exampleConfig: + giteePersonalAccessToken: + giteeApiBaseUrl: https://gitee.com/api/v5 From 49c453f7eb2054db99b0f61f32be35a757410482 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Wed, 12 Mar 2025 08:52:58 +0000 Subject: [PATCH 3/4] Update README --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a3f328..2203e96 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,14 @@ Let AI operate Gitee repositories/Issues/Pull Requests for you through MCP ## Usage +### Installing via Smithery + +To install Gitee MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@normal-coder/gitee-mcp-server): + +```bash +npx -y @smithery/cli install @normal-coder/gitee-mcp-server --client claude +``` + ### Configuration - `GITEE_API_BASE_URL`: Optional, Gitee OpenAPI Endpoint, default is `https://gitee.com/api/v5` @@ -177,4 +185,4 @@ Licensed under MIT License. You are free to use, modify and distribute the softw ## Related Links - [Model Context Protocol](https://modelcontextprotocol.io) -- [Gitee](https://gitee.com) \ No newline at end of file +- [Gitee](https://gitee.com) From 84fa3e26f76739d93dc5bfd040d69059b703b695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AF=BA=E5=A2=A8?= Date: Wed, 12 Mar 2025 17:26:31 +0800 Subject: [PATCH 4/4] Update Dockerfile --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9b1736b..386660e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ -# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile FROM node:22.12-alpine AS builder # 复制项目文件