feat: add Go MCP server update API (#15261)

## What

#15240
implementation for PUT /api/v1/mcp/servers/:mcp_id

## Changes

- Adds the Go implementation for `PUT /api/v1/mcp/servers/:mcp_id`.
- Wires MCP service and handler into the Go server/router for the update
route.
- Preserves Python-style behavior for ownership checks, partial update
fields, MCP type/name/URL validation, `headers`/`variables`
normalization, and tool metadata scrubbing.
This commit is contained in:
Alexander Laurent
2026-06-01 21:58:44 -10:00
committed by GitHub
parent 2819d0ea24
commit a98889cd76
8 changed files with 313 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ load_env_file() {
echo "Loading environment variables from: $env_file"
# Source the .env file
set -a
source "$env_file"
source "$env_file"
set +a
else
echo "Warning: .env file not found at: $env_file"