Gemini CLI
Set up Gemini CLI to manage your social accounts with dopost.
Set up Gemini CLI to manage your social accounts with dopost.
Gemini CLI is Google's open source agent for the terminal. It reads files, runs commands and loads MCP servers from settings.json, with a /mcp command to inspect and authenticate them.
Check the API access requirements before connecting your workspace.
Add the hosted server and authenticate with /mcp auth
Sign in to dopost to connect your accounts. No API key is needed.
Where to configure it: .gemini/settings.json
{
"mcpServers": {
"dopost": { "httpUrl": "https://mcp.dopost.co/mcp" }
}
}{
"mcpServers": {
"dopost": { "httpUrl": "https://mcp.dopost.co/mcp" }
}
}Install the dopost skill and let Gemini CLI call the REST API
Agents that run shell commands and need to upload files from disk.
Where to configure it: The environment where Gemini CLI runs commands
Create the key in Settings → API keys, in the workspace you want to connect. Select the permissions for the actions you will use; analytics needs analytics:read. Store the key in the environment or the client's credential field.
npx skills add dopost-co/skills -a gemini-cli
export DOPOST_API_KEY=dpk_live_your_keynpx skills add dopost-co/skills -a gemini-cli
export DOPOST_API_KEY=dpk_live_your_keyRun the dopost MCP server locally inside Gemini CLI
Local file uploads and clients without remote MCP support.
Where to configure it: Gemini CLI's local MCP configuration
Create the key in Settings → API keys, in the workspace you want to connect. Select the permissions for the actions you will use; analytics needs analytics:read. Store the key in the environment or the client's credential field.
{
"mcpServers": {
"dopost": {
"command": "npx",
"args": ["-y", "@dopost/mcp-server"],
"env": { "DOPOST_API_KEY": "dpk_live_your_key" }
}
}
}{
"mcpServers": {
"dopost": {
"command": "npx",
"args": ["-y", "@dopost/mcp-server"],
"env": { "DOPOST_API_KEY": "dpk_live_your_key" }
}
}
}Start a new conversation and ask:
Use dopost to list my connected social accounts.
Check that the returned accounts belong to the workspace you authorized.
Use docs/pricing.md to write a LinkedIn post and an X post about the new plan. Schedule both for Monday at 10:00.
Research this week’s industry news, write an X post with a source link and schedule it for Thursday at 13:00.
Compare our educational posts with product announcements from last month and suggest next week's mix.
Compare my accounts' performance over the last 30 days and show my best-performing posts. Include when the data was last updated.
You need analytics:read. See the MCP reference or the analytics endpoints, depending on your connection method. Available metrics depend on the platform and collected data.
Use httpUrl rather than url for the hosted server, restart Gemini CLI and run /mcp auth dopost again.
Check that the workspace has a Creator, Pro or Agency plan and the credential includes the action's permissions. For analytics, check analytics:read. Existing credentials do not receive new permissions automatically.
Reconnect dopost and approve the required workspaces and permissions. Then refresh the client's MCP connection and start a new conversation.
Check that the key is active and belongs to the correct workspace. For the Skill or local server, check that the agent process receives DOPOST_API_KEY. A remote MCP client using a token needs Authorization: Bearer <key>; REST calls use x-api-key.
Check the authorized workspace, connected accounts, and date range. Analytics may be partial or not yet available. Do not treat missing values as zero; inspect the returned freshness and coverage information.