You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bdfda42
Browse filesBrowse the repository at this point in the historyBrowse files
An MCP client signed in to an account with no Executor Cloud organization is now told that Executor has moved and to connect `https://mcp.executor.sh/mcp`, instead of being sent to the web app.
"no organization in the token or the URL -> Forbidden naming Executor v2's MCP URL, with no lookup",
224
+
()=>
225
+
Effect.gen(function*(){
226
+
constselectors: Array<string>=[];
227
+
constoutcome=yield*authenticateWith(
228
+
Layer.succeed(McpOrganizationAuth)({
229
+
authorize: (_accountId,selector)=>{
230
+
selectors.push(selector);
231
+
returnEffect.succeed(null);
232
+
},
233
+
}),
234
+
stubAuthNoOrganization,
235
+
bareRequest,
236
+
);
237
+
expect(outcome).toEqual({
238
+
_tag: "Forbidden",
239
+
code: -32001,
240
+
message:
241
+
"Executor has moved. This account has no organization on executor.sh/mcp: connect https://mcp.executor.sh/mcp instead. If you belong to an organization on executor.sh, reconnect this server and sign in again to choose it.",
242
+
});
243
+
expect(selectors,"nothing names an organization to look up").toEqual([]);
244
+
}),
245
+
);
246
+
247
+
it.effect("a token naming no organization still opens the organization its URL pins",()=>
"Executor has moved. This account has no organization on executor.sh/mcp: connect https://mcp.executor.sh/mcp instead. If you belong to an organization on executor.sh, reconnect this server and sign in again to choose it.",
0 commit comments