Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 277d941

Browse files
Deployment: Dockerfile and Smithery config (#1)
* Add Dockerfile * Add Smithery configuration * Update README * Update Dockerfile --------- Co-authored-by: smithery-ai[bot] <194235850+smithery-ai[bot]@users.noreply.github.com> Co-authored-by: 诺墨 <[email protected]>
1 parent 6779c82 commit 277d941

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ Let AI operate Gitee repositories/Issues/Pull Requests for you through MCP
4040

4141
## Usage
4242

43+
### Installing via Smithery
44+
45+
To install Gitee MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@normal-coder/gitee-mcp-server):
46+
47+
```bash
48+
npx -y @smithery/cli install @normal-coder/gitee-mcp-server --client claude
49+
```
50+
4351
### Configuration
4452

4553
- `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
177185
## Related Links
178186

179187
- [Model Context Protocol](https://modelcontextprotocol.io)
180-
- [Gitee](https://gitee.com)
188+
- [Gitee](https://gitee.com)

smithery.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
required:
9+
- giteePersonalAccessToken
10+
properties:
11+
giteePersonalAccessToken:
12+
type: string
13+
description: Gitee personal access token, required for authentication.
14+
giteeApiBaseUrl:
15+
type: string
16+
default: https://gitee.com/api/v5
17+
description: Optional Gitee API base URL
18+
commandFunction:
19+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
20+
|-
21+
(config) => ({
22+
command: 'node',
23+
args: ['dist/bin.js'],
24+
env: {
25+
GITEE_PERSONAL_ACCESS_TOKEN: config.giteePersonalAccessToken,
26+
GITEE_API_BASE_URL: config.giteeApiBaseUrl || 'https://gitee.com/api/v5'
27+
}
28+
})
29+
exampleConfig:
30+
giteePersonalAccessToken: <YOUR_GITEE_PERSONAL_ACCESS_TOKEN>
31+
giteeApiBaseUrl: https://gitee.com/api/v5

0 commit comments

Comments
 (0)