What is MCP?
Model Context Protocol (MCP) is an open standard that allows AI applications to securely access external data sources and tools. The AISA MCP server provides AI agents with:- Direct API access to AISA functionality
- Documentation search capabilities
- Real-time data from your AISA account
- Code generation assistance for AISA integrations
AISA MCP Server Setup
AISA hosts a remote MCP server athttps://docs.aisa.one/mcp. Configure your AI development tools to connect to this server. If your APIs require authentication, you can pass in headers via query parameters or however headers are configured in your MCP client.
- Cursor
- Windsurf
- Claude Desktop
Add to
~/.cursor/mcp.json:Testing Your MCP Setup
Once configured, restart your AI editor so it picks up the new MCP config, then try one of the following prompts in a fresh chat.Example 1 — Discover an AIsa endpoint
Ask Cursor: “Using the AIsa MCP tools, find the endpoint for searching Polymarket events and show me a curl example.”The agent calls the MCP
search_docs tool, retrieves /api-reference/prediction-market/get_polymarket-events, and produces:
Example 2 — Generate a working integration
Ask Windsurf: “Write a Python function that uses AIsa’s Chat Completions API to summarize the text I’ll paste. Use the streaming format.”The agent pulls the reference for
POST /v1/chat/completions via MCP and generates:
Example 3 — Compare models for a task
Ask Claude Desktop: “Which AIsa model is cheapest for long-context code review, and what’s the per-1M input price?”The agent queries the MCP
list_models tool, filters by context window and coding capability, and returns:
gemini-2.5-flash-lite — 0.022 with 1M tokens.
Available MCP tools
The AIsa MCP server exposes three tools to connected agents:| Tool | What it does |
|---|---|
search_docs | Full-text search across guides, API reference, and skill docs |
get_page | Fetch a specific doc page by URL for detailed context |
list_models | Return the model catalog with pricing and capability metadata |
Troubleshooting
Editor doesn't see the MCP server
Editor doesn't see the MCP server
Fix: Restart the editor after editing the config. Cursor/Windsurf load MCP servers at startup; changes don’t hot-reload.
'Tool call failed' or timeouts
'Tool call failed' or timeouts
Fix: Confirm your machine can reach
https://docs.aisa.one/mcp — some corporate networks block non-standard paths. Retry; the MCP protocol is over HTTP and transient errors are safe to retry.Agent says it can't find AIsa tools
Agent says it can't find AIsa tools
Fix: Different editors expose tools differently. If the agent can’t see the server, try prompting explicitly: “Use the aisa-pdqs MCP tools to find…”. The server name in your config (here
aisa-pdqs) is the handle the agent needs to invoke it.Related
Model Catalog
What the
list_models MCP tool returns.API Reference
Endpoints the agent will reach through generated code.
Authentication
Bearer-token auth for generated API calls.