Skip to content

Commit 7a5e296

Browse files
committed
feat: Update Dockerfile and add smithery.yaml
- Simplify Dockerfile ENTRYPOINT - Add configuration for smithery.yaml with Gitee API settings
1 parent 3227471 commit 7a5e296

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ USER gitee
3737
EXPOSE 8000
3838

3939
# Run the application
40-
ENTRYPOINT ["/app/mcp-gitee", "--transport", "sse", "--sse-address", "0.0.0.0:8000"]
40+
ENTRYPOINT ["/app/mcp-gitee"]

smithery.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
type: object
6+
required:
7+
- accessToken
8+
properties:
9+
accessToken:
10+
type: string
11+
description: Gitee Personal Access Token
12+
apiBase:
13+
type: string
14+
default: https://gitee.com/api/v5
15+
description: Gitee API Base URL
16+
commandFunction:
17+
|-
18+
(config) => ({
19+
command: '/app/mcp-gitee',
20+
args: ['--transport', 'stdio'],
21+
env: {
22+
GITEE_ACCESS_TOKEN: config.accessToken,
23+
GITEE_API_BASE: config.apiBase || 'https://gitee.com/api/v5'
24+
}
25+
})
26+
exampleConfig:
27+
accessToken: dummy-token
28+
apiBase: https://gitee.com/api/v5

0 commit comments

Comments
 (0)