@studiometa/forge-mcp 0.2.5 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/dist/formatters.d.ts +101 -36
- package/dist/formatters.d.ts.map +1 -1
- package/dist/handlers/backups.d.ts.map +1 -1
- package/dist/handlers/batch.d.ts.map +1 -1
- package/dist/handlers/certificates.d.ts.map +1 -1
- package/dist/handlers/commands.d.ts.map +1 -1
- package/dist/handlers/context.d.ts.map +1 -1
- package/dist/handlers/daemons.d.ts.map +1 -1
- package/dist/handlers/database-users.d.ts.map +1 -1
- package/dist/handlers/databases.d.ts.map +1 -1
- package/dist/handlers/deployments.d.ts.map +1 -1
- package/dist/handlers/env.d.ts.map +1 -1
- package/dist/handlers/factory.d.ts +7 -37
- package/dist/handlers/factory.d.ts.map +1 -1
- package/dist/handlers/firewall-rules.d.ts.map +1 -1
- package/dist/handlers/help.d.ts.map +1 -1
- package/dist/handlers/index.d.ts +1 -0
- package/dist/handlers/index.d.ts.map +1 -1
- package/dist/handlers/monitors.d.ts.map +1 -1
- package/dist/handlers/nginx-config.d.ts.map +1 -1
- package/dist/handlers/nginx-templates.d.ts.map +1 -1
- package/dist/handlers/recipes.d.ts.map +1 -1
- package/dist/handlers/redirect-rules.d.ts.map +1 -1
- package/dist/handlers/scheduled-jobs.d.ts.map +1 -1
- package/dist/handlers/security-rules.d.ts.map +1 -1
- package/dist/handlers/servers.d.ts.map +1 -1
- package/dist/handlers/sites.d.ts.map +1 -1
- package/dist/handlers/ssh-keys.d.ts.map +1 -1
- package/dist/handlers/user.d.ts.map +1 -1
- package/dist/handlers/utils.d.ts +1 -1
- package/dist/handlers/utils.d.ts.map +1 -1
- package/dist/hints.d.ts +1 -1
- package/dist/hints.d.ts.map +1 -1
- package/dist/{http-uQlxqOji.js → http-K9wiprZX.js} +16 -12
- package/dist/http-K9wiprZX.js.map +1 -0
- package/dist/http.d.ts +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -10
- package/dist/index.js.map +1 -1
- package/dist/oauth.d.ts +1 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +42 -41
- package/dist/oauth.js.map +1 -1
- package/dist/server.js +2 -2
- package/dist/sessions.d.ts.map +1 -1
- package/dist/stdio.d.ts +4 -2
- package/dist/stdio.d.ts.map +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/{version-DnjoiQWK.js → version-CHrJu_54.js} +922 -364
- package/dist/version-CHrJu_54.js.map +1 -0
- package/package.json +4 -4
- package/skills/SKILL.md +14 -12
- package/dist/http-uQlxqOji.js.map +0 -1
- package/dist/version-DnjoiQWK.js.map +0 -1
package/README.md
CHANGED
|
@@ -34,14 +34,15 @@ Add to your Claude Desktop config:
|
|
|
34
34
|
"forge": {
|
|
35
35
|
"command": "forge-mcp",
|
|
36
36
|
"env": {
|
|
37
|
-
"FORGE_API_TOKEN": "your-api-token"
|
|
37
|
+
"FORGE_API_TOKEN": "your-api-token",
|
|
38
|
+
"FORGE_ORG": "your-organization-slug"
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
```
|
|
43
44
|
|
|
44
|
-
Alternatively, omit the `env` block and ask Claude to configure credentials using the `forge_configure` tool.
|
|
45
|
+
Alternatively, omit the `env` block and ask Claude to configure credentials using the `forge_configure` tool (accepts `apiToken` and `organizationSlug` parameters).
|
|
45
46
|
|
|
46
47
|
### Read-Only Mode
|
|
47
48
|
|
|
@@ -166,10 +167,10 @@ Use `resource: "batch"` to fan out multiple reads in a single round-trip (max 10
|
|
|
166
167
|
|
|
167
168
|
## Stdio-Only Tools
|
|
168
169
|
|
|
169
|
-
| Tool | Description
|
|
170
|
-
| ------------------ |
|
|
171
|
-
| `forge_configure` | Save API token to local config
|
|
172
|
-
| `forge_get_config` | Show current config (token masked) |
|
|
170
|
+
| Tool | Description |
|
|
171
|
+
| ------------------ | ---------------------------------------------------- |
|
|
172
|
+
| `forge_configure` | Save API token and organization slug to local config |
|
|
173
|
+
| `forge_get_config` | Show current config (token masked, org slug visible) |
|
|
173
174
|
|
|
174
175
|
## Audit Logging
|
|
175
176
|
|
package/dist/formatters.d.ts
CHANGED
|
@@ -7,43 +7,61 @@
|
|
|
7
7
|
* Keeping formatting in the MCP layer ensures executors remain pure data
|
|
8
8
|
* functions that can be reused by any adapter (CLI, SDK, etc.).
|
|
9
9
|
*/
|
|
10
|
-
import type {
|
|
10
|
+
import type { BackupConfigAttributes, BackgroundProcessAttributes, CertificateAttributes, CommandAttributes, DatabaseAttributes, DatabaseUserAttributes, DeploymentAttributes, FirewallRuleAttributes, MonitorAttributes, NginxTemplateAttributes, RecipeAttributes, RedirectRuleAttributes, ScheduledJobAttributes, SecurityRuleAttributes, ServerAttributes, SiteAttributes, SshKeyAttributes, UserAttributes } from "@studiometa/forge-api";
|
|
11
11
|
/**
|
|
12
12
|
* Format a list of servers.
|
|
13
13
|
*/
|
|
14
|
-
export declare function formatServerList(servers:
|
|
14
|
+
export declare function formatServerList(servers: (ServerAttributes & {
|
|
15
|
+
id: number;
|
|
16
|
+
})[]): string;
|
|
15
17
|
/**
|
|
16
18
|
* Format a single server.
|
|
17
19
|
*/
|
|
18
|
-
export declare function formatServer(server:
|
|
20
|
+
export declare function formatServer(server: ServerAttributes & {
|
|
21
|
+
id: number;
|
|
22
|
+
}): string;
|
|
19
23
|
/**
|
|
20
24
|
* Format a list of sites.
|
|
21
25
|
*/
|
|
22
|
-
export declare function formatSiteList(sites:
|
|
26
|
+
export declare function formatSiteList(sites: (SiteAttributes & {
|
|
27
|
+
id: number;
|
|
28
|
+
})[], serverId?: string): string;
|
|
23
29
|
/**
|
|
24
30
|
* Format a single site.
|
|
25
31
|
*/
|
|
26
|
-
export declare function formatSite(site:
|
|
32
|
+
export declare function formatSite(site: SiteAttributes & {
|
|
33
|
+
id: number;
|
|
34
|
+
}): string;
|
|
27
35
|
/**
|
|
28
36
|
* Format a list of databases.
|
|
29
37
|
*/
|
|
30
|
-
export declare function formatDatabaseList(databases:
|
|
38
|
+
export declare function formatDatabaseList(databases: (DatabaseAttributes & {
|
|
39
|
+
id: number;
|
|
40
|
+
})[]): string;
|
|
31
41
|
/**
|
|
32
42
|
* Format a single database.
|
|
33
43
|
*/
|
|
34
|
-
export declare function formatDatabase(db:
|
|
44
|
+
export declare function formatDatabase(db: DatabaseAttributes & {
|
|
45
|
+
id: number;
|
|
46
|
+
}): string;
|
|
35
47
|
/**
|
|
36
48
|
* Format a list of database users.
|
|
37
49
|
*/
|
|
38
|
-
export declare function formatDatabaseUserList(users:
|
|
50
|
+
export declare function formatDatabaseUserList(users: (DatabaseUserAttributes & {
|
|
51
|
+
id: number;
|
|
52
|
+
})[]): string;
|
|
39
53
|
/**
|
|
40
54
|
* Format a single database user.
|
|
41
55
|
*/
|
|
42
|
-
export declare function formatDatabaseUser(user:
|
|
56
|
+
export declare function formatDatabaseUser(user: DatabaseUserAttributes & {
|
|
57
|
+
id: number;
|
|
58
|
+
}): string;
|
|
43
59
|
/**
|
|
44
60
|
* Format a list of deployments.
|
|
45
61
|
*/
|
|
46
|
-
export declare function formatDeploymentList(deployments:
|
|
62
|
+
export declare function formatDeploymentList(deployments: (DeploymentAttributes & {
|
|
63
|
+
id: number;
|
|
64
|
+
})[]): string;
|
|
47
65
|
/**
|
|
48
66
|
* Format a deployment action result.
|
|
49
67
|
*
|
|
@@ -71,67 +89,96 @@ export declare function formatDeploymentScriptUpdated(siteId: string, serverId:
|
|
|
71
89
|
/**
|
|
72
90
|
* Format a list of certificates.
|
|
73
91
|
*/
|
|
74
|
-
export declare function formatCertificateList(certificates: ForgeCertificate[]): string;
|
|
75
92
|
/**
|
|
76
|
-
* Format a single certificate.
|
|
93
|
+
* Format a single certificate (v2: one certificate per domain).
|
|
77
94
|
*/
|
|
78
|
-
export declare function formatCertificate(cert:
|
|
95
|
+
export declare function formatCertificate(cert: CertificateAttributes & {
|
|
96
|
+
id: number;
|
|
97
|
+
}): string;
|
|
79
98
|
/**
|
|
80
99
|
* Format a list of daemons.
|
|
81
100
|
*/
|
|
82
|
-
export declare function formatDaemonList(daemons:
|
|
101
|
+
export declare function formatDaemonList(daemons: (BackgroundProcessAttributes & {
|
|
102
|
+
id: number;
|
|
103
|
+
})[]): string;
|
|
83
104
|
/**
|
|
84
105
|
* Format a single daemon.
|
|
85
106
|
*/
|
|
86
|
-
export declare function formatDaemon(daemon:
|
|
107
|
+
export declare function formatDaemon(daemon: BackgroundProcessAttributes & {
|
|
108
|
+
id: number;
|
|
109
|
+
}): string;
|
|
87
110
|
/**
|
|
88
111
|
* Format a list of firewall rules.
|
|
89
112
|
*/
|
|
90
|
-
export declare function formatFirewallRuleList(rules:
|
|
113
|
+
export declare function formatFirewallRuleList(rules: (FirewallRuleAttributes & {
|
|
114
|
+
id: number;
|
|
115
|
+
})[]): string;
|
|
91
116
|
/**
|
|
92
117
|
* Format a single firewall rule.
|
|
93
118
|
*/
|
|
94
|
-
export declare function formatFirewallRule(rule:
|
|
119
|
+
export declare function formatFirewallRule(rule: FirewallRuleAttributes & {
|
|
120
|
+
id: number;
|
|
121
|
+
}): string;
|
|
95
122
|
/**
|
|
96
123
|
* Format a list of monitors.
|
|
97
124
|
*/
|
|
98
|
-
export declare function formatMonitorList(monitors:
|
|
125
|
+
export declare function formatMonitorList(monitors: (MonitorAttributes & {
|
|
126
|
+
id: number;
|
|
127
|
+
})[]): string;
|
|
99
128
|
/**
|
|
100
129
|
* Format a single monitor.
|
|
101
130
|
*/
|
|
102
|
-
export declare function formatMonitor(monitor:
|
|
131
|
+
export declare function formatMonitor(monitor: MonitorAttributes & {
|
|
132
|
+
id: number;
|
|
133
|
+
}): string;
|
|
103
134
|
/**
|
|
104
135
|
* Format a list of SSH keys.
|
|
105
136
|
*/
|
|
106
|
-
export declare function formatSshKeyList(keys:
|
|
137
|
+
export declare function formatSshKeyList(keys: (SshKeyAttributes & {
|
|
138
|
+
id: number;
|
|
139
|
+
})[]): string;
|
|
107
140
|
/**
|
|
108
141
|
* Format a single SSH key.
|
|
109
142
|
*/
|
|
110
|
-
export declare function formatSshKey(key:
|
|
143
|
+
export declare function formatSshKey(key: SshKeyAttributes & {
|
|
144
|
+
id: number;
|
|
145
|
+
}): string;
|
|
111
146
|
/**
|
|
112
147
|
* Format a list of scheduled jobs.
|
|
113
148
|
*/
|
|
114
|
-
export declare function formatScheduledJobList(jobs:
|
|
149
|
+
export declare function formatScheduledJobList(jobs: (ScheduledJobAttributes & {
|
|
150
|
+
id: number;
|
|
151
|
+
})[]): string;
|
|
115
152
|
/**
|
|
116
153
|
* Format a single scheduled job.
|
|
117
154
|
*/
|
|
118
|
-
export declare function formatScheduledJob(job:
|
|
155
|
+
export declare function formatScheduledJob(job: ScheduledJobAttributes & {
|
|
156
|
+
id: number;
|
|
157
|
+
}): string;
|
|
119
158
|
/**
|
|
120
159
|
* Format a list of security rules.
|
|
121
160
|
*/
|
|
122
|
-
export declare function formatSecurityRuleList(rules:
|
|
161
|
+
export declare function formatSecurityRuleList(rules: (SecurityRuleAttributes & {
|
|
162
|
+
id: number;
|
|
163
|
+
})[]): string;
|
|
123
164
|
/**
|
|
124
165
|
* Format a single security rule.
|
|
125
166
|
*/
|
|
126
|
-
export declare function formatSecurityRule(rule:
|
|
167
|
+
export declare function formatSecurityRule(rule: SecurityRuleAttributes & {
|
|
168
|
+
id: number;
|
|
169
|
+
}): string;
|
|
127
170
|
/**
|
|
128
171
|
* Format a list of redirect rules.
|
|
129
172
|
*/
|
|
130
|
-
export declare function formatRedirectRuleList(rules:
|
|
173
|
+
export declare function formatRedirectRuleList(rules: (RedirectRuleAttributes & {
|
|
174
|
+
id: number;
|
|
175
|
+
})[]): string;
|
|
131
176
|
/**
|
|
132
177
|
* Format a single redirect rule.
|
|
133
178
|
*/
|
|
134
|
-
export declare function formatRedirectRule(rule:
|
|
179
|
+
export declare function formatRedirectRule(rule: RedirectRuleAttributes & {
|
|
180
|
+
id: number;
|
|
181
|
+
}): string;
|
|
135
182
|
/**
|
|
136
183
|
* Format nginx configuration content.
|
|
137
184
|
*/
|
|
@@ -139,35 +186,51 @@ export declare function formatNginxConfig(content: string): string;
|
|
|
139
186
|
/**
|
|
140
187
|
* Format a list of nginx templates.
|
|
141
188
|
*/
|
|
142
|
-
export declare function formatNginxTemplateList(templates:
|
|
189
|
+
export declare function formatNginxTemplateList(templates: (NginxTemplateAttributes & {
|
|
190
|
+
id: number;
|
|
191
|
+
})[]): string;
|
|
143
192
|
/**
|
|
144
193
|
* Format a single nginx template.
|
|
145
194
|
*/
|
|
146
|
-
export declare function formatNginxTemplate(template:
|
|
195
|
+
export declare function formatNginxTemplate(template: NginxTemplateAttributes & {
|
|
196
|
+
id: number;
|
|
197
|
+
}): string;
|
|
147
198
|
/**
|
|
148
199
|
* Format a list of backup configurations.
|
|
149
200
|
*/
|
|
150
|
-
export declare function formatBackupConfigList(backups:
|
|
201
|
+
export declare function formatBackupConfigList(backups: (BackupConfigAttributes & {
|
|
202
|
+
id: number;
|
|
203
|
+
})[]): string;
|
|
151
204
|
/**
|
|
152
205
|
* Format a single backup configuration.
|
|
153
206
|
*/
|
|
154
|
-
export declare function formatBackupConfig(backup:
|
|
207
|
+
export declare function formatBackupConfig(backup: BackupConfigAttributes & {
|
|
208
|
+
id: number;
|
|
209
|
+
}): string;
|
|
155
210
|
/**
|
|
156
211
|
* Format a list of recipes.
|
|
157
212
|
*/
|
|
158
|
-
export declare function formatRecipeList(recipes:
|
|
213
|
+
export declare function formatRecipeList(recipes: (RecipeAttributes & {
|
|
214
|
+
id: number;
|
|
215
|
+
})[]): string;
|
|
159
216
|
/**
|
|
160
217
|
* Format a single recipe.
|
|
161
218
|
*/
|
|
162
|
-
export declare function formatRecipe(recipe:
|
|
219
|
+
export declare function formatRecipe(recipe: RecipeAttributes & {
|
|
220
|
+
id: number;
|
|
221
|
+
}): string;
|
|
163
222
|
/**
|
|
164
223
|
* Format a list of commands.
|
|
165
224
|
*/
|
|
166
|
-
export declare function formatCommandList(commands:
|
|
225
|
+
export declare function formatCommandList(commands: (CommandAttributes & {
|
|
226
|
+
id: number;
|
|
227
|
+
})[]): string;
|
|
167
228
|
/**
|
|
168
229
|
* Format a single command.
|
|
169
230
|
*/
|
|
170
|
-
export declare function formatCommand(command:
|
|
231
|
+
export declare function formatCommand(command: CommandAttributes & {
|
|
232
|
+
id: number;
|
|
233
|
+
}): string;
|
|
171
234
|
/**
|
|
172
235
|
* Format environment variables content.
|
|
173
236
|
*/
|
|
@@ -175,7 +238,9 @@ export declare function formatEnv(content: string): string;
|
|
|
175
238
|
/**
|
|
176
239
|
* Format the authenticated user.
|
|
177
240
|
*/
|
|
178
|
-
export declare function formatUser(user:
|
|
241
|
+
export declare function formatUser(user: UserAttributes & {
|
|
242
|
+
id: number;
|
|
243
|
+
}): string;
|
|
179
244
|
/**
|
|
180
245
|
* Format a deleted resource confirmation.
|
|
181
246
|
*/
|
package/dist/formatters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../src/formatters.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../src/formatters.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAI/B;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO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xE;AAID;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAEzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backups.d.ts","sourceRoot":"","sources":["../../src/handlers/backups.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"backups.d.ts","sourceRoot":"","sources":["../../src/handlers/backups.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa,+IAsDxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../src/handlers/batch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKzE,KAAK,YAAY,GAAG,CAClB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,cAAc,KAChB,OAAO,CAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../src/handlers/batch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKzE,KAAK,YAAY,GAAG,CAClB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,cAAc,KAChB,OAAO,CAAC,UAAU,CAAC,CAAC;AAyCzB;;GAEG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,cAAc,EACnB,cAAc,EAAE,YAAY,GAC3B,OAAO,CAAC,UAAU,CAAC,CAuFrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificates.d.ts","sourceRoot":"","sources":["../../src/handlers/certificates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"certificates.d.ts","sourceRoot":"","sources":["../../src/handlers/certificates.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,kBAAkB,+IAqC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/handlers/commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/handlers/commands.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,+IA0BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/handlers/context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/handlers/context.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGzE;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,UAAU,CAAC,CA0BrB;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,UAAU,CAAC,CAyBrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemons.d.ts","sourceRoot":"","sources":["../../src/handlers/daemons.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"daemons.d.ts","sourceRoot":"","sources":["../../src/handlers/daemons.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,aAAa,+IA4CxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-users.d.ts","sourceRoot":"","sources":["../../src/handlers/database-users.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,mBAAmB,+
|
|
1
|
+
{"version":3,"file":"database-users.d.ts","sourceRoot":"","sources":["../../src/handlers/database-users.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,mBAAmB,+IAwC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databases.d.ts","sourceRoot":"","sources":["../../src/handlers/databases.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"databases.d.ts","sourceRoot":"","sources":["../../src/handlers/databases.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,+IA+B1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../src/handlers/deployments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../src/handlers/deployments.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIzE;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,UAAU,CAAC,CAyDrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/handlers/env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/handlers/env.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS,+IA2BpB,CAAC"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Encapsulates the repetitive list/get/create/update/delete pattern
|
|
5
5
|
* shared by all MCP resource handlers.
|
|
6
6
|
*/
|
|
7
|
+
import * as v from "valibot";
|
|
7
8
|
import type { ExecutorContext, ExecutorResult } from "@studiometa/forge-core";
|
|
8
9
|
import type { ContextualHints } from "../hints.ts";
|
|
9
10
|
import type { CommonArgs, HandlerContext, ToolResult } from "./types.ts";
|
|
@@ -15,57 +16,26 @@ export interface ResourceHandlerConfig {
|
|
|
15
16
|
resource: string;
|
|
16
17
|
/** Valid actions for this resource */
|
|
17
18
|
actions: string[];
|
|
18
|
-
/**
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Valibot schemas for input validation per action.
|
|
21
|
+
* When provided, args are validated through the schema before calling the executor.
|
|
22
|
+
*/
|
|
23
|
+
inputSchemas?: Record<string, v.GenericSchema>;
|
|
20
24
|
/** Executor functions keyed by action name */
|
|
21
25
|
executors: Record<string, (options: any, ctx: ExecutorContext) => Promise<ExecutorResult<unknown>>>;
|
|
22
26
|
/**
|
|
23
27
|
* Generate contextual hints for the get action response.
|
|
24
|
-
*
|
|
25
|
-
* Called with the executor result data and the resource id.
|
|
26
|
-
* Only injected when `ctx.includeHints` is true.
|
|
27
28
|
*/
|
|
28
|
-
hints?: (data: unknown, id: string) => ContextualHints;
|
|
29
|
+
hints?: (data: unknown, id: string, args: CommonArgs) => ContextualHints;
|
|
29
30
|
/** Map tool args to executor options. Defaults to pass-through. */
|
|
30
31
|
mapOptions?: (action: string, args: CommonArgs) => Record<string, unknown>;
|
|
31
32
|
/**
|
|
32
33
|
* Format the executor result data into human-readable text for MCP output.
|
|
33
|
-
*
|
|
34
|
-
* Called with the executor result data and the tool args when compact mode
|
|
35
|
-
* is enabled. If not provided, the data is JSON-serialized.
|
|
36
34
|
*/
|
|
37
35
|
formatResult?: (action: string, data: any, args: CommonArgs) => string;
|
|
38
36
|
}
|
|
39
37
|
/**
|
|
40
38
|
* Create a resource handler from configuration.
|
|
41
|
-
*
|
|
42
|
-
* Returns a function that routes actions to the correct executor,
|
|
43
|
-
* validates required fields, and formats results.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```typescript
|
|
47
|
-
* export const handleDatabases = createResourceHandler({
|
|
48
|
-
* resource: 'databases',
|
|
49
|
-
* actions: ['list', 'get', 'create', 'delete'],
|
|
50
|
-
* requiredFields: {
|
|
51
|
-
* list: ['server_id'],
|
|
52
|
-
* get: ['server_id', 'id'],
|
|
53
|
-
* create: ['server_id', 'name'],
|
|
54
|
-
* delete: ['server_id', 'id'],
|
|
55
|
-
* },
|
|
56
|
-
* executors: {
|
|
57
|
-
* list: listDatabases,
|
|
58
|
-
* get: getDatabase,
|
|
59
|
-
* create: createDatabase,
|
|
60
|
-
* delete: deleteDatabase,
|
|
61
|
-
* },
|
|
62
|
-
* formatResult: (action, data) => {
|
|
63
|
-
* if (action === 'list') return formatDatabaseList(data);
|
|
64
|
-
* if (action === 'get') return formatDatabase(data);
|
|
65
|
-
* return 'Done.';
|
|
66
|
-
* },
|
|
67
|
-
* });
|
|
68
|
-
* ```
|
|
69
39
|
*/
|
|
70
40
|
export declare function createResourceHandler(config: ResourceHandlerConfig): (action: string, args: CommonArgs, ctx: HandlerContext) => Promise<ToolResult>;
|
|
71
41
|
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/handlers/factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIzE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,uC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D;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,qBAAqB,GAC5B,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC,UAAU,CAAC,CAiFhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firewall-rules.d.ts","sourceRoot":"","sources":["../../src/handlers/firewall-rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"firewall-rules.d.ts","sourceRoot":"","sources":["../../src/handlers/firewall-rules.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB,+IA+B9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/handlers/help.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/handlers/help.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA+rB7C;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAQvD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,UAAU,CAa/C"}
|
package/dist/handlers/index.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ export type { ToolResult } from "./types.ts";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function executeToolWithCredentials(name: string, args: Record<string, unknown>, credentials: {
|
|
18
18
|
apiToken: string;
|
|
19
|
+
organizationSlug?: string;
|
|
19
20
|
}): Promise<ToolResult>;
|
|
20
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,OAAO,KAAK,EAA8B,UAAU,EAAE,MAAM,YAAY,CAAC;AAgCzE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA0E7C;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,WAAW,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,OAAO,KAAK,EAA8B,UAAU,EAAE,MAAM,YAAY,CAAC;AAgCzE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA0E7C;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,WAAW,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3D,OAAO,CAAC,UAAU,CAAC,CA+HrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.d.ts","sourceRoot":"","sources":["../../src/handlers/monitors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"monitors.d.ts","sourceRoot":"","sources":["../../src/handlers/monitors.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,+IAoCzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nginx-config.d.ts","sourceRoot":"","sources":["../../src/handlers/nginx-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nginx-config.d.ts","sourceRoot":"","sources":["../../src/handlers/nginx-config.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,+IA2B5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nginx-templates.d.ts","sourceRoot":"","sources":["../../src/handlers/nginx-templates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nginx-templates.d.ts","sourceRoot":"","sources":["../../src/handlers/nginx-templates.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB,+IAmC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../src/handlers/recipes.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../src/handlers/recipes.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,aAAa,+IA8CxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redirect-rules.d.ts","sourceRoot":"","sources":["../../src/handlers/redirect-rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redirect-rules.d.ts","sourceRoot":"","sources":["../../src/handlers/redirect-rules.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB,+IAmC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-jobs.d.ts","sourceRoot":"","sources":["../../src/handlers/scheduled-jobs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scheduled-jobs.d.ts","sourceRoot":"","sources":["../../src/handlers/scheduled-jobs.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB,+IAkC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-rules.d.ts","sourceRoot":"","sources":["../../src/handlers/security-rules.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB,+
|
|
1
|
+
{"version":3,"file":"security-rules.d.ts","sourceRoot":"","sources":["../../src/handlers/security-rules.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB,+IA8C9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/handlers/servers.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/handlers/servers.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA2EzE;;;GAGG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,UAAU,CAAC,CAKrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../../src/handlers/sites.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../../src/handlers/sites.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAiFzE;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,UAAU,CAAC,CAKrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssh-keys.d.ts","sourceRoot":"","sources":["../../src/handlers/ssh-keys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ssh-keys.d.ts","sourceRoot":"","sources":["../../src/handlers/ssh-keys.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,+IA+BxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/handlers/user.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/handlers/user.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,+IASrB,CAAC"}
|
package/dist/handlers/utils.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { UserInputError } from "../errors.ts";
|
|
|
7
7
|
* - When `data` is an object/array, `structuredContent` is `{ result: data }` and
|
|
8
8
|
* the text representation is the JSON-serialized form.
|
|
9
9
|
*/
|
|
10
|
-
export declare function jsonResult(data:
|
|
10
|
+
export declare function jsonResult(data: unknown): ToolResult;
|
|
11
11
|
/**
|
|
12
12
|
* Validate an ID-like value (must be alphanumeric/dashes only).
|
|
13
13
|
* Prevents path traversal via `../` in URL segments.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/handlers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/handlers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,CAMpD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAMvD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAehG"}
|
package/dist/hints.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export declare function getDaemonHints(serverId: string, daemonId: string): Cont
|
|
|
39
39
|
/**
|
|
40
40
|
* Hints after getting a certificate.
|
|
41
41
|
*/
|
|
42
|
-
export declare function getCertificateHints(serverId: string, siteId: string,
|
|
42
|
+
export declare function getCertificateHints(serverId: string, siteId: string, domainId: string): ContextualHints;
|
|
43
43
|
/**
|
|
44
44
|
* Hints after getting a firewall rule.
|
|
45
45
|
*/
|
package/dist/hints.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hints.d.ts","sourceRoot":"","sources":["../src/hints.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,UAAU,YAAY;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,iBAAiB,CAAC,EAAE,YAAY,EAAE,CAAC;IACnC,cAAc,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,EAAE,CAAC;CACzE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CAoChE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"hints.d.ts","sourceRoot":"","sources":["../src/hints.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,UAAU,YAAY;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,C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