Cursor#
Cursor is an AI-first code editor, available as a desktop app, a CLI (agent) and as a plugin in JetBrains IDEs (PyCharm, IntelliJ, etc.). This page covers registering the OneTick MCP server with each.
Cursor has no mcp add command, so registering an MCP server means adding it to mcp.json. Do that once, in the file below; the CLI and the desktop app read the same mcp.json, and the CLI is the easiest place to log in and check that the MCP server works.
These instructions are not exhaustive, and MCP clients change quickly. For the latest options and behavior, check the client’s own documentation.
Note
The examples below use http://localhost:8000/mcp for a local install. Substitute your MCP server’s actual hostname and port if it differs.
CLI#
Requires the Cursor CLI installed (agent --version to check).
Note
This is the basic entry, for an MCP server with authentication off. If authentication is enabled, the entry may need extra options; see Authentication below.
Register the MCP server by adding it to mcp.json in your personal .cursor directory (~/.cursor/mcp.json), creating the file if it doesn’t exist:
{
"mcpServers": {
"OneTick-Cloud": {
"url": "http://localhost:8000/mcp"
}
}
}
Verify it was registered, and list its tools:
agent mcp list
agent mcp list-tools OneTick-Cloud
If authentication is enabled, log in from the terminal:
agent mcp login OneTick-Cloud
To remove it, delete the entry from mcp.json.
Authentication#
What to add depends on how the MCP server’s inbound auth is set up (KX_MCP_AUTH; see MCP server authentication). The IDE steps further down take the same options.
Server setup |
What to do |
|---|---|
Authentication off |
Nothing. Use the basic entry above. |
|
Add an |
|
Not supported by Cursor. Use pre-registration or |
|
Nothing. Click Authenticate in Cursor; the MCP server holds the client credentials. |
Headless or machine caller (no browser) |
Add an |
jwks with pre-registration
Callback URL: http://localhost:8787/callback for the desktop app and the Cursor CLI. The port is fixed by Cursor and can’t be changed. Cursor’s web and cloud agents use https://www.cursor.com/agents/mcp/oauth/callback instead; register that too if you use them. Older Cursor installs used the custom-scheme URI cursor://anysphere.cursor-mcp/oauth/callback, and Cursor has been moving installs to the loopback URI in a gradual rollout (from about version 3.10), so an install may still send the older one. If the login fails with Invalid parameter: redirect_uri, check the redirect_uri in the browser’s address bar and register that value. Add the client ID to the MCP server’s entry:
{
"mcpServers": {
"OneTick-Cloud": {
"url": "http://localhost:8000/mcp",
"auth": {
"CLIENT_ID": "onetick-mcp"
}
}
}
}
No CLIENT_SECRET is needed for a public client. auth also accepts scopes; if the IdP rejects the login with invalid_scope, restrict it, for example "scopes": ["openid"]. Then log in with agent mcp login OneTick-Cloud, or click Authenticate on the MCP server in Customize → MCPs. See Static OAuth for remote servers in Cursor’s MCP documentation.
Headless callers
See Headless / non-interactive clients for how to get a token. Put it in the entry’s headers, read from an environment variable so it is not stored in the file:
{
"mcpServers": {
"OneTick-Cloud": {
"url": "http://localhost:8000/mcp",
"headers": {
"Authorization": "Bearer ${env:ONETICK_MCP_TOKEN}"
}
}
}
}
The token is not refreshed. When it expires, export a new one and restart Cursor. The Cursor CLI (agent) reads the same mcp.json; agent mcp login OneTick-Cloud runs the browser login from a terminal.
Desktop#
The desktop app shows servers from the same mcp.json, so if you registered the MCP server above you only need to check it and log in:
Navigate to Customize → MCPs.
OneTick-Cloudshould be listed. (New MCP Server opensmcp.jsonif you want to add the entry from here instead.)If authentication is enabled, the MCP server shows a Needs authentication status. Add any options your setup needs (see Authentication), then click Authenticate, complete the browser-based login, and click Open Cursor when prompted.
Close Cursor Settings.
Click the AI Chat icon to open the chat panel and start a chat session with Cursor.
PyCharm#
Register the MCP server in
mcp.json, as described under CLI above, including any options your authentication setup needs (see Authentication).Navigate to your Settings panel.
Select Tools → AI Assistant → Agents.
Click the Install button for Cursor.
Restart PyCharm after installation.
Click the chat icon, select Cursor, and ensure Mode is set to Agent. Ask it to list its OneTick tools to confirm the MCP server is connected.
Using the OneTick Skill#
Note
The skill’s tool calls expect the MCP server to be named exactly OneTick-Cloud - which is why it was registered under that name in the steps above.
Cursor has a Customize → Plugins → Add From Github Repository option for importing a plugin directly from a GitHub repo. Importing https://github.com/KxSystems/kx-skills this way has not worked in practice - this looks like an issue with Cursor’s import rather than with the repo itself. One workaround is to clone the repo locally, then import it from disk instead of from GitHub.
The plugin bundles its own OneTick-Cloud MCP server, pointed at OneTick’s hosted cloud instance. Unlike Codex and Junie, we found the plugin MCP server takes priority over the self-hosted MCP server that was registered above, meaning requests can go to the wrong MCP. To resolve go to Customize → MCPs, find the plugin’s copy of OneTick-Cloud (it will have a plugin badge), and disable it so only your self-hosted MCP server is active.