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

Skip to content

Deployment: Dockerfile and Smithery config #1

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

Merged
merged 4 commits into from
Mar 12, 2025
Merged
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
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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)
- [Gitee](https://gitee.com)
31 changes: 31 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -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: <YOUR_GITEE_PERSONAL_ACCESS_TOKEN>
giteeApiBaseUrl: https://gitee.com/api/v5