File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ const App = () => {
173
173
174
174
backendUrl . searchParams . append ( "transportType" , transportType ) ;
175
175
if ( transportType === "stdio" ) {
176
- backendUrl . searchParams . append ( "command" , encodeURIComponent ( command ) ) ;
177
- backendUrl . searchParams . append ( "args" , encodeURIComponent ( args ) ) ;
176
+ backendUrl . searchParams . append ( "command" , command ) ;
177
+ backendUrl . searchParams . append ( "args" , args ) ;
178
178
} else {
179
- backendUrl . searchParams . append ( "url" , encodeURIComponent ( url ) ) ;
179
+ backendUrl . searchParams . append ( "url" , url ) ;
180
180
}
181
181
182
182
await clientTransport . connect ( backendUrl ) ;
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ const createTransport = async (query: express.Request["query"]) => {
22
22
const transportType = query . transportType as string ;
23
23
24
24
if ( transportType === "stdio" ) {
25
- const command = decodeURIComponent ( query . command as string ) ;
26
- const args = decodeURIComponent ( query . args as string ) . split ( "," ) ;
25
+ const command = query . command as string ;
26
+ const args = ( query . args as string ) . split ( "," ) ;
27
27
console . log ( `Stdio transport: command=${ command } , args=${ args } ` ) ;
28
28
const transport = new StdioClientTransport ( ) ;
29
29
await transport . spawn ( { command, args } ) ;
30
30
console . log ( "Spawned stdio transport" ) ;
31
31
return transport ;
32
32
} else if ( transportType === "sse" ) {
33
- const url = decodeURIComponent ( query . url as string ) ;
33
+ const url = query . url as string ;
34
34
console . log ( `SSE transport: url=${ url } ` ) ;
35
35
const transport = new SSEClientTransport ( ) ;
36
36
await transport . connect ( new URL ( url ) ) ;
You can’t perform that action at this time.
0 commit comments