-
Notifications
You must be signed in to change notification settings - Fork 341
Expand file tree
/
Copy pathsmithery.yaml
More file actions
57 lines (55 loc) · 2.02 KB
/
Copy pathsmithery.yaml
File metadata and controls
57 lines (55 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
configSchema:
type: object
required:
- gitlabPersonalAccessToken
properties:
gitlabPersonalAccessToken:
type: string
description: GitLab Personal Access Token for local stdio use
gitlabApiUrl:
type: string
description: GitLab API base URL (e.g. https://gitlab.com/api/v4)
default: https://gitlab.com/api/v4
gitlabReadOnlyMode:
type: boolean
description: Set to true to expose only read-only tools and block write operations
default: false
gitlabToolsets:
type: string
description: Optional comma-separated list of toolsets to enable (e.g. projects,issues,merge_requests,pipelines)
startCommand:
type: stdio
configSchema:
type: object
required:
- gitlabPersonalAccessToken
properties:
gitlabPersonalAccessToken:
type: string
description: GitLab Personal Access Token for local stdio use
gitlabApiUrl:
type: string
description: GitLab API base URL (e.g. https://gitlab.com/api/v4)
default: https://gitlab.com/api/v4
gitlabReadOnlyMode:
type: boolean
description: Set to true to expose only read-only tools and block write operations
default: false
gitlabToolsets:
type: string
description: Optional comma-separated list of toolsets to enable (e.g. projects,issues,merge_requests,pipelines)
commandFunction: |-
(config) => ({
command: 'node',
args: ['build/index.js'],
env: {
GITLAB_PERSONAL_ACCESS_TOKEN: config.gitlabPersonalAccessToken,
...(config.gitlabApiUrl ? { GITLAB_API_URL: config.gitlabApiUrl } : {}),
...(config.gitlabReadOnlyMode !== undefined ? { GITLAB_READ_ONLY_MODE: String(config.gitlabReadOnlyMode) } : {}),
...(config.gitlabToolsets ? { GITLAB_TOOLSETS: config.gitlabToolsets } : {})
}
})
exampleConfig:
gitlabPersonalAccessToken: glpat-dummy-token
gitlabApiUrl: https://gitlab.com/api/v4