Stars Cash Flow MCP Server
by govRosMedia
README.md
<p align="center">
<img src="https://raw.githubusercontent.com/govRosMedia/stars-cash-flow-mcp/main/assets/banner.png" alt="Stars Cash Flow — Telegram Stars CPA · MCP for AI agents" width="100%">
</p>
# Stars Cash Flow — MCP server, AI skill & Hermes tool
> **Buy and manage real Telegram Stars CPA / SMM orders — channel subscribers,
> boosts and bot starts — straight from Claude, ChatGPT, or any AI agent.**
[](https://github.com/govRosMedia/stars-cash-flow-mcp/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/@rosmedia/stars-cash-flow-mcp)
[](./LICENSE)
[](https://modelcontextprotocol.io)
Drive the **Stars Cash Flow** reseller API from any AI agent. Stars Cash Flow is a
CPA exchange for **real Telegram actions** — channel subscribers, boosts and bot
starts fulfilled by verified real users, not bots. The API is
[JustAnotherPanel](https://justanotherpanel.com/) / Perfect-Panel compatible, so
it drops into any existing SMM-panel integration.
One API contract, three first-class surfaces:
| Surface | Path | For |
| --- | --- | --- |
| **MCP server** (TypeScript) | [`src/`](./src) → `dist/` | Claude Desktop, Claude Code, any MCP host |
| **Universal skill** | [`skill/SKILL.md`](./skill/SKILL.md) · [`openapi.yaml`](./skill/openapi.yaml) | Claude Code skills, ChatGPT Custom GPT Actions |
| **Hermes skill + CLI** | [`hermes/`](./hermes) | [Hermes Agent](https://github.com/nousresearch/hermes-agent), or any shell |
## Highlights
- 🤝 **Drop-in compatible** — JustAnotherPanel / Perfect-Panel API; swap URL + key.
- 🔒 **Money-safe by design** — ordering and cancelling are two-step; nothing spends
or refunds without explicit confirmation.
- 🧩 **Works everywhere** — MCP for Claude, an OpenAPI action for ChatGPT, a skill +
zero-dependency CLI for Hermes and any shell.
- 📘 **Fully documented** — API reference, quickstart, FAQ, error reference, runnable
examples.
- ✅ **Tested & typed** — TypeScript client, vitest suite, CI on Node 18/20/22,
published with provenance.
## Documentation
- 📘 **[API reference](./docs/API.md)** — every action, field and guarantee
- 🚀 **[Quickstart](./docs/QUICKSTART.md)** — set up each surface in minutes
- ❓ **[FAQ](./docs/FAQ.md)** — common questions
- ⚠️ **[Error reference](./docs/ERRORS.md)** — every error message and fix
- 🧪 **[Examples](./examples)** — runnable curl / Python / Node
## The API in 30 seconds
`POST https://api-stars.ros.media/api/v2` — form-encoded, dispatched on `action`:
| action | fields | returns |
| --- | --- | --- |
| `services` | — | catalog (id, name, USD rate /1000, min, max) |
| `balance` | `key` | `{ balance, currency }` |
| `add` | `key, service, link, quantity` | `{ order }` — **spends balance** |
| `status` | `key, order` / `orders` | `{ charge, start_count, status, remains, currency }` |
| `cancel` | `key, orders` | `{ canceled: [ids] }` — refunds remainder |
Get an API key from [`@StarsCashFlowbot`](https://t.me/StarsCashFlowbot) →
**Reseller**. Everything except `services` needs the key; the key holds a USD
balance. Rate limit: 60 req/min/key.
## 🔴 Money safety
`add` debits real USD. Every surface here **prices the order first and refuses to
spend without explicit confirmation**:
- **MCP** — `create_order` and `cancel_order` are two-step: the first call returns
a preview (cost estimate / what would be cancelled); they only act when called
again with `confirm: true`.
- **CLI** — `order` / `cancel` print an estimate and do nothing unless `--confirm`.
- **Skill** — instructs the agent to price, show the cost, and get a "yes" first.
Never hardcode or print the key — read it from `STARS_CASH_FLOW_API_KEY`.
## Install — MCP server
Once published:
```bash
npx -y @rosmedia/stars-cash-flow-mcp
```
Or from source:
```bash
git clone https://github.com/govRosMedia/stars-cash-flow-mcp.git
cd stars-cash-flow-mcp
npm install && npm run build
```
Register in an MCP host (`claude_desktop_config.json` / `.mcp.json`):
```json
{
"mcpServers": {
"stars-cash-flow": {
"command": "npx",
"args": ["-y", "@rosmedia/stars-cash-flow-mcp"],
"env": {
"STARS_CASH_FLOW_API_KEY": "your-key",
"STARS_CASH_FLOW_API_BASE": "https://api-stars.ros.media/api/v2"
}
}
}
}
```
**Tools:** `list_services`, `get_balance`, `create_order` (confirm-gated),
`order_status`, `cancel_order`.
See the [Quickstart](./docs/QUICKSTART.md) for ChatGPT and Hermes setup.
## Use the typed client directly
```ts
import { StarsCashFlowClient } from "@rosmedia/stars-cash-flow-mcp";
const client = new StarsCashFlowClient(); // reads STARS_CASH_FLOW_API_KEY
const services = await client.listServices();
const cost = StarsCashFlowClient.cost(services[0], 1000); // USD
```
## Development
```bash
npm install
npm run build # tsc → dist/
npm test # vitest
npm run typecheck # tsc --noEmit
```
CI runs build + tests on Node 18/20/22. See [CONTRIBUTING.md](./CONTRIBUTING.md).
## License
[MIT](./LICENSE) © Stars Cash Flow
TDQS
A4.4/5.0
Scored across 5 tools
Disambiguation5/5
Each tool has a clearly distinct purpose: listing services, checking balance, placing orders, canceling orders, and checking status. No two tools overlap in functionality.
Naming Consistency5/5
All tool names follow a consistent verb_noun pattern using snake_case (e.g., create_order, list_services, get_balance), making them predictable and easy to understand.
Tool Count5/5
With 5 tools, the set is well-scoped for the service's purpose, covering all essential operations without unnecessary bloat. Each tool serves a clear role.
Completeness5/5
The tool set covers the full lifecycle: discovery (list_services), funding (get_balance), ordering (create_order), cancellation (cancel_order), and tracking (order_status). No obvious gaps for the intended domain.
Maintenance
ActivityStale
ResponsivenessNo issues