Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"com-session-exchange-sessions": {
"command": "uvx",
"args": [
"a4sx-mcp"
],
"env": {
"A4SX_BASE": "<VALUE>",
"A4SX_MCP_LOG": "warning",
"A4SX_SESSION": "<VALUE>",
"A4SX_CONFIG_DIR": "<VALUE>",
"A4SX_MCP_PER_MIN": "240",
"A4SX_SESSION_BASE": "<VALUE>",
"A4SX_MCP_ACQUIRE_PER_MIN": "20",
"A4SX_MCP_PUBLISH_PER_MIN": "10",
"A4SX_MCP_MAX_PUBLISH_BYTES": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"com-session-exchange-sessions": {
"command": "uvx",
"args": [
"a4sx-mcp"
],
"env": {
"A4SX_BASE": "<VALUE>",
"A4SX_MCP_LOG": "warning",
"A4SX_SESSION": "<VALUE>",
"A4SX_CONFIG_DIR": "<VALUE>",
"A4SX_MCP_PER_MIN": "240",
"A4SX_SESSION_BASE": "<VALUE>",
"A4SX_MCP_ACQUIRE_PER_MIN": "20",
"A4SX_MCP_PUBLISH_PER_MIN": "10",
"A4SX_MCP_MAX_PUBLISH_BYTES": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"com-session-exchange-sessions": {
"command": "uvx",
"args": [
"a4sx-mcp"
],
"env": {
"A4SX_BASE": "<VALUE>",
"A4SX_MCP_LOG": "warning",
"A4SX_SESSION": "<VALUE>",
"A4SX_CONFIG_DIR": "<VALUE>",
"A4SX_MCP_PER_MIN": "240",
"A4SX_SESSION_BASE": "<VALUE>",
"A4SX_MCP_ACQUIRE_PER_MIN": "20",
"A4SX_MCP_PUBLISH_PER_MIN": "10",
"A4SX_MCP_MAX_PUBLISH_BYTES": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"com-session-exchange-sessions": {
"command": "uvx",
"args": [
"a4sx-mcp"
],
"env": {
"A4SX_BASE": "<VALUE>",
"A4SX_MCP_LOG": "warning",
"A4SX_SESSION": "<VALUE>",
"A4SX_CONFIG_DIR": "<VALUE>",
"A4SX_MCP_PER_MIN": "240",
"A4SX_SESSION_BASE": "<VALUE>",
"A4SX_MCP_ACQUIRE_PER_MIN": "20",
"A4SX_MCP_PUBLISH_PER_MIN": "10",
"A4SX_MCP_MAX_PUBLISH_BYTES": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"com-session-exchange-sessions": {
"command": "uvx",
"args": [
"a4sx-mcp"
],
"env": {
"A4SX_BASE": "<VALUE>",
"A4SX_MCP_LOG": "warning",
"A4SX_SESSION": "<VALUE>",
"A4SX_CONFIG_DIR": "<VALUE>",
"A4SX_MCP_PER_MIN": "240",
"A4SX_SESSION_BASE": "<VALUE>",
"A4SX_MCP_ACQUIRE_PER_MIN": "20",
"A4SX_MCP_PUBLISH_PER_MIN": "10",
"A4SX_MCP_MAX_PUBLISH_BYTES": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"com-session-exchange-sessions": {
"command": "uvx",
"args": [
"a4sx-mcp"
],
"env": {
"A4SX_BASE": "<VALUE>",
"A4SX_MCP_LOG": "warning",
"A4SX_SESSION": "<VALUE>",
"A4SX_CONFIG_DIR": "<VALUE>",
"A4SX_MCP_PER_MIN": "240",
"A4SX_SESSION_BASE": "<VALUE>",
"A4SX_MCP_ACQUIRE_PER_MIN": "20",
"A4SX_MCP_PUBLISH_PER_MIN": "10",
"A4SX_MCP_MAX_PUBLISH_BYTES": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| A4SX_BASE | No | The a4sx server to connect to (equivalent to the --base URL option). Default: the one you signed in to, else https://session-exchange.com. Plain http is refused except for localhost. |
| A4SX_MCP_LOG | No | Log level: warning (default), info or debug. Logs go to stderr and contain tool names, outcomes and durations only: never arguments, transcripts or tokens. Default: warning |
| A4SX_SESSION | No | A token to use instead of the stored sign-in (for CI). |
| A4SX_CONFIG_DIR | No | Where the a4sx CLI keeps its sign-in (default ~/.config/a4sx, %APPDATA%\a4sx on Windows). |
| A4SX_MCP_PER_MIN | No | Local overall request rate limit per minute (default 240). 0 turns the local limit off. Default: 240 |
| A4SX_SESSION_BASE | No | The server the A4SX_SESSION token belongs to. Default: https://session-exchange.com. |
| A4SX_MCP_ACQUIRE_PER_MIN | No | Local acquire rate limit per minute (default 20). 0 turns the local limit off. Default: 20 |
| A4SX_MCP_PUBLISH_PER_MIN | No | Local publish rate limit per minute (default 10). 0 turns the local limit off. Default: 10 |
| A4SX_MCP_MAX_PUBLISH_BYTES | No | Lower or raise the 2 MiB publish_session cap (the server may still refuse larger uploads). |