From fafd4b27c27763071b877d40eab703597ecd86c4 Mon Sep 17 00:00:00 2001 From: Diane Diaz Date: Thu, 7 Aug 2025 17:51:58 -0700 Subject: [PATCH] migrate streamable config to consolidated component --- documentation/docs/mcp/github-mcp.md | 9 +- documentation/docs/mcp/neon-mcp.md | 6 +- documentation/docs/mcp/square-mcp.md | 336 ++---------------- .../components/CLIExtensionInstructions.tsx | 95 +++-- .../CLIStreamExtensionInstructions.js | 244 ------------- 5 files changed, 99 insertions(+), 591 deletions(-) delete mode 100644 documentation/src/components/CLIStreamExtensionInstructions.js diff --git a/documentation/docs/mcp/github-mcp.md b/documentation/docs/mcp/github-mcp.md index 0ad4d2432722..42954fdbfeb9 100644 --- a/documentation/docs/mcp/github-mcp.md +++ b/documentation/docs/mcp/github-mcp.md @@ -6,7 +6,7 @@ description: Add GitHub MCP Server as a Goose Extension import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import YouTubeShortEmbed from '@site/src/components/YouTubeShortEmbed'; -import CLIStreamExtensionInstructions from '@site/src/components/CLIStreamExtensionInstructions'; +import CLIExtensionInstructions from '@site/src/components/CLIExtensionInstructions'; import { PanelLeft } from 'lucide-react'; @@ -55,11 +55,12 @@ These steps configure the Remote MCP Server. For other deployment options, see t - - diff --git a/documentation/docs/mcp/square-mcp.md b/documentation/docs/mcp/square-mcp.md index 7ea63649c31c..7f420064d3e4 100644 --- a/documentation/docs/mcp/square-mcp.md +++ b/documentation/docs/mcp/square-mcp.md @@ -7,6 +7,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import YouTubeShortEmbed from '@site/src/components/YouTubeShortEmbed'; import GooseDesktopInstaller from '@site/src/components/GooseDesktopInstaller'; +import CLIExtensionInstructions from '@site/src/components/CLIExtensionInstructions';
šŸŽ„ Square MCP Server Video Walkthrough @@ -32,6 +33,7 @@ Square offers two versions of the MCP server: Note that you'll need [Node.js](https://nodejs.org/) installed on your system to run installation commands, which use `npx`. ::: +## Configuration @@ -49,8 +51,6 @@ Note that you'll need [Node.js](https://nodejs.org/) installed on your system to ::: - ## Configuration - 1. [Launch the installer](https://mcp.squareup.com/goose) @@ -61,150 +61,18 @@ Note that you'll need [Node.js](https://nodejs.org/) installed on your system to - 1. Run the `configure` command: - ```sh - goose configure - ``` - - 2. Choose to add a `Command-line Extension` - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—† What type of extension would you like to add? - │ ā—‹ Built-in Extension - │ ā—‹ Command-line Extension (Run a local command or script) - // highlight-start - │ ā— Remote Extension (SSE) - // highlight-end - │ ā—‹ Remote Extension (Streaming HTTP) - ā”” - ``` - - 3. Give your extension a name - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Remote Extension (SSE) - │ - // highlight-start - ā—† What would you like to call this extension? - │ square-mcp-remote - // highlight-end - ā”” - ``` - - 4. Enter the SSE URI - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Remote Extension (SSE) - │ - ā—‡ What would you like to call this extension? - │ square-mcp-remote - │ - // highlight-start - ā—† What is the SSE endpoint URI? - │ https://mcp.squareup.com/sse - // highlight-end - ā”” - ``` - - 5. Enter the number of seconds Goose should wait for actions to complete before timing out. Default is 300s - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Remote Extension (SSE) - │ - ā—‡ What would you like to call this extension? - │ square-mcp-remote - │ - ā—† What is the SSE endpoint URI? - │ https://mcp.squareup.com/sse - │ - // highlight-start - ā—† Please set the timeout for this tool (in secs): - │ 300 - // highlight-end - ā”” - ``` - - 6. Choose to add a description. If you select "Yes" here, you will be prompted to enter a description for the extension. - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Remote Extension (SSE) - │ - ā—‡ What would you like to call this extension? - │ square-mcp-remote - │ - ā—† What is the SSE endpoint URI? - │ https://mcp.squareup.com/sse - │ - ā—† Please set the timeout for this tool (in secs): - │ 300 - │ - // highlight-start - ā—‡ Would you like to add a description? - │ No - // highlight-end - ā”” - ``` - - 7. Obtain a [Square Access Token](https://developer.squareup.com/apps) and paste it in. - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Remote Extension (SSE) - │ - ā—‡ What would you like to call this extension? - │ square-mcp-remote - │ - ā—† What is the SSE endpoint URI? - │ https://mcp.squareup.com/sse - │ - ā—‡ Please set the timeout for this tool (in secs): - │ 300 - │ - ā—‡ Would you like to add a description? - │ No - │ - // highlight-start - ā—† Would you like to add environment variables? - │ No - // highlight-end - │ - ā”” Added square-mcp-remote extension - ``` - + + + When you start the next session, Goose will open a browser where you can grant permissions and sign in to your Square account. + + - - - - - + :::tip TLDR @@ -230,9 +98,6 @@ Note that you'll need [Node.js](https://nodejs.org/) installed on your system to Note that you'll use `SANDBOX` -or- `PRODUCTION`, not both, and your `ACCESS_TOKEN` will either be a sandbox or production token, depending on which environment you choose. ::: - ## Configuration - - - - 1. Run the `configure` command: - ```sh - goose configure - ``` - - 1. Choose to add a `Command-line Extension` - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—† What type of extension would you like to add? - │ ā—‹ Built-in Extension - // highlight-start - │ ā— Command-line Extension (Run a local command or script) - // highlight-end - │ ā—‹ Remote Extension (SSE) - │ ā—‹ Remote Extension (Streaming HTTP) - ā”” - ``` - - 1. Give your extension a name - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Command-line Extension - │ - // highlight-start - ā—† What would you like to call this extension? - │ square-mcp - // highlight-end - ā”” - ``` - - 1. Enter the command - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Command-line Extension - │ - ā—‡ What would you like to call this extension? - │ square-mcp - │ - // highlight-start - ā—† What command should be run? - │ npx square-mcp-server start - // highlight-end - ā”” - ``` - - 1. Enter the number of seconds Goose should wait for actions to complete before timing out. Default is 300s - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Command-line Extension - │ - ā—‡ What would you like to call this extension? - │ square-mcp - │ - ā—‡ What command should be run? - │ npx square-mcp-server start - │ - // highlight-start - ā—† Please set the timeout for this tool (in secs): - │ 300 - // highlight-end - │ - ā”” - ``` - - 1. Choose to add a description. If you select "Yes" here, you will be prompted to enter a description for the extension. - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Command-line Extension - │ - ā—‡ What would you like to call this extension? - │ square-mcp - │ - ā—‡ What command should be run? - │ npx square-mcp-server start - │ - ā—† Please set the timeout for this tool (in secs): - │ 300 - │ - // highlight-start - ā—‡ Would you like to add a description? - │ No - // highlight-end - │ - ā”” - ``` - - 1. Obtain a [Square Access Token](https://developer.squareup.com/apps) and paste it in. - ```sh - ā”Œ goose-configure - │ - ā—‡ What would you like to configure? - │ Add Extension (Connect to a new extension) - │ - ā—‡ What type of extension would you like to add? - │ Command-line Extension - │ - ā—‡ What would you like to call this extension? - │ square-mcp - │ - ā—‡ What command should be run? - │ npx square-mcp-server start - │ - ā—‡ Please set the timeout for this tool (in secs): - │ 300 - │ - ā—‡ Would you like to add a description? - │ No - │ - // highlight-start - ā—† Would you like to add environment variables? - │ Yes - │ - ā—‡ Environment variable name: - │ ACCESS_TOKEN - │ - ā—‡ Environment variable value: - │ ā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗā–Ŗ - │ - ā—‡ Add another environment variable? - │ Yes - │ - ā—‡ Environment variable name: - │ SANDBOX - │ - ā—‡ Environment variable value: - │ true - // highlight-end - ā”” Added square-mcp extension - ``` - :::info - Change the `SANDBOX` key to `PRODUCTION` if using a production token - ::: - + + Obtain your Square Access Token and paste it in. Set either SANDBOX or PRODUCTION to true (the access token must match the environment) + + } + /> diff --git a/documentation/src/components/CLIExtensionInstructions.tsx b/documentation/src/components/CLIExtensionInstructions.tsx index 33cf9678b8ba..3d4305a29288 100644 --- a/documentation/src/components/CLIExtensionInstructions.tsx +++ b/documentation/src/components/CLIExtensionInstructions.tsx @@ -1,5 +1,6 @@ import React from 'react'; import CodeBlock from '@theme/CodeBlock'; +import Admonition from '@theme/Admonition'; interface EnvVar { key: string; @@ -8,11 +9,11 @@ interface EnvVar { interface CLIExtensionInstructionsProps { name: string; - type?: 'stdio' | 'http'; + type?: 'stdio' | 'sse' | 'http'; command?: string; // Only for stdio - url?: string; // Only for http + url?: string; // For both sse and http timeout?: number; - envVars?: EnvVar[]; + envVars?: EnvVar[]; // For stdio: environment variables, for http: headers infoNote?: string; } @@ -26,7 +27,9 @@ export default function CLIExtensionInstructions({ infoNote, }: CLIExtensionInstructionsProps) { const hasEnvVars = envVars.length > 0; + const isSSE = type === 'sse'; const isHttp = type === 'http'; + const isRemote = isSSE || isHttp; // Determine last-step prompt text const lastStepText = isHttp @@ -34,10 +37,10 @@ export default function CLIExtensionInstructions({ : 'Would you like to add environment variables?'; const lastStepInstruction = hasEnvVars - ? `Add environment variable${envVars.length > 1 ? 's' : ''} for ${name}` + ? `Add ${isHttp ? 'custom header' : 'environment variable'}${envVars.length > 1 ? 's' : ''} for ${name}` : isHttp - ? 'Choose No when asked to add custom headers' - : 'Choose No when asked to add environment variables'; + ? 'Choose No when asked to add custom headers.' + : 'Choose No when asked to add environment variables.'; return (
@@ -49,7 +52,14 @@ export default function CLIExtensionInstructions({
  1. Choose to add a{' '} - {isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'}. + + {isSSE + ? 'Remote Extension (SSE)' + : isHttp + ? 'Remote Extension (Streaming HTTP)' + : 'Command-line Extension' + } + .
{`ā”Œ goose-configure @@ -58,11 +68,12 @@ export default function CLIExtensionInstructions({ │ Add Extension │ ā—† What type of extension would you like to add? -│ ā—‹ Built-in Extension ${ - isHttp - ? '│ ā— Remote Extension (Streaming HTTP)\n│ ā—‹ Command-line Extension (Run a local command or script)' - : '│ ā—‹ Remote Extension\n│ ā— Command-line Extension (Run a local command or script)' + isSSE + ? '│ ā—‹ Built-in Extension\n│ ā—‹ Command-line Extension\n// highlight-start\n│ ā— Remote Extension (SSE) (Connect to a remote extension via Server-Sent Events)\n// highlight-end\n│ ā—‹ Remote Extension (Streaming HTTP)' + : isHttp + ? '│ ā—‹ Built-in Extension\n│ ā—‹ Command-line Extension\n│ ā—‹ Remote Extension (SSE)\n// highlight-start\n│ ā— Remote Extension (Streaming HTTP) (Connect to a remote extension via MCP Streaming HTTP)\n// highlight-end' + : '│ ā—‹ Built-in Extension\n// highlight-start\n│ ā— Command-line Extension (Run a local command or script)\n// highlight-end\n│ ā—‹ Remote Extension (SSE)\n│ ā—‹ Remote Extension (Streaming HTTP)' } ā””`} @@ -75,7 +86,7 @@ ${ │ Add Extension │ ā—‡ What type of extension would you like to add? -│ ${isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} +│ ${isSSE ? 'Remote Extension (SSE)' : isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} │ // highlight-start ā—† What would you like to call this extension? @@ -83,10 +94,10 @@ ${ // highlight-end ā””`} - {isHttp ? ( + {isRemote ? ( <>
    -
  1. Enter the Streaming HTTP endpoint URI.
  2. +
  3. Enter the {isSSE ? 'SSE endpoint URI' : 'Streaming HTTP endpoint URI'}.
{`ā”Œ goose-configure │ @@ -94,13 +105,13 @@ ${ │ Add Extension │ ā—‡ What type of extension would you like to add? -│ Remote Extension (Streaming HTTP) +│ ${isSSE ? 'Remote Extension (SSE)' : 'Remote Extension (Streaming HTTP)'} │ ā—‡ What would you like to call this extension? │ ${name} │ // highlight-start -ā—† What is the Streaming HTTP endpoint URI? +ā—† What is the ${isSSE ? 'SSE endpoint URI' : 'Streaming HTTP endpoint URI'}? │ ${url} // highlight-end ā””`} @@ -141,14 +152,14 @@ ${ │ Add Extension │ ā—‡ What type of extension would you like to add? -│ ${isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} +│ ${isSSE ? 'Remote Extension (SSE)' : isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} │ ā—‡ What would you like to call this extension? │ ${name} │ ${ - isHttp - ? `ā—‡ What is the Streaming HTTP endpoint URI?\n│ ${url}\n│` + isRemote + ? `ā—‡ What is the ${isSSE ? 'SSE endpoint URI' : 'Streaming HTTP endpoint URI'}?\n│ ${url}\n│` : `ā—‡ What command should be run?\n│ ${command}\n│` } // highlight-start @@ -166,14 +177,14 @@ ${ │ Add Extension │ ā—‡ What type of extension would you like to add? -│ ${isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} +│ ${isSSE ? 'Remote Extension (SSE)' : isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} │ ā—‡ What would you like to call this extension? │ ${name} │ ${ - isHttp - ? `ā—‡ What is the Streaming HTTP endpoint URI?\n│ ${url}\n│` + isRemote + ? `ā—‡ What is the ${isSSE ? 'SSE endpoint URI' : 'Streaming HTTP endpoint URI'}?\n│ ${url}\n│` : `ā—‡ What command should be run?\n│ ${command}\n│` } ā—‡ Please set the timeout for this tool (in secs): @@ -186,7 +197,16 @@ ${ ā””`}
    -
  1. {lastStepInstruction}
  2. +
  3. + {hasEnvVars + ? isHttp + ? <>Add custom header{envVars.length > 1 ? 's' : ''} for {name}. + : <>Add environment variable{envVars.length > 1 ? 's' : ''} for {name}. + : isHttp + ? <>Choose No when asked to add custom headers. + : <>Choose No when asked to add environment variables. + } +
{!hasEnvVars && ( @@ -196,14 +216,14 @@ ${ │ Add Extension │ ā—‡ What type of extension would you like to add? -│ ${isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} +│ ${isSSE ? 'Remote Extension (SSE)' : isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} │ ā—‡ What would you like to call this extension? │ ${name} │ ${ - isHttp - ? `ā—‡ What is the Streaming HTTP endpoint URI?\n│ ${url}\n│` + isRemote + ? `ā—‡ What is the ${isSSE ? 'SSE endpoint URI' : 'Streaming HTTP endpoint URI'}?\n│ ${url}\n│` : `ā—‡ What command should be run?\n│ ${command}\n│` } ā—‡ Please set the timeout for this tool (in secs): @@ -216,12 +236,20 @@ ${ ā—† ${lastStepText} │ No // highlight-end +│ ā”” Added ${name} extension`} )} {hasEnvVars && ( <> - {infoNote &&
{infoNote}
} + {infoNote && ( + <> + + {infoNote} + +
+ + )} {`ā”Œ goose-configure │ @@ -229,14 +257,14 @@ ${ │ Add Extension │ ā—‡ What type of extension would you like to add? -│ ${isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} +│ ${isSSE ? 'Remote Extension (SSE)' : isHttp ? 'Remote Extension (Streaming HTTP)' : 'Command-line Extension'} │ ā—‡ What would you like to call this extension? │ ${name} │ ${ - isHttp - ? `ā—‡ What is the Streaming HTTP endpoint URI?\n│ ${url}\n│` + isRemote + ? `ā—‡ What is the ${isSSE ? 'SSE endpoint URI' : 'Streaming HTTP endpoint URI'}?\n│ ${url}\n│` : `ā—‡ What command should be run?\n│ ${command}\n│` } ā—‡ Please set the timeout for this tool (in secs): @@ -251,17 +279,18 @@ ${ ${envVars .map( ({ key, value }, i) => `│ -ā—‡ Environment variable name: +ā—‡ ${isHttp ? 'Header name' : 'Environment variable name'}: │ ${key} │ -ā—‡ Environment variable value: +ā—‡ ${isHttp ? 'Header value' : 'Environment variable value'}: │ ${value} │ -ā—‡ Add another environment variable? +ā—‡ Add another ${isHttp ? 'header' : 'environment variable'}? │ ${i === envVars.length - 1 ? 'No' : 'Yes'}` ) .join('\n')} // highlight-end +│ ā”” Added ${name} extension`} )} diff --git a/documentation/src/components/CLIStreamExtensionInstructions.js b/documentation/src/components/CLIStreamExtensionInstructions.js deleted file mode 100644 index 286f7044904a..000000000000 --- a/documentation/src/components/CLIStreamExtensionInstructions.js +++ /dev/null @@ -1,244 +0,0 @@ -import React from 'react'; -import CodeBlock from '@theme/CodeBlock'; -import Admonition from '@theme/Admonition'; - -export default function CLIStreamExtensionInstructions({ - name, - endpointUri, - timeout = 300, - headers = [], - infoNote, -}) { - const hasHeaders = headers.length > 0; - const headerStepText = hasHeaders - ? `Choose Yes when asked to add custom headers` - : 'Choose No when asked to add custom headers'; - - return ( -
-
    -
  1. Run the configure command:
  2. -
- {`goose configure`} - -
    -
  1. Choose to add a Remote Extension (Streaming HTTP)
  2. -
- {`ā”Œ goose-configure -│ -ā—‡ What would you like to configure? -│ Add Extension -│ -ā—† What type of extension would you like to add? -│ ā—‹ Built-in Extension -│ ā—‹ Command-line Extension -│ ā—‹ Remote Extension (SSE) -// highlight-start -│ ā— Remote Extension (Streaming HTTP) (Connect to a remote extension via MCP Streaming HTTP) -// highlight-end -ā””`} - -
    -
  1. Give your extension a name
  2. -
- {`ā”Œ goose-configure -│ -ā—‡ What would you like to configure? -│ Add Extension -│ -ā—‡ What type of extension would you like to add? -│ Remote Extension (Streaming HTTP) -│ -// highlight-start -ā—† What would you like to call this extension? -│ ${name} -// highlight-end -ā””`} - -
    -
  1. Enter the endpoint URI
  2. -
- {`ā”Œ goose-configure -│ -ā—‡ What would you like to configure? -│ Add Extension -│ -ā—‡ What type of extension would you like to add? -│ Remote Extension (Streaming HTTP) -│ -ā—‡ What would you like to call this extension? -│ ${name} -│ -// highlight-start -ā—† What is the Streaming HTTP endpoint URI? -│ ${endpointUri} -// highlight-end -ā””`} - -
    -
  1. - Enter the number of seconds Goose should wait for actions to complete before timing out. Default is 300 seconds -
  2. -
- {`ā”Œ goose-configure -│ -ā—‡ What would you like to configure? -│ Add Extension -│ -ā—‡ What type of extension would you like to add? -│ Remote Extension (Streaming HTTP) -│ -ā—‡ What would you like to call this extension? -│ ${name} -│ -ā—‡ What is the Streaming HTTP endpoint URI? -│ ${endpointUri} -│ -// highlight-start -ā—† Please set the timeout for this tool (in secs): -│ ${timeout} -// highlight-end -ā””`} - -
    -
  1. Choose to add a description. If you select Yes, you'll be prompted to enter a description for the extension
  2. -
- {`ā”Œ goose-configure -│ -ā—‡ What would you like to configure? -│ Add Extension -│ -ā—‡ What type of extension would you like to add? -│ Remote Extension (Streaming HTTP) -│ -ā—‡ What would you like to call this extension? -│ ${name} -│ -ā—‡ What is the Streaming HTTP endpoint URI? -│ ${endpointUri} -│ -ā—‡ Please set the timeout for this tool (in secs): -│ ${timeout} -│ -// highlight-start -ā—† Would you like to add a description? -│ No -// highlight-end -ā””`} - -
    -
  1. {headerStepText}
  2. -
- - {!hasHeaders && ( - {`ā”Œ goose-configure -│ -ā—‡ What would you like to configure? -│ Add Extension -│ -ā—‡ What type of extension would you like to add? -│ Remote Extension (Streaming HTTP) -│ -ā—‡ What would you like to call this extension? -│ ${name} -│ -ā—‡ What is the Streaming HTTP endpoint URI? -│ ${endpointUri} -│ -ā—‡ Please set the timeout for this tool (in secs): -│ ${timeout} -│ -ā—‡ Would you like to add a description? -│ No -│ -// highlight-start -ā—† Would you like to add custom headers? -│ No -// highlight-end -ā”” Added ${name} extension`} - )} - - {hasHeaders && ( - <> - {`ā”Œ goose-configure -│ -ā—‡ What would you like to configure? -│ Add Extension -│ -ā—‡ What type of extension would you like to add? -│ Remote Extension (Streaming HTTP) -│ -ā—‡ What would you like to call this extension? -│ ${name} -│ -ā—‡ What is the Streaming HTTP endpoint URI? -│ ${endpointUri} -│ -ā—‡ Please set the timeout for this tool (in secs): -│ ${timeout} -│ -ā—‡ Would you like to add a description? -│ No -│ -// highlight-start -ā—† Would you like to add custom headers? -│ Yes -// highlight-end -ā””`} - -
    -
  1. Add your custom header{headers.length > 1 ? 's' : ''}
  2. -
- - {infoNote && ( - <> - - {infoNote} - -
- - )} - - {`ā”Œ goose-configure -│ -ā—‡ What would you like to configure? -│ Add Extension -│ -ā—‡ What type of extension would you like to add? -│ Remote Extension (Streaming HTTP) -│ -ā—‡ What would you like to call this extension? -│ ${name} -│ -ā—‡ What is the Streaming HTTP endpoint URI? -│ ${endpointUri} -│ -ā—‡ Please set the timeout for this tool (in secs): -│ ${timeout} -│ -ā—‡ Would you like to add a description? -│ No -│ -ā—‡ Would you like to add custom headers? -│ Yes -│ -// highlight-start -${headers - .map( - ({ key, value }, i) => `ā—‡ Header name: -│ ${key} -│ -ā—‡ Header value: -│ ${value} -│ -ā—‡ Add another header? -│ ${i === headers.length - 1 ? 'No' : 'Yes'}` - ) - .join('\n│\n')} -// highlight-end -ā”” Added ${name} extension`} - - )} -
- ); -}