@@ -49,7 +52,14 @@ export default function CLIExtensionInstructions({
-
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 ? (
<>
- - Enter the Streaming HTTP endpoint URI.
+ - 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 @@ ${
ā`}
- - {lastStepInstruction}
+ -
+ {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 (
-
-
- - Run the
configure command:
-
-
{`goose configure`}
-
-
- - Choose to add a
Remote Extension (Streaming HTTP)
-
-
{`ā 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
-ā`}
-
-
- - Give your extension a name
-
-
{`ā 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
-ā`}
-
-
- - Enter the endpoint URI
-
-
{`ā 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
-ā`}
-
-
- -
- Enter the number of seconds Goose should wait for actions to complete before timing out. Default is
300 seconds
-
-
-
{`ā 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
-ā`}
-
-
- - Choose to add a description. If you select
Yes, you'll be prompted to enter a description for the extension
-
-
{`ā 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
-ā`}
-
-
- - {headerStepText}
-
-
- {!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
-ā`}
-
-
- - Add your custom header{headers.length > 1 ? 's' : ''}
-
-
- {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`}
- >
- )}
-
- );
-}