> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Junie

> Add PostChamp to JetBrains Junie with an mcp.json entry and authorize it.

Add PostChamp to JetBrains Junie with an mcp.json entry and authorize it. The connection URL is the same for every client:

```text
https://api.postchampai.com/api/v1/mcp
```

> [!NOTE]
>
> JetBrains AI Assistant is not supported. It has no remote sign-in for MCP servers. Junie, in the IDE and the CLI, is.

> [!NOTE]
>
> These steps follow the standard remote MCP format. Junie changes its menus often, so check the [vendor documentation](https://junie.jetbrains.com/docs/) if a label differs.

## Before you start

* Junie in a JetBrains IDE, or the Junie CLI.
* A PostChamp account on a plan that includes assistants, with the owner or admin role in the workspace you want to share. See [Authentication](/mcp/authentication.md).

## Connect Junie

**Step 1**

Open `~/.junie/mcp/mcp.json` for all projects, or `.junie/mcp/mcp.json` in one project. The IDE and the CLI share them.

**Step 2**

Add the entry below.

**Step 3**

The server shows **Authorization required**. Open the MCP Installation Assistant and choose **Authorize**. Sign in to PostChamp, choose the workspaces to share and approve. The status changes to **Active**.

## Configuration file

Add this to `~/.junie/mcp/mcp.json`:

```json
{
  "mcpServers": {
    "postchamp": {
      "url": "https://api.postchampai.com/api/v1/mcp"
    }
  }
}
```

## Check the connection

Ask:

```text
Use PostChamp to list my workspaces.
```

This reads your workspaces, costs nothing and changes nothing. Then try one of these:

* Plan next week: three posts, one on each of my main topics. Show me the plan before you schedule anything.
* Write a LinkedIn post about what I learned from my last client project, in my voice.
* Check my newest draft for filler and weak lines, then suggest fixes.
* How did my posts do over the last 30 days? What worked best?

## Disconnect

* Remove the entry from `mcp.json`.
* In PostChamp, open Settings and choose Assistants to disconnect it, so the sign-in is revoked.

## Troubleshooting

> [accordion] The status stays at Authorization required.
>
> Open the MCP Installation Assistant and choose **Authorize**.

> [accordion] It does not work in JetBrains AI Assistant.
>
> AI Assistant cannot sign in to remote MCP servers. Use Junie.

> [accordion] The browser sign-in says I cannot connect.
>
> Only owners and admins of a workspace can connect an assistant to it, and the plan must include assistants. Sign in with an account that has that role. Check the account in Settings, Members.

## FAQ

> [accordion] Do the IDE and the CLI share the setup?
>
> Yes. Both read the same `mcp.json` files, so you add PostChamp once.

## Related

> [card] [Authentication](/mcp/authentication.md)
>
> How sign-in, consent and revocation work.

> [card] [Tool reference](/mcp/tools/index.md)
>
> Every tool the assistant can call.
