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

# VS Code and GitHub Copilot

> Add PostChamp to GitHub Copilot in VS Code, or to the Copilot CLI.

Add PostChamp to GitHub Copilot in VS Code, or to the Copilot CLI. The connection URL is the same for every client:

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

> [!NOTE]
>
> The vendor page covers the guided steps in VS Code. The one-click link and the Copilot CLI commands follow the standard formats and are not described on that page.

## Before you start

* VS Code with GitHub Copilot.
* If your organization manages Copilot, its policy must allow MCP servers. Otherwise the option is greyed out.
* 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 VS Code and GitHub Copilot

> [card] [Add to VS Code](vscode:mcp/install?%7B%22name%22%3A%22postchamp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.postchampai.com%2Fapi%2Fv1%2Fmcp%22%7D)
>
> One-click install link. It opens VS Code and GitHub Copilot with the server filled in.

**Step 1**

Choose **Add to VS Code** above and confirm in VS Code.

**Step 2**

Or do it by hand: run **Chat: Open Customizations**, choose **MCP Servers**, then **Add Server** (+) in the User group. Pick **HTTP**, enter `https://api.postchampai.com/api/v1/mcp`, give it the ID `postchamp`, and choose **Global**. You can also run **MCP: Add Server** from the Command Palette.

**Step 3**

Review the trust prompt and accept it.

**Step 4**

Start the server. VS Code opens the PostChamp sign-in. Sign in, choose the workspaces to share and approve.

**Step 5**

In Copilot Chat, switch to Agent mode and ask for something to check that the tools run.

## Command line

```bash
copilot mcp add --transport http postchamp 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

* In VS Code, open **Chat: Open Customizations**, choose **MCP Servers** and remove or stop the server.
* In PostChamp, open Settings and choose Assistants to disconnect it. The change applies on the next request.

## Troubleshooting

> [accordion] Adding an MCP server is greyed out.
>
> Your organization policy for Copilot blocks MCP servers. Ask an admin to allow them.

> [accordion] The Add to VS Code link does nothing.
>
> Use the guided steps above. In some Insiders builds, add the server manually.

> [accordion] The tools do not appear in chat.
>
> Use Agent mode. Chat in Ask mode does not call tools.

> [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] Should I put credentials in the config?
>
> No. PostChamp signs in with OAuth in your browser, so there is no key to paste. VS Code advises against putting credentials in shared configuration.

> [accordion] Can I share the server with my team through the repository?
>
> A workspace file can hold the server entry, but each person signs in with their own PostChamp account.

## 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.
