The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs(mcp): installation instructions for Kiro IDE (#42121)
Matt Rossman0ef949849d5f
diff --git a/apps/docs/public/img/mcp-clients/kiro-dark-icon.svg b/apps/docs/public/img/mcp-clients/kiro-dark-icon.svgnew file mode 100644index 00000000000..ef4abd2d85d--- /dev/null+++ b/apps/docs/public/img/mcp-clients/kiro-dark-icon.svg@@ -0,0 +1,11 @@+<svg width="200" height="200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect width="1200" height="1200" rx="260" fill="#9046FF"/>+<mask id="mask0" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="272" y="202" width="655" height="796">+<path d="M926.578 202.793H272.637V997.857H926.578V202.793Z" fill="white"/>+</mask>+<g mask="url(#mask0)">+<path d="M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z" fill="white"/>+<path d="M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z" fill="black"/>+<path d="M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z" fill="black"/>+</g>+</svg>diff --git a/apps/docs/public/img/mcp-clients/kiro-icon.svg b/apps/docs/public/img/mcp-clients/kiro-icon.svgnew file mode 100644index 00000000000..ef4abd2d85d--- /dev/null+++ b/apps/docs/public/img/mcp-clients/kiro-icon.svg@@ -0,0 +1,11 @@+<svg width="200" height="200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect width="1200" height="1200" rx="260" fill="#9046FF"/>+<mask id="mask0" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="272" y="202" width="655" height="796">+<path d="M926.578 202.793H272.637V997.857H926.578V202.793Z" fill="white"/>+</mask>+<g mask="url(#mask0)">+<path d="M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z" fill="white"/>+<path d="M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z" fill="black"/>+<path d="M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z" fill="black"/>+</g>+</svg>diff --git a/apps/studio/public/img/mcp-clients/kiro-dark-icon.svg b/apps/studio/public/img/mcp-clients/kiro-dark-icon.svgnew file mode 100644index 00000000000..ef4abd2d85d--- /dev/null+++ b/apps/studio/public/img/mcp-clients/kiro-dark-icon.svg@@ -0,0 +1,11 @@+<svg width="200" height="200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect width="1200" height="1200" rx="260" fill="#9046FF"/>+<mask id="mask0" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="272" y="202" width="655" height="796">+<path d="M926.578 202.793H272.637V997.857H926.578V202.793Z" fill="white"/>+</mask>+<g mask="url(#mask0)">+<path d="M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z" fill="white"/>+<path d="M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z" fill="black"/>+<path d="M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z" fill="black"/>+</g>+</svg>diff --git a/apps/studio/public/img/mcp-clients/kiro-icon.svg b/apps/studio/public/img/mcp-clients/kiro-icon.svgnew file mode 100644index 00000000000..ef4abd2d85d--- /dev/null+++ b/apps/studio/public/img/mcp-clients/kiro-icon.svg@@ -0,0 +1,11 @@+<svg width="200" height="200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect width="1200" height="1200" rx="260" fill="#9046FF"/>+<mask id="mask0" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="272" y="202" width="655" height="796">+<path d="M926.578 202.793H272.637V997.857H926.578V202.793Z" fill="white"/>+</mask>+<g mask="url(#mask0)">+<path d="M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z" fill="white"/>+<path d="M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z" fill="black"/>+<path d="M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z" fill="black"/>+</g>+</svg>diff --git a/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.tsx b/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.tsxindex 6697da68b1c..c476dcf5fd5 100644--- a/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.tsx+++ b/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.tsx@@ -129,6 +129,7 @@ export function McpConfigPanel({clientConfig={clientConfig}onCopyCallback={onCopyCallback}onInstallCallback={onInstallCallback}+ isPlatform={isPlatform}/></div></div>diff --git a/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationDisplay.tsx b/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationDisplay.tsxindex dcc4a81de1f..c72efd54558 100644--- a/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationDisplay.tsx+++ b/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationDisplay.tsx@@ -17,6 +17,7 @@ interface McpConfigurationDisplayProps {basePath: stringonCopyCallback: (type?: McpOnCopyCallback) => voidonInstallCallback?: () => void+ isPlatform?: boolean}type ConfigFormat = CodeBlockLang | 'toml'@@ -29,12 +30,14 @@ export function McpConfigurationDisplay({basePath,onCopyCallback,onInstallCallback,+ isPlatform,}: McpConfigurationDisplayProps) {const mcpButtonData = getMcpButtonData({basePath,theme,client: selectedClient,clientConfig,+ isPlatform,})// Extract file extension and determine format@@ -69,7 +72,9 @@ export function McpConfigurationDisplay({<div className={cn('space-y-4', className)}>{mcpButtonData && (<>- <div className="text-xs text-foreground-light">Install in one click:</div>+ <div className="text-xs text-foreground-light">+ {selectedClient.deepLinkDescription ?? 'Install in one click:'}+ </div><Button type="secondary" size="small" asChild><ahref={mcpButtonData.deepLink}@@ -95,25 +100,26 @@ export function McpConfigurationDisplay({selectedClient.primaryInstructions(clientConfig, onCopyCallback)}{selectedClient.configFile && (- <div className="text-xs text-foreground-light">- {selectedClient.primaryInstructions- ? 'Alternatively, add'- : mcpButtonData- ? 'Or add'- : 'Add'}{' '}- this configuration to{' '}- <code className="px-1 py-0.5 bg-surface-200 rounded">{selectedClient.configFile}</code>:- </div>+ <>+ <div className="text-xs text-foreground-light">+ {selectedClient.primaryInstructions+ ? 'Alternatively, add'+ : mcpButtonData+ ? 'Or add'+ : 'Add'}{' '}+ this configuration to{' '}+ <code className="px-1 py-0.5 bg-surface-200 rounded">{selectedClient.configFile}</code>:+ </div>+ <CodeBlock+ value={configValue}+ language={displayLanguage}+ className="max-h-64 overflow-y-auto"+ focusable={false}+ onCopyCallback={() => onCopyCallback?.('config')}+ />+ </>)}- <CodeBlock- value={configValue}- language={displayLanguage}- className="max-h-64 overflow-y-auto"- focusable={false}- onCopyCallback={() => onCopyCallback?.('config')}- />-{selectedClient.alternateInstructions &&selectedClient.alternateInstructions(clientConfig, onCopyCallback)}diff --git a/packages/ui-patterns/src/McpUrlBuilder/constants.tsx b/packages/ui-patterns/src/McpUrlBuilder/constants.tsxindex b8d38e495c0..854cd2ec364 100644--- a/packages/ui-patterns/src/McpUrlBuilder/constants.tsx+++ b/packages/ui-patterns/src/McpUrlBuilder/constants.tsx@@ -438,6 +438,31 @@ export const MCP_CLIENTS: McpClient[] = [</div>),},+ {+ key: 'kiro',+ label: 'Kiro',+ icon: 'kiro',+ configFile: '~/.kiro/settings/mcp.json',+ externalDocsUrl: 'https://kiro.dev/docs/mcp/',+ generateDeepLink: (_config, options) => {+ const power = options?.isPlatform ? 'supabase-hosted' : 'supabase-local'+ return `https://kiro.dev/launch/powers/${power}`+ },+ deepLinkDescription: (+ <>+ Install the Supabase{' '}+ <a+ href="https://kiro.dev/docs/powers/"+ target="_blank"+ rel="noopener noreferrer"+ className="text-brand hover:underline"+ >+ power+ </a>{' '}+ for Kiro. This bundles the Supabase MCP server and steering files for best practices.+ </>+ ),+ },]export const DEFAULT_MCP_URL_PLATFORM = 'http://localhost:8080/mcp'diff --git a/packages/ui-patterns/src/McpUrlBuilder/types.ts b/packages/ui-patterns/src/McpUrlBuilder/types.tsindex 6a2dee54424..92a6913737b 100644--- a/packages/ui-patterns/src/McpUrlBuilder/types.ts+++ b/packages/ui-patterns/src/McpUrlBuilder/types.ts@@ -6,6 +6,10 @@ export interface McpFeatureGroup {export type McpOnCopyCallback = 'url' | 'config' | 'command'+export interface McpClientDeepLinkOptions {+ isPlatform?: boolean+}+export interface McpClient {key: stringlabel: string@@ -13,8 +17,10 @@ export interface McpClient {docsUrl?: stringexternalDocsUrl?: stringconfigFile?: string- generateDeepLink?: (config: McpClientConfig) => string | null+ generateDeepLink?: (config: McpClientConfig, options?: McpClientDeepLinkOptions) => string | nulltransformConfig?: (config: McpClientBaseConfig) => McpClientConfig+ /** Optional custom description shown above the deep link button generated by generateDeepLink */+ deepLinkDescription?: React.ReactNodeprimaryInstructions?: (config: McpClientConfig,onCopy: (type?: McpOnCopyCallback) => voiddiff --git a/packages/ui-patterns/src/McpUrlBuilder/utils/getMcpButtonData.ts b/packages/ui-patterns/src/McpUrlBuilder/utils/getMcpButtonData.tsindex 098dc8bcaaa..357db14f09c 100644--- a/packages/ui-patterns/src/McpUrlBuilder/utils/getMcpButtonData.ts+++ b/packages/ui-patterns/src/McpUrlBuilder/utils/getMcpButtonData.ts@@ -5,6 +5,7 @@ interface GetMcpButtonDataOptions {theme?: 'light' | 'dark'client: McpClientclientConfig: McpClientConfig+ isPlatform?: boolean}export function getMcpButtonData({@@ -12,9 +13,10 @@ export function getMcpButtonData({theme,client,clientConfig,+ isPlatform,}: GetMcpButtonDataOptions) {if (client.generateDeepLink) {- const deepLink = client.generateDeepLink(clientConfig)+ const deepLink = client.generateDeepLink(clientConfig, { isPlatform })if (!deepLink) return null// If the theme is dark, the button background will be light and vice-versa