MCPs Guide
Create an MCP Configuration
from glaip_sdk import Client
client = Client()
mcp = client.mcps.create_mcp(
name="weather-service",
description="HTTP weather API via MCP",
transport="http",
config={"url": "https://weather.example.com/mcp"},
authentication={
"type": "api-key",
"key": "X-API-Key",
"value": "secret-key",
},
)
print(mcp.id)aip mcps create \
--name weather-service \
--description "HTTP weather API via MCP" \
--transport http \
--config '{"url": "https://weather.example.com/mcp"}' \
--authentication '{"type": "api-key", "key": "X-API-Key", "value": "secret-key"}'aip mcps create \
--name weather-service \
--transport http \
--config @weather-config.json \
--auth @weather-auth.jsonUsing files with the CLI
Rotate Credentials or Update Configs
Validate Connections Before Saving
Common errors and fixes
Symptom
Likely cause
Fix