Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

testing-mcp-tools-locally

Skill by PostHog

Sets up a local PostHog dev environment to test the staff-only managed-migrations-support-list and managed-migrations-support-get MCP tools end to end. Aimed at developers testing batch import support tooling, debugging tool discovery, or checking the support API before deploying.

  • Score 86
  • 41k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install testing-mcp-tools-locally

Built from the published package, never by AI.

git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/.agents/skills/testing-mcp-tools-locally ~/.claude/skills/testing-mcp-tools-locally

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install testing-mcp-tools-locally in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill walks through running PostHog locally with Docker, applying Postgres migrations, and seeding BatchImport records in different statuses. It shows how to make a user staff and mint fresh Personal API Keys with the scopes the MCP discovery gate needs. It also covers calling the managed migrations support API directly with curl and testing the MCP tools through the local Hono server and the MCP Inspector CLI.

The skill is for developers who work on batch import support tooling. It includes a discovery matrix showing which keys should see the staff-only tools, and a troubleshooting section for tools that do not appear, 401 errors from the wrangler worker, port 5432 connectivity, and seeded records changed by the local batch import worker.

Written from the project's SKILL.md and checked against it.

What it can do

  • managed-migrations-support-listLists batch imports through the staff-only managed migrations support API.
  • managed-migrations-support-getReturns detail for a specific batch import through the managed migrations support API.
  • Batch import seedingCreates BatchImport test records in various statuses for local testing.
  • Discovery gate testingChecks which API keys can see the hidden support tools and which cannot.
  • Direct API testingCalls the managed migrations support API with curl using a Bearer token.

What you need

  • Docker with the PostHog dev services running
  • A staff user (is_staff = True)
  • A Personal API Key with batch_import_support:read and user:read
  • Postgres migrations applied

Try asking

  • Help me seed BatchImport records in paused and failed states for testing.
  • Check why the managed migrations support tools do not appear for my key.
  • Show me how to test managed-migrations-support-list through the local MCP server.

Good to know

  • Wildcard (*) keys do not grant access to the hidden support scope and cannot surface the tools.
  • OAuth sign-in cannot surface these tools, so a Personal API Key is required.
  • Non-staff users see no tools and get 403 on direct API calls.
  • ClickHouse is not required because batch imports only need Postgres.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/testing-mcp-tools-locally/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB
  • references/seed-data.md7 KB

Alternatives to testing-mcp-tools-locally

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

testing-mcp-tools-locally: common questions

Why don't the managed migrations MCP tools show up for my API key?

The key must explicitly carry batch_import_support:read and user:read, and its user must have is_staff set to True. Keys minted before a scope change can serve stale results, so mint a fresh key.

Can I use OAuth to test these MCP tools locally?

No. The source says the hidden scope is structurally absent from OAuth, so signing in with OAuth can never surface these tools. Use a Personal API Key as a Bearer token instead.

Why does the local MCP setup return 401 Invalid API key?

The wrangler worker on port 8787 proxies /mcp to production, so local keys are rejected there. Run the Hono server on port 3001 instead, or set MCP_HONO_URL in .dev.vars.

How do I install testing-mcp-tools-locally?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is testing-mcp-tools-locally free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is testing-mcp-tools-locally safe to use?

It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to testing-mcp-tools-locally?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

testing-mcp-tools-locally Install

Add to stack

Loading.