Skip to main content
Glama
gigcraft-for-fiverr

gigcraft-for-fiverr

README.md
# gigcraft-for-fiverr

> **Disclaimer:** `gigcraft-for-fiverr` is an **unofficial, independent** open-source toolkit. It is **not affiliated with, endorsed by, or sponsored by Fiverr International Ltd.** It operates strictly alongside Fiverr's official public remote MCP server (`https://mcp.fiverr.com/mcp`) with zero web scraping and zero unauthorized automation.

Cross-harness **Agent Skills (`SKILL.md`)**, **native plugin manifests**, and a **thin local Companion MCP Server** built to work seamlessly across **Claude (Desktop & Code)**, **GitHub Copilot (VS Code & CLI)**, **Antigravity**, **OpenAI Codex CLI**, and **Cursor**.

---

## Why This Exists

Fiverr operates an official remote MCP server at `https://mcp.fiverr.com/mcp` exposing 7 model-callable tools for public talent discovery and Mira headhunting (`find_freelancers`, `get_seller_profile`, `get_seller_reviews_summary`, `list_seller_gigs`, `list_seller_reviews`, `talk_to_mira`, `take_brief_to_mira`).

`gigcraft-for-fiverr` pairs directly with that official endpoint (never proxying or scraping it) to add what raw discovery tools lack:

- **Buyer Track:** Turn vague specs or codebases into structured briefs, vet live candidates, rank them with deterministic weighted scoring (no LLM math bias), persist shortlists across sessions, and export formula-safe CSV/Markdown matrices.
- **Seller Track:** Run Fiverr's MCP in reverse to audit how AI assistants rank and summarize your gigs, compute competitor tier pricing quartiles (`p25`/`median`/`p75`/`p90`), track AI-discoverability snapshots over time, and diff rank/pricing changes.
- **Security by Default:** Sanitizes untrusted marketplace text against prompt injection, validates `https://*.fiverr.com` URLs, keeps local state in your user profile directory (`GIGCRAFT_DATA_DIR` override), and returns exports directly as tool output without arbitrary workspace writes.

---

## Architecture

```text
User Prompt (Claude / Copilot / Antigravity / Codex)
        │
        ├──► Agent Skills (.agents/skills/gigcraft-*)
        │      • gigcraft-talent-sourcing  (Buyer sourcing & vetting)
        │      • gigcraft-seller-audit     (Seller AI-discoverability & pricing)
        │      • gigcraft-brief-builder    (Codebase/spec -> Fiverr brief)
        │
        ├──► Official Fiverr MCP (https://mcp.fiverr.com/mcp)  [Live Marketplace Data]
        │
        └──► Companion MCP (gigcraft-for-fiverr serve)         [Deterministic + Local State]
               • score_candidates
               • manage_shortlist
               • analyze_pricing_benchmarks
               • record_audit_snapshot
               • diff_audit_snapshots
               • export_report
```

---

## Quick Start

### 1. Preview & Configure MCP Servers Across Harnesses

Use the built-in setup CLI to wire **both** Fiverr's official MCP server and `gigcraft-for-fiverr`:

```bash
# Preview changes without modifying any files
npx gigcraft-for-fiverr setup --harness all --dry-run

# Apply for a specific harness (claude | copilot | antigravity | codex | all)
npx gigcraft-for-fiverr setup --harness antigravity --scope global
npx gigcraft-for-fiverr setup --harness copilot --scope workspace
npx gigcraft-for-fiverr setup --harness codex --scope global
npx gigcraft-for-fiverr setup --harness claude --scope workspace
```

### 2. Install Agent Skills Across Harnesses

The 3 skills live under `.agents/skills/` (the universal open [Agent Skills](https://agentskills.io) standard):

```bash
# Install into Claude, Copilot, Antigravity, Codex, and Cursor via skills.sh
npx skills add abulhasanlakhani/gigcraft-for-fiverr
```

### 3. Harness-Specific Reference

| Harness | MCP Config File | Native Manifest Included |
| :--- | :--- | :--- |
| **Antigravity** | `~/.gemini/config/mcp_config.json` | `plugin.json`, `mcp_config.json`, `rules/AGENTS.md`, `.agents/skills/` |
| **Claude Code / Desktop** | `.mcp.json` or `~/.claude.json` (or `claude mcp add --transport http fiverr https://mcp.fiverr.com/mcp`) | `.claude-plugin/plugin.json`, `.mcp.json`, `.agents/skills/` |
| **GitHub Copilot (VS Code & CLI)** | `~/.copilot/mcp-config.json` or workspace `.mcp.json` | `.mcp.json`, `.agents/skills/` |
| **OpenAI Codex CLI** | `~/.codex/config.toml` or `.codex/config.toml` | Managed TOML block via `setup --harness codex`, `.agents/skills/` |

---

## Companion MCP Tools (6)

| Tool | Type | Purpose |
| :--- | :--- | :--- |
| `score_candidates` | Read-only | Deterministic 0–100 weighted rubric scoring across rating, reviews, price fit, delivery fit, seller level, and response time, with red-flag and missing-field reporting. |
| `manage_shortlist` | Stateful | `list_projects`, `list`, `upsert`, and `remove` buyer shortlist entries (`shortlisted`, `contacted`, `hired`, `rejected`) in atomic local JSON storage. |
| `analyze_pricing_benchmarks` | Read-only | Calculates `min`, `p25`, `median`, `mean`, `p75`, `p90`, `max` for Basic/Standard/Premium/Single tiers and positions a seller's price against market quartiles. |
| `record_audit_snapshot` | Stateful | Saves a timestamped snapshot of a seller's AI-search visibility, top-5 rank, tier prices, and competitors for a target query. |
| `diff_audit_snapshots` | Read-only | Compares two snapshots (by ID or latest two for a seller/query) to measure rank movement, visibility gain/loss, review growth, and competitor churn. |
| `export_report` | Read-only | Renders formula-safe CSV or GitHub-flavored Markdown reports for buyer shortlists or seller audit history directly as tool output. |

---

## Optional Streamable HTTP Mode

By default, `gigcraft-for-fiverr serve` runs over `stdio`. You can also run it locally over stateless Streamable HTTP (bound to `127.0.0.1` by default):

```bash
npx gigcraft-for-fiverr serve --http --port 3845
# MCP endpoint:  POST http://127.0.0.1:3845/mcp
# Health check:  GET  http://127.0.0.1:3845/health
```

---

## Configuration & Extension Seams

- **Local Storage Location:** Defaults to your OS user-profile config directory (`%APPDATA%\gigcraft-for-fiverr\store.json` on Windows, `~/Library/Application Support/gigcraft-for-fiverr/store.json` on macOS, `~/.config/gigcraft-for-fiverr/store.json` on Linux). Override with `GIGCRAFT_DATA_DIR=/custom/path`.
- **Storage Adapter Seam (`src/storage/adapter.ts`):** `JsonStorageAdapter` uses zero native dependencies (atomic temp-file write + rename) and can be swapped for SQLite or a remote DB without modifying tool handlers.
- **Affiliate Adapter Seam (`src/affiliates/adapter.ts`):** Defaults to `NoopAffiliateAdapter` (passes verified `https://*.fiverr.com` URLs through untouched), ready for an Official Fiverr Affiliate API adapter in v2.

---

## Development

```bash
npm install
npm run typecheck
npm test
npm run build
npm run setup:dry-run
```

## License

MIT — see [LICENSE](./LICENSE).