Claude Code is the primary target for the Groniz agent skill. There are two ways to integrate Groniz with Claude Code: the agent skill, which teaches Claude how to drive the Groniz CLI from the command line, and the MCP server, which exposes Groniz as native tools that Claude can call directly. Both methods work independently, and they can be used together.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/groniz/groniz-cli/llms.txt
Use this file to discover all available pages before exploring further.
Method 1: Agent skill (recommended for most users)
The agent skill is aSKILL.md file that Claude Code reads from your project’s .claude/skills/ directory. It covers everything groniz --help cannot explain, so Claude can post reliably without trial and error.
Install
.claude/skills/GRONIZ.md inside your project.
What Claude learns
Once the skill is installed, Claude understands:- Authentication — run
groniz auth loginonce; credentials persist across sessions - Media upload — always call
groniz uploadfirst and use the returned.pathvalue - Channel settings — call
groniz integrations settings <id>to discover required fields and limits before composing a post - Common traps — strict JSON mode shape,
jqpath differences, thread chaining with-c, draft validation bypass, and the missing release ID that blocks analytics
Try it
After installing the skill and authenticating (see below), try this prompt in Claude Code:groniz post command — including any required fields — without you needing to specify flags manually.
Method 2: MCP server
The Groniz MCP server exposes your Groniz account as tools that Claude can call directly, without going through the CLI. This is useful when you prefer tool-call-based access or are working in an environment where running shell commands is not ideal.Add the MCP server
YOUR_API_KEY with your Groniz API key. The server uses streamable HTTP transport and requires a valid Bearer token on every request.
This exposes Groniz as tools directly inside Claude — Claude can call them without composing shell commands.
Requires a paid Claude plan. The MCP integration is not available on free Claude accounts.
The skill and MCP can coexist in the same project. When both are active, the skill helps Claude use the CLI correctly for tasks it handles via the terminal, while MCP handles tool-call-based interactions. You do not need to choose one exclusively.
Authenticating the CLI
Before Claude can run any Groniz command, the CLI needs valid credentials. Run this once in your terminal:~/.groniz/credentials.json. Claude Code picks up these stored credentials automatically — you do not need to pass an API key on every command.
Alternatively, set GRONIZ_API_KEY in your environment for the current session:
Worked example
Install the skill
Run the following from your project root:The skill is installed to
.claude/skills/GRONIZ.md. Commit this file to share the skill with teammates.Authenticate
Run this once in your terminal — you will not need to repeat it:Follow the prompts. Your token is saved to
~/.groniz/credentials.json and used automatically by all subsequent groniz commands.Ask Claude to list your channels
Open Claude Code in your project and send:Claude will run
groniz integrations list and summarise the results, including each channel’s ID — which you will need for posting.