Set up your MCP Client to connect to AgentPay-enabled MCP Servers.
mcp-remote
to connect to remote MCP Servers.
X-AGENTPAY-API-KEY
.
mcp.json
mcp.json
configuration file, you would add the header there. Here’s an example snippet for a remote MCP Server:
mcp-server-name
with a name you want to use for this tool in your client.<MCP_SERVER_URL>
with the MCP server’s endpoint URL (found in the Server’s metadata on the AgentPay Hub).YOUR_USER_API_KEY_HERE
with your actual User API Key.npx
to run the mcp-remote
package.-y
: Automatically answers “yes” to any prompts.mcp-remote
: The package name.<MCP_SERVER_URL>
: The Server’s endpoint URL.--header
: Specifies the API Key header.X-AGENTPAY-API-KEY:YOUR_USER_API_KEY_HERE
: Your authentication header.--allow-http
: Required for local development without HTTPS.mcp.json
file.