@faable/faable 4.17.0 → 4.17.1
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/dist/mcp/oauth.js +10 -3
- package/package.json +1 -1
package/dist/mcp/oauth.js
CHANGED
|
@@ -20,9 +20,16 @@ import { verify, createPublicKey, createHash } from 'node:crypto';
|
|
|
20
20
|
const AUTH_ISSUER = process.env.FAABLE_MCP_AUTH_ISSUER ?? 'https://faable.auth.faable.link';
|
|
21
21
|
const oauth_enabled = () => !!process.env.FAABLE_MCP_CLIENT_ID && !!process.env.FAABLE_MCP_CLIENT_SECRET;
|
|
22
22
|
// What the consent screen asks for on a first connection (Marc, 05-10:
|
|
23
|
-
// reads plus deploy, like the hosted server by default
|
|
24
|
-
// by step-up, the first time an
|
|
25
|
-
|
|
23
|
+
// reads plus deploy, like the hosted server by default; 18-10: plus the Auth
|
|
24
|
+
// reads). deploy:write and auth:write come by step-up, the first time an
|
|
25
|
+
// agent calls a tool that needs them. auth:read cannot: `tools/list` only
|
|
26
|
+
// shows what the connection was allowed, so without it the Auth tools never
|
|
27
|
+
// appear and no call ever asks for it (backlog §373).
|
|
28
|
+
const DEFAULT_SCOPES = [
|
|
29
|
+
'deploy:read',
|
|
30
|
+
'deploy:deploy',
|
|
31
|
+
'auth:read'
|
|
32
|
+
];
|
|
26
33
|
const ALL_SCOPES = [
|
|
27
34
|
'deploy:read',
|
|
28
35
|
'deploy:deploy',
|