Operations
Settings
API Keys
Generate and manage API keys for AI agents and external clients.
Active (0)
All (0)
Loading...
Connection Guide
How to connect your AI agents to the unified MCP endpoint.
Gateway Endpoints
SSE Endpoint:
https://your-domain.com/api/mcp/sseStreamable HTTP Endpoint:
https://your-domain.com/api/mcp/mcpOAuth Protected Resource:
https://your-domain.com/.well-known/oauth-protected-resourceClaude Desktop Configuration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"smartwithmoney": {
"url": "https://your-domain.com/api/mcp/sse?key=YOUR_API_KEY"
}
}
}Cursor IDE Configuration
Add this to your .cursor/mcp.json:
{
"mcpServers": {
"smartwithmoney": {
"url": "https://your-domain.com/api/mcp/sse",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}SDK Usage (TypeScript)
import { Client } from "@modelcontextprotocol/sdk/client";
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
const transport = new SSEClientTransport(
new URL("https://your-domain.com/api/mcp/sse"),
{
requestInit: {
headers: {
Authorization: "Bearer YOUR_API_KEY"
}
}
}
);
const client = new Client(
{ name: "my-agent", version: "1.0.0" },
{ capabilities: {} }
);
await client.connect(transport);
// List all tools from all connected servers
const { tools } = await client.listTools();
console.log("Available tools:", tools);
// Call a tool
const result = await client.callTool({
name: "tool_name",
arguments: { /* ... */ }
});SDK Usage (Python)
from mcp import ClientSession
from mcp.client.sse import sse_client
import httpx
async def main():
headers = {"Authorization": "Bearer YOUR_API_KEY"}
async with sse_client(
"https://your-domain.com/api/mcp/sse",
headers=headers
) as (read, write):
async with ClientSession(read, write) as session:
# Initialize the session
await session.initialize()
# List available tools
tools = await session.list_tools()
print(f"Available tools: {tools}")
# Call a tool
result = await session.call_tool(
"tool_name",
arguments={"key": "value"}
)
print(result)Important Notes
- All tools from your connected MCP servers are accessible through a single endpoint
- Tool names may be prefixed if you configured a prefix on the server
- The gateway maintains persistent connections to upstream servers
- Authentication is required - include your API key in requests
- For SSE, you can also pass the key via
?key=query parameter