Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/src/utils/install-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function getGooseInstallLink(server: MCPServer): string {
}

const parts = server.command.split(" ");
const baseCmd = parts[0]; // jbang, npx or uvx
const baseCmd = parts[0]; // docker, jbang, npx or uvx
const args = parts.slice(1); // remaining arguments

const queryParams = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function getStdioConfig(
timeout: number
) {
// Validate that the command is one of the allowed commands
const allowedCommands = ['jbang', 'npx', 'uvx', 'goosed'];
const allowedCommands = ['docker', 'jbang', 'npx', 'uvx', 'goosed'];
if (!allowedCommands.includes(cmd)) {
toastService.handleError(
'Invalid Command',
Expand Down
2 changes: 1 addition & 1 deletion ui/desktop/src/components/settings_v2/extensions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export async function replaceWithShims(cmd: string) {

export function removeShims(cmd: string) {
// Only remove shims if the path matches our known shim patterns
const shimPatterns = [/goosed$/, /jbang$/, /npx$/, /uvx$/];
const shimPatterns = [/goosed$/, /docker$/, /jbang$/, /npx$/, /uvx$/];

// Check if the command matches any shim pattern
const isShim = shimPatterns.some((pattern) => pattern.test(cmd));
Expand Down
2 changes: 1 addition & 1 deletion ui/desktop/src/extensions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ function getStdioConfig(
description: string,
parsedTimeout: number
) {
const allowedCommands = ['jbang', 'npx', 'uvx', 'goosed'];
const allowedCommands = ['docker', 'jbang', 'npx', 'uvx', 'goosed'];
if (!allowedCommands.includes(cmd)) {
handleError(
`Failed to install extension: Invalid command: ${cmd}. Only ${allowedCommands.join(', ')} are allowed.`,
Expand Down
Loading