Repository navigation
Expand file tree
/
Copy pathsmithery.yaml
More file actions
73 lines (71 loc) · 3.16 KB
/
Copy pathsmithery.yaml
File metadata and controls
73 lines (71 loc) · 3.16 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# 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: Deprecated (removed in next major (v3.0.0)); use GITLAB_PERMISSION_MODE=readonly instead
gitlabPermissionMode:
type: string
enum: [readonly, modify, full]
description: Permission level for exposed tools (readonly = read-only tools only, modify = no delete/teardown tools, full = all; default full). Replaces the deprecated gitlabReadOnlyMode / GITLAB_READ_ONLY_MODE.
gitlabToolsets:
type: string
description: Optional comma-separated list of toolsets to enable (e.g. projects,issues,merge_requests,pipelines)
gitlabMaskingEnabled:
type: boolean
description: Enable built-in text-response masking for GitLab tokens and IP addresses
default: false
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: Deprecated (removed in next major (v3.0.0)); use GITLAB_PERMISSION_MODE=readonly instead
gitlabPermissionMode:
type: string
enum: [readonly, modify, full]
description: Permission level for exposed tools (readonly = read-only tools only, modify = no delete/teardown tools, full = all; default full). Replaces the deprecated gitlabReadOnlyMode / GITLAB_READ_ONLY_MODE.
gitlabToolsets:
type: string
description: Optional comma-separated list of toolsets to enable (e.g. projects,issues,merge_requests,pipelines)
gitlabMaskingEnabled:
type: boolean
description: Enable built-in text-response masking for GitLab tokens and IP addresses
default: false
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.gitlabPermissionMode ? { GITLAB_PERMISSION_MODE: config.gitlabPermissionMode } : {}),
...(config.gitlabToolsets ? { GITLAB_TOOLSETS: config.gitlabToolsets } : {}),
...(config.gitlabMaskingEnabled !== undefined ? { GITLAB_MASKING_ENABLED: String(config.gitlabMaskingEnabled) } : {})
}
})
exampleConfig:
gitlabPersonalAccessToken: glpat-dummy-token
gitlabApiUrl: https://gitlab.com/api/v4