Gemini CLI
Add PostChamp to Gemini CLI. The config key must be httpUrl.
Add PostChamp to Gemini CLI. The config key must be httpUrl. The connection URL is the same for every client:
https://api.postchampai.com/api/v1/mcp
https://api.postchampai.com/api/v1/mcphttpUrl for Streamable HTTP servers. A plain url means the older SSE transport, and PostChamp will show no tools.Before you start
- Gemini CLI installed, with a browser on the same machine. The sign-in does not work over a headless or remote SSH session.
- A PostChamp account on a plan that includes assistants, with the owner or admin role in the workspace you want to share. See Authentication.
Connect Gemini CLI
Add the server with the first command below. The default scope is the current project. Add
-s userto use it in all projects.Or edit
~/.gemini/settings.jsonand add the entry below. UsehttpUrl, noturl.Start Gemini CLI. Run
/mcp auth postchampto sign in. Your browser opens the PostChamp sign-in. Sign in, choose the workspaces to share and approve.Run
/mcpto check thatpostchampis connected and lists its tools.
Command line
gemini mcp add --transport http postchamp https://api.postchampai.com/api/v1/mcp
gemini mcp add --transport http -s user postchamp https://api.postchampai.com/api/v1/mcp
gemini mcp add --transport http postchamp https://api.postchampai.com/api/v1/mcp
gemini mcp add --transport http -s user postchamp https://api.postchampai.com/api/v1/mcpConfiguration file
Add this to ~/.gemini/settings.json:
{
"mcpServers" : {
"postchamp" : {
"httpUrl" : "https://api.postchampai.com/api/v1/mcp"
}
}
}
{
"mcpServers": {
"postchamp": {
"httpUrl": "https://api.postchampai.com/api/v1/mcp"
}
}
}Check the connection
Ask:
Use PostChamp to list my workspaces.
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.
- How did my posts do over the last 30 days? What worked best?
- Check my newest draft for filler and weak lines, then suggest fixes.
Disconnect
- Remove the server with
gemini mcp remove postchamp. - Then open Settings in PostChamp, choose Assistants and disconnect it, so the sign-in is revoked.
Troubleshooting
The entry uses url. Change it to httpUrl. A url key selects the SSE transport.
OAuth needs a local browser. Run Gemini CLI on a machine with one, or sign in there first.
Run /mcp auth postchamp again.
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
We have not tested it. This guide covers Gemini CLI only.
In Gemini CLI, httpUrl selects Streamable HTTP and url selects the legacy SSE transport. PostChamp uses Streamable HTTP.
Related
- How sign-in, consent and revocation work.
- Every tool the assistant can call.