This repository was archived by the owner on Sep 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathftl-schema.json
More file actions
326 lines (326 loc) · 9.36 KB
/
ftl-schema.json
File metadata and controls
326 lines (326 loc) · 9.36 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "FtlConfig",
"description": "Root configuration structure for ftl.toml",
"type": "object",
"required": ["project"],
"properties": {
"project": {
"description": "Project metadata",
"$ref": "#/$defs/ProjectConfig"
},
"oauth": {
"description": "OpenID Connect authentication configuration (optional)",
"$ref": "#/$defs/OauthConfig"
},
"mcp": {
"description": "MCP component configuration",
"$ref": "#/$defs/McpConfig",
"default": {
"gateway": "ghcr.io/fastertools/mcp-gateway:0.0.11",
"authorizer": "ghcr.io/fastertools/mcp-authorizer:0.0.13",
"validate_arguments": false
}
},
"tools": {
"description": "Tool definitions",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/ToolConfig"
},
"default": {}
},
"variables": {
"description": "Application-level variables",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/ApplicationVariable"
},
"default": {}
}
},
"$defs": {
"ProjectConfig": {
"description": "Project metadata",
"type": "object",
"required": ["name"],
"properties": {
"name": {
"description": "Project name (alphanumeric, hyphens, underscores only, must start with letter)",
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$",
"minLength": 1
},
"version": {
"description": "Semantic version (e.g., 0.1.0)",
"type": "string",
"default": "0.1.0",
"minLength": 1
},
"description": {
"description": "Project description",
"type": "string",
"default": ""
},
"authors": {
"description": "Project authors",
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"access_control": {
"description": "Access control mode: 'public' (no auth), 'private' (user-level auth), 'org' (organization-wide auth), or 'custom' (custom OAuth)",
"type": "string",
"enum": ["public", "private", "org", "custom"],
"default": "public"
},
"default_registry": {
"description": "Default registry for component references (e.g., 'ghcr.io/myorg')",
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._\\-/]*[a-zA-Z0-9]$",
"minLength": 1
}
}
},
"OauthConfig": {
"description": "OpenID Connect authentication configuration",
"type": "object",
"required": ["issuer"],
"properties": {
"issuer": {
"description": "OAuth issuer URL",
"type": "string",
"minLength": 1
},
"audience": {
"description": "Expected audience for tokens",
"type": "string",
"default": ""
},
"jwks_uri": {
"description": "JWKS endpoint URL (auto-discovered if not set)",
"type": "string",
"default": ""
},
"public_key": {
"description": "Public key in PEM format (alternative to JWKS)",
"type": "string",
"default": ""
},
"algorithm": {
"description": "JWT signature algorithm (e.g., RS256, ES256)",
"type": "string",
"default": ""
},
"required_scopes": {
"description": "Comma-separated list of required scopes",
"type": "string",
"default": ""
},
"authorize_endpoint": {
"description": "OAuth authorization endpoint",
"type": "string",
"default": ""
},
"token_endpoint": {
"description": "OAuth token endpoint",
"type": "string",
"default": ""
},
"userinfo_endpoint": {
"description": "OAuth userinfo endpoint",
"type": "string",
"default": ""
}
}
},
"McpConfig": {
"description": "MCP component configuration",
"type": "object",
"properties": {
"gateway": {
"description": "MCP gateway component registry URI",
"type": "string",
"default": "ghcr.io/fastertools/mcp-gateway:0.0.11",
"minLength": 1
},
"authorizer": {
"description": "MCP authorizer component registry URI",
"type": "string",
"default": "ghcr.io/fastertools/mcp-authorizer:0.0.13",
"minLength": 1
},
"validate_arguments": {
"description": "Whether to validate tool call arguments",
"type": "boolean",
"default": false
}
}
},
"ToolConfig": {
"description": "Tool configuration",
"type": "object",
"required": ["wasm"],
"properties": {
"path": {
"description": "Path to tool directory relative to project root (for local tools only, defaults to tool name)",
"type": "string"
},
"wasm": {
"description": "Path to WASM file (local) or registry reference (e.g., 'ghcr.io/org/component:1.0.0')",
"type": "string",
"minLength": 1
},
"build": {
"description": "Build configuration (required for local tools, omitted for registry components)",
"$ref": "#/$defs/BuildConfig"
},
"profiles": {
"description": "Build profiles (optional, for advanced multi-profile builds)",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/BuildProfile"
}
},
"up": {
"description": "Up configuration for development mode",
"$ref": "#/$defs/UpConfig"
},
"deploy": {
"description": "Deployment configuration",
"$ref": "#/$defs/DeployConfig"
},
"allowed_outbound_hosts": {
"description": "Allowed outbound hosts for the tool",
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"variables": {
"description": "Tool-specific variables",
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
}
}
},
"BuildConfig": {
"description": "Build configuration for a tool",
"type": "object",
"required": ["command"],
"properties": {
"command": {
"description": "Build command to execute",
"type": "string",
"minLength": 1
},
"watch": {
"description": "Paths to watch for changes in development mode",
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"env": {
"description": "Environment variables to set during build",
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
}
}
},
"BuildProfile": {
"description": "A single build profile",
"type": "object",
"required": ["command"],
"properties": {
"command": {
"description": "Build command to execute",
"type": "string",
"minLength": 1
},
"watch": {
"description": "Paths to watch for changes in development mode",
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"env": {
"description": "Environment variables to set during build",
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
}
}
},
"UpConfig": {
"description": "Up configuration for development mode",
"type": "object",
"required": ["profile"],
"properties": {
"profile": {
"description": "Build profile to use for 'ftl up'",
"type": "string",
"minLength": 1
}
}
},
"DeployConfig": {
"description": "Deployment configuration for a tool",
"type": "object",
"required": ["profile"],
"properties": {
"profile": {
"description": "Build profile to use for deployment (e.g., release, production)",
"type": "string",
"minLength": 1
},
"name": {
"description": "Optional custom name suffix for the deployed tool",
"type": "string"
}
}
},
"ApplicationVariable": {
"description": "Application-level variable configuration",
"oneOf": [
{
"type": "object",
"properties": {
"default": {
"description": "Default value for the variable",
"type": "string"
}
},
"required": ["default"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"required": {
"description": "Whether the variable is required (must be true)",
"type": "boolean",
"const": true
}
},
"required": ["required"],
"additionalProperties": false
}
]
}
}
}