auth-test-mcp-remote
auth-test-mcp-remote
Remote MCP server for verifying API key authentication header propagation.
Deployable to Render.com (free tier).
Purpose
Part of the custom API key header epic test suite.
Validates that WXO forwards the correct header name and value when a connection
with api_key_auth (and a custom label) is linked to a remote MCP toolkit.
Tools
Tool | Auth required | What it returns |
| No | Server name + |
| Yes | Env vars containing |
| Yes | All inbound HTTP request headers — primary verification tool |
| Yes | Inbound query params and cookies (for cookie/query location tests) |
Environment variables
Variable | Default | Description |
|
| Header name the server expects in inbound requests |
| (empty) | If set, validates the incoming key strictly — leave blank to accept any key |
|
| Bind address |
|
| Bind port (Render injects |
Endpoints
Path | Description |
| SSE transport (for WXO connection) |
| MCP post-handshake POST endpoint |
| Health check (no auth) |
Deploying to Render.com (free tier)
Step 1 — Put the server in its own GitHub repository
Render deploys from a Git repo. The easiest approach is to push just this folder as a standalone repository.
cd agentic_data/test_case_files/z_api_key_custom_header/mcp_servers/auth_test_mcp_remote
git init
git add .
git commit -m "feat: auth-test-mcp-remote initial commit"
# Create a new repo on github.com first, then:
git remote add origin https://github.com/YOUR_USERNAME/auth-test-mcp-remote.git
git branch -M main
git push -u origin mainStep 2 — Create a Web Service on Render
Go to dashboard.render.com → New + → Web Service
Connect your GitHub account and select the
auth-test-mcp-remoterepositoryRender will auto-detect
render.yamland pre-fill:Environment: Python
Build command:
pip install -e .Start command:
auth-test-mcp-remotePort: 10000
Set the
EXPECTED_API_KEYsecret in the Environment tab (the value WXO will send in the header)Click Create Web Service
Render assigns a public HTTPS URL like:
https://remote-mcp-server-sk0z.onrender.comStep 3 — Verify the deployment
# Health check
curl https://remote-mcp-server-sk0z.onrender.com/health
# Expected:
# {"status":"healthy","service":"auth-test-mcp-remote","version":"0.1.0",
# "implementation":"FastMCP","api_key_header":"x-api-key"}Free tier note: Render spins down free services after 15 min of inactivity. The first request after sleep takes ~30–60 s. WXO's 30 s import timeout may trip during a cold start — hit the health endpoint once to warm it up before running
orchestrate toolkits add.
Importing into WXO (after deployment)
Option A — orchestrate toolkits add (one-liner)
# Create and configure the connection first
orchestrate connections add -a auth_test_remote
for env in draft live; do
orchestrate connections configure -a auth_test_remote --env $env --type team --kind key_value
orchestrate connections set-credentials -a auth_test_remote --env $env \
-e "EXPECTED_API_KEY=<your-secret-key>"
done
# Import the toolkit
orchestrate toolkits add \
--kind mcp \
--name auth_test_mcp_remote \
--description "Remote MCP server for API key authentication testing" \
--url "https://remote-mcp-server-sk0z.onrender.com/sse" \
--transport sse \
--tools "*" \
--app-id auth_test_remoteOption B — Import from YAML file
Create auth_test_mcp_remote.yaml:
spec_version: v1
kind: mcp
name: auth_test_mcp_remote
transport: sse
server_url: https://remote-mcp-server-sk0z.onrender.com/sse
tools:
- "*"
connections:
- auth_test_remoteThen run:
orchestrate toolkits import -f auth_test_mcp_remote.yaml -a auth_test_remoteRunning locally
pip install -e .
# Default header (x-api-key), no strict validation
auth-test-mcp-remote
# Custom header + strict validation
API_KEY_HEADER_NAME=x-custom-auth EXPECTED_API_KEY=mysecret auth-test-mcp-remote
# Or with Docker
docker-compose upAfter deploying — update mcp_config_example.json
{
"mcpServers": {
"auth-test-remote": {
"url": "https://remote-mcp-server-sk0z.onrender.com/sse",
"headers": {
"x-api-key": "<your-secret-key>"
}
}
}
}Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/S-Shreyas-10/Remote-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server