switch_context
Switch between different environment configurations, such as AWS profiles and regions, to change the active MCP server connection without restarting the client.
Instructions
Switch to a different context.
This changes the active MCP server connection to use different environment variables (AWS_PROFILE, AWS_REGION, etc.).
Args: context_name: Name of the context to switch to
Returns: Information about the new active context including available tools
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context_name": "<context_name>"
},
"name": "switch_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||