Junie#
Junie is JetBrains’ own AI assistant, available as a standalone CLI and as a plugin in JetBrains IDEs. Junie CLI uses the same MCP JSON configuration as Junie in JetBrains IDEs, so the MCP server only needs to be registered once, and it will be available in both.
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 Junie CLI installed.
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.
Add the MCP server by editing mcp.json directly - project scope at .junie/mcp/mcp.json, or user scope at ~/.junie/mcp/mcp.json. See the official docs for details:
{
"mcpServers": {
"OneTick-Cloud": {
"url": "http://localhost:8000/mcp"
}
}
}
Verify it was registered by running /mcp inside a Junie CLI session - OneTick-Cloud should show up with status Active. Alternatively, use the MCP Installation Assistant: run /mcp, press Ctrl+A twice to set up an MCP server from scratch, choose the scope and Remote as the connection type, then enter the MCP server name and URL when prompted.
To remove it, delete the OneTick-Cloud entry from the scope’s mcp.json, or run /mcp, select OneTick-Cloud, and choose Remove.
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 |
|
Use pre-registration or |
|
Nothing in |
Headless or machine caller (no browser) |
Add an |
jwks with pre-registration
Add an oauth block to the MCP server entry. Junie’s documentation does not describe it, but Junie CLI 3579.5 reads it from mcp.json:
{
"mcpServers": {
"OneTick-Cloud": {
"url": "http://localhost:8000/mcp",
"oauth": {
"clientId": "onetick-mcp",
"scope": "openid"
}
}
}
}
No client secret is needed for a public client. scope is singular and a space-separated string. Without it Junie may request scopes the IdP client is not assigned, and Keycloak rejects the login with invalid_scope; the audience scope from the Keycloak walkthrough is a default scope, so Keycloak still adds it. The block also accepts clientSecret, clientName, authorizationEndpoint and tokenEndpoint.
Callback URL: http://localhost:<port>/callback, with the port taken from the range 62345 to 62364 (the first free one). Junie does not let you pin it, so register every URI from http://localhost:62345/callback to http://localhost:62364/callback (20 in all) on the IdP client. Keycloak compares redirect URIs exactly, so a wildcard is not a substitute. If you register fewer, the login fails with Invalid parameter: redirect_uri whenever Junie picks a port you left out, and the port is in the error’s URL.
Then run /mcp, select OneTick-Cloud and authorize. The status changes to Active once the login completes.
Note
If the browser cannot reach the machine Junie runs on (for example Junie in WSL and the browser on Windows), the redirect after login fails with “can’t connect to the MCP server at localhost:62345”. The login itself succeeded. Copy the full URL from the address bar and request it from the machine Junie runs on, within a minute:
curl 'http://127.0.0.1:62345/callback?state=...&code=...'
Headless callers
See Headless / non-interactive clients for how to get a token. Junie’s mcp.json accepts a headers object for remote servers:
{
"mcpServers": {
"OneTick-Cloud": {
"url": "http://localhost:8000/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}
The token is not refreshed. When it expires, request a new one and update the file. Keep a file that holds a token out of version control, for example by using user scope (~/.junie/mcp/mcp.json) rather than the project scope.
PyCharm#
Junie is installed as a plugin in JetBrains IDEs (PyCharm, IntelliJ, etc.) - see the official docs for installing it and registering MCP servers from there directly. Registering the MCP server via the CLI above, including any options your authentication setup needs (see Authentication), already makes it available here too, since both share the same mcp.json.
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.
Junie calls plugins “extensions”. Get the skill by adding the kx-skills repo as a custom extension marketplace and installing it:
/extensions marketplace add KxSystems/kx-skills
/extensions install onetick-knowledge
There’s no dedicated remove command - run /extensions and navigate the TUI to uninstall the plugin and the marketplace (install, remove).
Ensure the onetick-knowledge extension is installed at user scope. The onetick-knowledge extension also bundles its own OneTick-Cloud MCP server, pointed at OneTick’s hosted cloud instance. Your user scope OneTick-Cloud MCP takes precedence over it here, which is good. When both are installed, Junie reports this:
Conflict: using user mcp.json — ignoring extension onetick-knowledge@github-KxSystems-kx-skills
So the self-hosted MCP version is the one actually used, so the skill works as expected alongside it.