Cursor and other MCP clients
Any MCP client that supports the Streamable HTTP transport and OAuth sign-in can connect to AYNA.
Cursor
Section titled “Cursor”Add AYNA to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{ "mcpServers": { "ayna": { "url": "https://mcp.ayna.com/mcp" } }}Open Cursor Settings → MCP, find ayna and choose Login (or Needs login). Your browser opens AYNA to sign in.
VS Code
Section titled “VS Code”Add AYNA to .vscode/mcp.json:
{ "servers": { "ayna": { "type": "http", "url": "https://mcp.ayna.com/mcp" } }}Start the server from the file or the MCP view, and sign in when VS Code asks.
Any other client
Section titled “Any other client”Give the client the server address https://mcp.ayna.com/mcp. It discovers everything else:
| Step | Standard | Where |
|---|---|---|
| Find the sign-in server | OAuth Protected Resource Metadata (RFC 9728) | https://mcp.ayna.com/.well-known/oauth-protected-resource/mcp |
| Read the sign-in server’s endpoints | OAuth Authorization Server Metadata (RFC 8414) | https://app.ayna.com/.well-known/oauth-authorization-server |
| Register the client | Dynamic Client Registration (RFC 7591) | https://app.ayna.com/oauth/register/ |
| Sign the user in | Authorization code with PKCE | https://app.ayna.com/oauth/authorize/ |
| Get and refresh tokens | OAuth 2.0 token endpoint | https://app.ayna.com/oauth/token/ |
Scopes are ayna:read and ayna:write. The user chooses the final access level on the sign-in page, whatever the client asks for.
Access tokens start with aat_ and last one hour. Refresh tokens start with art_, last 30 days and are replaced on every refresh. A client without OAuth support, or one that only accepts a static key, cannot connect.