Fix transport type propagation from CLI to web client
- Add --transport and --server-url support to client/bin/start.js - Pass transport configuration through server to client via /config endpoint - Update client App.tsx to use defaultTransport and defaultServerUrl from server - Ensure SSE and HTTP transport configs work properly from CLI
This commit is contained in:
parent
195f79076e
commit
7ea47c0caa
1 changed files with 41 additions and 2 deletions
|
|
@ -40,6 +40,8 @@ const { values } = parseArgs({
|
|||
env: { type: "string", default: "" },
|
||||
args: { type: "string", default: "" },
|
||||
command: { type: "string", default: "" },
|
||||
transport: { type: "string", default: "" },
|
||||
"server-url": { type: "string", default: "" },
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -523,6 +525,8 @@ app.get("/config", originValidationMiddleware, authMiddleware, (req, res) => {
|
|||
defaultEnvironment,
|
||||
defaultCommand: values.command,
|
||||
defaultArgs: values.args,
|
||||
defaultTransport: values.transport,
|
||||
defaultServerUrl: values["server-url"],
|
||||
});
|
||||
} catch (error) {
|
||||
console.error("Error in /config route:", error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue