Skip to content
Connect an agent

Get started

Ways to use Flung

Flung is one service with several ways in: a plugin for Claude Code, an MCP server for every other agent, the REST API and its SDK for your own code, and webhooks to hear what happened. Pick by who is doing the work.

TL;DR

QuestionAnswer
I use Claude CodeInstall the Claude Code plugin: the server, four skills and a release hook, signed in with your browser.
I use another agentAdd the MCP server to Cursor, VS Code, Claude Desktop, ChatGPT or Gemini.
I am writing codeCall the REST API, or use the TypeScript SDK for typed calls with retries.
I need to know when a post goes out or failsAdd a webhook.
Can I mix them?Yes. They all work on the same workspace, accounts and posts: schedule from Claude Code, and hear the result on a webhook.

Side by side

Claude Code pluginMCP serverREST API and SDKWebhooks
Who does the workClaude Code, for youYour AI agent, for youYour own codeFlung tells your code
Signs in withYour browser (OAuth)Your browser (OAuth), or an API keyAn API key, or a connect token in a pageA signing secret per endpoint
SetupTwo commands in Claude CodeOne address in your clientnpm install, then a keyAn address and the events to send
AddsSkills for posting, connecting, release posts and status, and a hook after you tagEvery tool and workflowEvery endpoint, typedSigned events, retried
Best forDevelopers who post about what they shipPosting and checking accounts from a chatProducts and scripts that postFollowing up on what was published

Claude Code plugin

For Claude Code. The plugin is the MCP server with skills on top: Claude drafts a post per platform within its limit, passes your local time as you said it, and asks before it schedules anything. After a git tag or gh release create it offers to announce the release. Install it.

Claude Code
/plugin marketplace add flung-official/flung-claude-plugin
Claude Code
/plugin install flung@flung

MCP server

For every agent that speaks MCP: Cursor, VS Code, Claude Desktop and claude.ai, ChatGPT and Codex, Gemini, and Claude Code without the plugin. The agent signs in once in your browser and gets Flung's tools and workflows; it gives you the platform's link to connect an account, and you approve there. Connect an AI agent has each client's setup.

REST API and SDK

For your own product or script. Every endpoint is in the API reference; the TypeScript SDK has each one as a typed method, with retries and idempotency keys. To let your users connect their own accounts on your page, add the connect panel. Start with the Quick start.

npm
npm install @flung.dev/sdk

Webhooks

For hearing back. Flung sends a signed event to your endpoint when a post publishes or fails, when an account needs reconnecting, and more, and retries until your endpoint answers. Every way in above can schedule the post; a webhook tells your code what happened to it. See Webhooks.

See also

DocWhy
Claude Code pluginInstall, sign in, the skills and the release workflow
Connect an AI agentThe MCP server in each client
AuthenticationAPI keys, OAuth and connect tokens
Flung for AI agentsThe order of calls and the rules, for an agent reading the docs