Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PostHog/posthog-foss --skill testing-mcp-tools-locallygit clone --depth 1 https://github.com/PostHog/posthog-fossWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/posthog/posthog-foss/testing-mcp-tools-locally)<a href="https://agentmods.dev/skills/posthog/posthog-foss/testing-mcp-tools-locally"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/testing-mcp-tools-locally/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/posthog/posthog-foss/testing-mcp-tools-locally"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/testing-mcp-tools-locally.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00098 | $0.02230 |
| Opus 5.5 | $0.00039 | $0.00892 |
| Sonnet 5.5 | $0.00020 | $0.00446 |
| Haiku 4.5 | $0.00010 | $0.00223 |
Grade A, and why
testing-mcp-tools-locally scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -H "Authorization: Bearer <token>" \ How it starts
The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing managed migrations MCP tools locally
Prerequisites
The dev environment must be running with Docker services healthy. The batch import support API and MCP tools require:
- A staff user (
is_staff = True) - A Personal API Key carrying both
batch_import_support:readanduser:read, explicitly - Postgres migrations applied (ClickHouse not required)
Why both scopes: the backend accepts batch_import_support:read alone,
but MCP tool discovery verifies staffness via /api/users/@me/ and hides the tools (fail-closed) when the key cannot make that call.
A * wildcard does not substitute for either — the discovery gate requires the hidden scope explicitly, and the backend's INTERNAL scope handling rejects wildcard keys outright.
For the production setup flow, see docs/support-mcp-tools.md.
1. Start the dev environment
hogli start -d
hogli wait
If hogli wait fails on migrate-persons-db or migrate-behavioral-cohorts,
those are optional separate databases — ignore them.
If it fails on migrate-postgres, check Docker port forwarding (see troubleshooting below).
2. Run Postgres migrations
hogli migrations:run
ClickHouse migration failures are fine — batch imports only need Postgres.
3. Verify DB connectivity from the Django shell
hogli dev:shell-plus -y -- -c "
from posthog.models import Team, User
print(Team.objects.first(), User.objects.first())
"
If this fails with connection refused on port 5432, see troubleshooting below.
4. Seed batch import test data
Use hogli dev:shell-plus to create BatchImport records in various states.
The secrets field is an EncryptedJSONStringField — empty {} serializes to null
and violates the NOT NULL constraint; always pass a non-empty dict.
from products.managed_migrations.backend.models.batch_imports import BatchImport
BatchImport.objects.create(
team=team,
created_by_id=user.id,
status=BatchImport.Status.PAUSED,
import_config={
'source': {'type': 's3', 'bucket': 'test', 'region': 'us-east-1', 'prefix': 'data/'},
'data_format': {'type': 'json_lines', 'skip_blanks': True, 'content': {'type': 'mixpanel'}},
'sink': {'type': 'capture'},
},
secrets={'access_key': 'test', 'secret_key': 'test'},
state={'parts': [
{'key': 'part-1', 'current_offset': 50000, 'total_size': 50000},
{'key': 'part-2', 'current_offset': 10000, 'total_size': 50000},
{'key': 'part-3'},
]},
)
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed fc3aba4e6b81
- 3mo ago First seen · 219 lines · 98 tokens per session scan A cf0cc10bd7ac
testing-mcp-tools-locally is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 98 tokens to every session and 2,230 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
testing-mcp-tools-locally compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| testing-mcp-tools-locallyPostHog/posthog-foss | Skill | 736 | today | MIT | A | 98 | Claude Code, Codex |
| eval-dataset-designbojieli/ai-agent-book | Skill | 61k | 2d ago | Apache-2.0 | A | 138 | Claude Code, Codex |
| create-verification-skillYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 45 | Claude Code |
| verify-omnigentomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 100 | Claude Code, Codex |
| test-masterJeffallan/claude-skills | Skill | 13k | today | MIT | A | 104 | Claude Code |
| dogfoodcallstack/agent-device | Skill | 5.6k | today | MIT | A | 55 | Claude Code |
| cua-driverdavidondrej/skills | Skill | 4.4k | yesterday | MIT | A | 68 | Claude Code, Codex |