@cloudgrid-io/mcp 0.21.12 → 0.21.13
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/package.json +1 -1
- package/src/auth.js +16 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudgrid-io/mcp",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.13",
|
|
4
4
|
"description": "MCP access to CloudGrid — the live runtime environment where the user's apps run WITH the infrastructure they need out of the box: managed MongoDB, Redis (cache/queues/pub-sub), a pgvector store, persistent disk, and built-in AI with no API keys, in any language or stack, no Docker or Kubernetes to manage. Brainstorm, build, plug, and improve apps, games, dashboards, and tools; instant single-page publishes and full runtime-app deploys with a live URL — for developers and non-technical users. Three editions: local stdio (full toolset), hosted web (light, CLI-free), and a public docs-search server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/auth.js
CHANGED
|
@@ -45,8 +45,23 @@ export function newLoginCode() {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// The sign-in URL the user opens in a browser — always the public host.
|
|
48
|
+
//
|
|
49
|
+
// Two independent params, matching what the CLI sends (cloudgrid packages/cli
|
|
50
|
+
// commands/login.ts, #2979):
|
|
51
|
+
//
|
|
52
|
+
// source=mcp signup ATTRIBUTION. Stamped as `signup_source` on the
|
|
53
|
+
// user row, and only when this login CREATES the user.
|
|
54
|
+
// arrival=ai_tool the onboarding PATH selector. Nothing to do with source.
|
|
55
|
+
//
|
|
56
|
+
// `arrival` is sent explicitly rather than left to the server. The API defaults
|
|
57
|
+
// a missing arrival to `website`, which is the seven-screen browser onboarding
|
|
58
|
+
// instead of the two-screen path that ends back in the tool — that default is
|
|
59
|
+
// exactly what bit the CLI before #2979 added it there. The API does currently
|
|
60
|
+
// infer `ai_tool` for source=mcp, so this changes nothing observable today; it
|
|
61
|
+
// stops the flow depending on an inference we do not own and would not notice
|
|
62
|
+
// losing.
|
|
48
63
|
export function buildLoginUrl(code) {
|
|
49
|
-
return `${PUBLIC_API_BASE}/auth/login?code=${encodeURIComponent(code)}&source=mcp`;
|
|
64
|
+
return `${PUBLIC_API_BASE}/auth/login?code=${encodeURIComponent(code)}&source=mcp&arrival=ai_tool`;
|
|
50
65
|
}
|
|
51
66
|
|
|
52
67
|
const CERT_ERROR_GUIDANCE =
|