Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(mcp-grok): keep the Grok door out of the setup CLI's default selection so Claude and Cursor never list the studio tools twice

nirholas145f3dd1f3c8
diff --git a/prompts/x-grok/_generated/connector-probe-dev.json b/prompts/x-grok/_generated/connector-probe-dev.json
index 60b39ebc6..fdf725fef 100644
--- a/prompts/x-grok/_generated/connector-probe-dev.json
+++ b/prompts/x-grok/_generated/connector-probe-dev.json
@@ -1,8 +1,8 @@
{
"probe": "scripts/mcp-client-probe.mjs",
"base": "http://localhost:3107",
- "startedAt": "2026-10-08T22:14:49.103Z",
- "finishedAt": "2026-10-08T22:14:53.655Z",
+ "startedAt": "2026-10-08T22:17:53.384Z",
+ "finishedAt": "2026-10-08T22:17:58.700Z",
"sdkVersion": "1.32.1",
"clientProtocolVersion": "2025-11-25",
"apiKeyMode": "ran",
@@ -126,7 +126,7 @@
"call": {
"name": "search_catalog",
"ok": true,
- "ms": 303,
+ "ms": 267,
"contentItems": 1,
"structured": true
}
@@ -253,7 +253,7 @@
"call": {
"name": "getting_started",
"ok": true,
- "ms": 76,
+ "ms": 77,
"contentItems": 1,
"structured": true
}
@@ -344,7 +344,7 @@
"call": {
"name": "search_catalog",
"ok": true,
- "ms": 11,
+ "ms": 12,
"contentItems": 1,
"structured": true
}
@@ -368,7 +368,7 @@
"call": {
"name": "search_catalog",
"ok": true,
- "ms": 9,
+ "ms": 10,
"contentItems": 1,
"structured": true
}
@@ -381,7 +381,7 @@
"name": "Grok",
"endpoint": "https://three.ws/api/mcp-grok",
"url": "http://localhost:3107/api/mcp-grok",
- "auth": "none for the free 3D tools; OAuth 2.1 or a connector API key adds the account's agent tools",
+ "auth": "OAuth 2.1 or a connector API key for the account's agent tools; none needed for the free 3D tools",
"expects": {
"anonymous": true,
"oauth": true,
@@ -391,7 +391,7 @@
"initialize": {
"status": 200,
"contentType": "application/json; charset=utf-8",
- "sessionId": "grk_0fef4b53-53f1-4d93-b44e-3728bd24107c",
+ "sessionId": "grk_be6d0a67-c54f-482a-a8d3-39f8b9ebd633",
"wwwAuthenticate": null,
"protocolVersion": "2025-06-18",
"rpcError": null
@@ -452,7 +452,7 @@
"version": "1.0.0"
},
"protocolVersion": "2025-06-18",
- "sessionId": "grk_f75adff3-09b4-4f35-91d7-191f1ef9229f",
+ "sessionId": "grk_236b47a4-e793-4961-9b38-b26faa096b96",
"capabilities": [
"logging",
"tools"
@@ -462,7 +462,7 @@
"call": {
"name": "search_catalog",
"ok": true,
- "ms": 10,
+ "ms": 9,
"contentItems": 1,
"structured": true
}
@@ -500,7 +500,7 @@
"version": "1.0.0"
},
"protocolVersion": "2025-06-18",
- "sessionId": "grk_080d238d-4e40-4fd7-905a-4e95f1db5292",
+ "sessionId": "grk_a762756d-f05d-4d33-8beb-b4026b9f8ad2",
"capabilities": [
"logging",
"tools"
@@ -510,7 +510,7 @@
"call": {
"name": "search_catalog",
"ok": true,
- "ms": 85,
+ "ms": 81,
"contentItems": 1,
"structured": true
}
@@ -638,7 +638,7 @@
"call": {
"name": "getting_started",
"ok": true,
- "ms": 77,
+ "ms": 75,
"contentItems": 1,
"structured": true
}
@@ -765,7 +765,7 @@
"call": {
"name": "getting_started",
"ok": true,
- "ms": 75,
+ "ms": 76,
"contentItems": 1,
"structured": true
}
diff --git a/public/.well-known/mcp.json b/public/.well-known/mcp.json
index 65f33b020..46d844212 100644
--- a/public/.well-known/mcp.json
+++ b/public/.well-known/mcp.json
@@ -82,7 +82,7 @@
"name": "Grok",
"endpoint": "https://three.ws/api/mcp-grok",
"transport": "streamable-http",
- "auth": "none for the free 3D tools; OAuth 2.1 or a connector API key adds the account's agent tools",
+ "auth": "OAuth 2.1 or a connector API key for the account's agent tools; none needed for the free 3D tools",
"signIn": "https://three.ws/api/mcp-grok?auth=oauth",
"description": "One connector URL for Grok Bot and the xAI API: the free 3D studio with agent-ready links and no widgets, plus your agents, their memory and skills once signed in. Never lists a wallet or payment tool.",
"documentation": "https://three.ws/docs/grok"
diff --git a/tests/mcp-grok-accounts.test.js b/tests/mcp-grok-accounts.test.js
index f3d15aced..f31a55cce 100644
--- a/tests/mcp-grok-accounts.test.js
+++ b/tests/mcp-grok-accounts.test.js
@@ -80,7 +80,9 @@ const { spendScopeFor } = await import('../api/_mcp/policy.js');
const { dispatch: coreDispatch } = await import('../api/_mcp/dispatch.js');
const { toolCatalogFor } = await import('../api/_mcp-studio/dispatch.js');
const { GROK_ACCOUNT_TOOLS } = await import('../api/_mcp-studio/account-tools.js');
-const { parseWwwAuthenticate } = await import('../scripts/mcp-client-probe.mjs');
+const { parseWwwAuthenticate, authExpectations } = await import('../scripts/mcp-client-probe.mjs');
+const { hostedServers } = await import('../packages/three-ws-cli/src/servers.js');
+const { readFileSync } = await import('node:fs');
const ORIGIN = 'https://three.ws';
const USER = '9a8b7c6d-0000-4000-8000-0000000000bb';
@@ -328,3 +330,23 @@ describe('the OAuth door', () => {
expect(names).toContain('create_agent');
});
});
+
+describe('the directory entry', () => {
+ const directory = JSON.parse(readFileSync(new URL('../public/.well-known/mcp.json', import.meta.url), 'utf8'));
+ const entry = directory.servers.find((s) => s.endpoint === `${ORIGIN}/api/mcp-grok`);
+
+ it('is listed, open anonymously, and upgradeable by OAuth or a key', () => {
+ expect(entry).toBeDefined();
+ expect(authExpectations(entry.auth)).toEqual({ anonymous: true, oauth: true, apiKey: true });
+ expect(entry.signIn).toBe(`${ORIGIN}/api/mcp-grok?auth=oauth`);
+ });
+
+ // `npx three-ws setup` pre-selects every keyless server. This door repeats
+ // the free studio's fifteen tools for Grok, so a Claude or Cursor setup that
+ // pre-selected it would list each of them twice; it stays opt-in there.
+ it('is not pre-selected by the setup CLI, which already adds the free studio', () => {
+ const servers = hostedServers(directory, ORIGIN);
+ expect(servers.find((s) => s.path === '/api/mcp-grok').defaultSelected).toBe(false);
+ expect(servers.find((s) => s.path === '/api/mcp-studio').defaultSelected).toBe(true);
+ });
+});