Clear stale MCP transport fields in patch payload
This commit is contained in:
parent
6e8e346964
commit
3a96d8b1ea
1 changed files with 8 additions and 0 deletions
|
|
@ -336,6 +336,10 @@ export function ConfigPage() {
|
|||
server.headersText,
|
||||
`MCP server ${server.name} headers`,
|
||||
),
|
||||
command: null,
|
||||
args: null,
|
||||
env: null,
|
||||
env_file: null,
|
||||
},
|
||||
] as const
|
||||
}
|
||||
|
|
@ -348,12 +352,16 @@ export function ConfigPage() {
|
|||
server.name,
|
||||
{
|
||||
enabled: server.enabled,
|
||||
type: "stdio",
|
||||
command: server.command,
|
||||
args: parseMultilineList(server.argsText),
|
||||
env: parseJSONObjectField(
|
||||
server.envText,
|
||||
`MCP server ${server.name} env`,
|
||||
),
|
||||
url: null,
|
||||
headers: null,
|
||||
env_file: null,
|
||||
},
|
||||
] as const
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue