@mintlify/common 1.0.976 → 1.0.978
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/dist/knownMcpClients.js
CHANGED
|
@@ -5,6 +5,10 @@ export const KNOWN_MCP_CLIENT_REDIRECT_ENTRIES = [
|
|
|
5
5
|
'chatgpt.com',
|
|
6
6
|
'chat.openai.com',
|
|
7
7
|
'cursor://anysphere.cursor-mcp',
|
|
8
|
+
'api.gumloop.com',
|
|
9
|
+
'beta.api.gumloop.com',
|
|
10
|
+
'staging.api.gumloop.com',
|
|
11
|
+
'api.gumstack.com',
|
|
8
12
|
];
|
|
9
13
|
export function isAllowedAdminMcpRedirectUri(uri, deploymentDomains) {
|
|
10
14
|
return isAllowedRedirectUri(uri, [...KNOWN_MCP_CLIENT_REDIRECT_ENTRIES, ...deploymentDomains]);
|
|
@@ -12,6 +12,10 @@ describe('isAllowedAdminMcpRedirectUri', () => {
|
|
|
12
12
|
expect(isAllowedAdminMcpRedirectUri('https://chatgpt.com/connector_oauth', [])).toBe(true);
|
|
13
13
|
expect(isAllowedAdminMcpRedirectUri('https://chat.openai.com/connector_oauth', [])).toBe(true);
|
|
14
14
|
expect(isAllowedAdminMcpRedirectUri('cursor://anysphere.cursor-mcp/callback', [])).toBe(true);
|
|
15
|
+
expect(isAllowedAdminMcpRedirectUri('https://api.gumloop.com/auth/callback', [])).toBe(true);
|
|
16
|
+
expect(isAllowedAdminMcpRedirectUri('https://beta.api.gumloop.com/auth/callback', [])).toBe(true);
|
|
17
|
+
expect(isAllowedAdminMcpRedirectUri('https://staging.api.gumloop.com/auth/callback', [])).toBe(true);
|
|
18
|
+
expect(isAllowedAdminMcpRedirectUri('https://api.gumstack.com/auth/callback', [])).toBe(true);
|
|
15
19
|
});
|
|
16
20
|
it('rejects unknown remote hosts when not allowlisted by the deployment', () => {
|
|
17
21
|
expect(isAllowedAdminMcpRedirectUri('https://attacker.example/cb', [])).toBe(false);
|