@sutraspaces/mcp-server 1.2.0 → 1.2.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/README.md +1 -1
- package/package.json +1 -1
- package/src/index.js +3 -3
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ Point your MCP client at `npx -y @sutraspaces/mcp-server`. The server communicat
|
|
|
86
86
|
| Variable | Required | Description |
|
|
87
87
|
|---|---|---|
|
|
88
88
|
| `SUTRA_API_TOKEN` | No* | Your Sutra Admin API token (`sutra_live_sk_...`). *Required only if not using OAuth. When set, OAuth is skipped. |
|
|
89
|
-
| `SUTRA_OAUTH_ISSUER` | No | OAuth issuer base URL (default: `https://sutra.co`). Must be `https://` (only loopback hosts may use `http://`). Separate from the Admin API URL. |
|
|
89
|
+
| `SUTRA_OAUTH_ISSUER` | No | OAuth issuer base URL (default: `https://api.sutra.co`). Must be `https://` (only loopback hosts may use `http://`). Separate from the Admin API URL. |
|
|
90
90
|
| `SUTRA_SCOPES` | No | Space-separated scopes to request during OAuth login (default: all scopes your account can authorize) |
|
|
91
91
|
| `SUTRA_CONFIG_DIR` | No | Directory for cached OAuth credentials (default: `~/.sutra`) |
|
|
92
92
|
| `SUTRA_BASE_URL` | No | Override the API URL (default: `https://api.sutra.co/api/admin/v1`) |
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import { clear, load } from "./auth/store.js";
|
|
|
33
33
|
const args = process.argv.slice(2);
|
|
34
34
|
|
|
35
35
|
if (args.includes("login")) {
|
|
36
|
-
const issuer = process.env.SUTRA_OAUTH_ISSUER || "https://sutra.co";
|
|
36
|
+
const issuer = process.env.SUTRA_OAUTH_ISSUER || "https://api.sutra.co";
|
|
37
37
|
try {
|
|
38
38
|
await login({ issuer });
|
|
39
39
|
process.exit(0);
|
|
@@ -44,7 +44,7 @@ if (args.includes("login")) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
if (args.includes("logout")) {
|
|
47
|
-
const issuer = process.env.SUTRA_OAUTH_ISSUER || "https://sutra.co";
|
|
47
|
+
const issuer = process.env.SUTRA_OAUTH_ISSUER || "https://api.sutra.co";
|
|
48
48
|
clear(issuer);
|
|
49
49
|
process.stderr.write("Logged out — cached credentials removed.\n");
|
|
50
50
|
process.exit(0);
|
|
@@ -56,7 +56,7 @@ if (args.includes("logout")) {
|
|
|
56
56
|
|
|
57
57
|
const SUTRA_API_TOKEN = process.env.SUTRA_API_TOKEN;
|
|
58
58
|
const SUTRA_BASE_URL = process.env.SUTRA_BASE_URL;
|
|
59
|
-
const SUTRA_OAUTH_ISSUER = process.env.SUTRA_OAUTH_ISSUER || "https://sutra.co";
|
|
59
|
+
const SUTRA_OAUTH_ISSUER = process.env.SUTRA_OAUTH_ISSUER || "https://api.sutra.co";
|
|
60
60
|
|
|
61
61
|
let client;
|
|
62
62
|
|