MCP catalog: core-hub suggestion from MCP_HUB_URL (deployment data)
When the deployment sets MCP_HUB_URL (the Core installer now writes https://mcphub.$DOMAIN, the NEXTCLOUD_URL pattern), the MCP list appends a core-hub suggestion: the federated tool hub over SSE with the user's own mhub_ bearer token (DESIGN_MCP_HUB_AUTH.md step 3). Unset/invalid -> no suggestion; never a TIER fork. The UI renders it generically (Use prefills URL/transport/auth + token hint). Go test covers the env gate; regression fixture carries the entry.
This commit is contained in:
@@ -77,6 +77,7 @@ const mcpSuggestions = [
|
||||
{ kind: 'github', name: 'GitHub', url: 'https://api.githubcopilot.com/mcp/', transport: 'streamable-http', authKind: 'bearer', available: true, description: 'Repos, issues, pull requests, code search and Actions.', secretHint: 'GitHub personal access token (fine-grained recommended)', note: 'Append /readonly to the URL for read-only tools.' },
|
||||
{ kind: 'hubspot', name: 'HubSpot', url: 'https://mcp.hubspot.com', transport: 'streamable-http', authKind: 'bearer', available: false, description: 'CRM contacts, companies, deals, tickets and activities.', note: 'Requires OAuth 2.1 sign-in (PKCE) — HubSpot refuses token-only connections, and Superbrain\'s MCP client does not do OAuth flows yet.' },
|
||||
{ kind: 'make', name: 'Make', url: 'https://us1.make.com/mcp/v2', transport: 'streamable-http', authKind: 'bearer', available: true, description: 'Run your Make scenarios as tools; manage scenarios and data stores.', secretHint: 'Make API token with the mcp:use scope (Profile → API access)', note: 'Swap in your account\'s zone: eu1, eu2, us1 or us2.make.com.' },
|
||||
{ kind: 'core-hub', name: 'Core tool hub', url: 'https://mcphub.federatedcomputer.ai/sse', transport: 'sse', authKind: 'bearer', available: true, description: 'Files, calendar, contacts, repos and more from your core\'s apps — one connection.', secretHint: 'Your hub token (mhub_…, from your core operator)' },
|
||||
]
|
||||
let lastNextcloudConnect = null
|
||||
// Automations fixture: the sidebar dropdown and the /automations workspace
|
||||
@@ -928,8 +929,9 @@ try {
|
||||
await page.goto(`${base}/settings`)
|
||||
await page.getByRole('tab', { name: 'MCP' }).click()
|
||||
await page.getByText('Repos, issues, pull requests, code search and Actions.').waitFor()
|
||||
assert.equal(await page.getByRole('button', { name: 'Use', exact: true }).count(), 2, 'only token-connectable suggestions may offer Use')
|
||||
assert.equal(await page.getByRole('button', { name: 'Use', exact: true }).count(), 3, 'only token-connectable suggestions may offer Use')
|
||||
await page.getByText('OAuth required').waitFor()
|
||||
await page.getByText('https://mcphub.federatedcomputer.ai/sse').waitFor()
|
||||
await page.getByRole('button', { name: 'Use', exact: true }).first().click()
|
||||
assert.equal(await page.getByPlaceholder('https://mcp.example.tld/mcp').inputValue(), 'https://api.githubcopilot.com/mcp/')
|
||||
assert.equal(await page.getByPlaceholder('e.g. House gateway, Maps tools…').inputValue(), 'GitHub')
|
||||
|
||||
Reference in New Issue
Block a user