@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.
Files changed (2) hide show
  1. package/dist/mcp/oauth.js +10 -3
  2. 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). deploy:write comes
24
- // by step-up, the first time an agent calls a tool that needs it.
25
- const DEFAULT_SCOPES = ['deploy:read', 'deploy:deploy'];
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "4.17.0",
3
+ "version": "4.17.1",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",