npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@skyphusion/common-thread-mcp

v0.1.1

Published

MCP server for Common Thread: drive the full investigation API (create, seeds, ingest, attribute, packets) from an agent. Self-host or approved hosted backend.

Readme

@skyphusion/common-thread-mcp

MIT MCP server that drives the Common Thread HTTP API -- the same surface the public web UI uses (common-thread.skyphusion.org).

An agent can create investigations, manage seeds, ingest Apify Twitter exports, run attribution (BYOK on the public host), poll jobs, list runs, and export evidence packets (JSON / Markdown / PDF).

Install

npm install -g @skyphusion/common-thread-mcp
# or one-shot
npx -y @skyphusion/common-thread-mcp

Claude Desktop / Claude Code config

{
  "mcpServers": {
    "common-thread": {
      "command": "npx",
      "args": ["-y", "@skyphusion/common-thread-mcp"],
      "env": {
        "COMMON_THREAD_API_URL": "https://common-thread-backend.skyphusion.org",
        "COMMON_THREAD_AI_GATEWAY_URL": "https://gateway.ai.cloudflare.com/v1/.../anthropic",
        "COMMON_THREAD_ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}

Self-host the common-thread backend and point COMMON_THREAD_API_URL at it for full control. The hosted API is operated for the public UI and approved integrations; see docs/API.md in the main repo before building heavy third-party load against it.

Environment

| Variable | Required | Purpose | |----------|----------|---------| | COMMON_THREAD_API_URL | No | Backend base URL (default https://common-thread-backend.skyphusion.org) | | COMMON_THREAD_ACCESS_TOKEN | No* | Default capability token (ct_…) for tools | | COMMON_THREAD_INVESTIGATION_ID | No* | Default investigation id | | COMMON_THREAD_AI_GATEWAY_URL | For public attribute | BYOK gateway URL | | COMMON_THREAD_ANTHROPIC_API_KEY | For public attribute | BYOK Anthropic key (or use CF token) | | COMMON_THREAD_CF_AIG_TOKEN | For public attribute | AI Gateway Run token (keyless Unified Billing) | | COMMON_THREAD_API_TIMEOUT_MS | No | Request timeout (default 120000) |

*Per-tool investigation_id + access_token args always override env defaults. create_investigation returns the token once -- store it.

Typical agent workflow

create_investigation          -> save access_token + id
add_seed (optional)           -> seeds also register on ingest
ingest_apify_twitter          -> jobId
get_ingest_job (poll)         -> completed
list_features                 -> verify extractors
attribute (BYOK on public)    -> runs or async jobId
get_attribution_job (if 202)
list_runs / get_run
get_packet (json|markdown|pdf)
seal_investigation            -> read-only

Tools (website parity)

| Tool | API | |------|-----| | health | GET / | | create_investigation | POST /investigations | | get_investigation | GET /investigations/:id | | update_investigation_metadata | PATCH /investigations/:id/metadata | | seal_investigation | POST /investigations/:id/seal | | delete_investigation | DELETE /investigations/:id | | investigation_summary | GET /investigations/:id/summary | | list_seeds / add_seed / remove_seed | seeds routes | | list_features | GET /investigations/:id/features | | ingest_apify_twitter / get_ingest_job | ingest | | attribute / get_attribution_job | attribution | | list_runs / get_run | runs | | get_packet | packet JSON / markdown / base64 PDF | | list_manifest / list_signatures / verify_manifest | archive | | debug_ingest / debug_manifest | debug (dev) |

Authoritative HTTP contract: common-thread docs/API.md.

Develop

npm ci
npm run typecheck
npm test
npm run build
node dist/index.js   # stdio MCP

License

MIT. Common Thread itself is AGPL-3.0 (implementation) + CC-BY-4.0 (paper); this client speaks the public HTTP API only.