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

@okfshare/mcp

v0.2.0

Published

MCP server exposing okfshare operations to agents

Readme

@okfshare/mcp

Model Context Protocol (MCP) server for okfshare - shared, versioned knowledge for AI coding agents.

This stdio MCP server wraps the okfshare CLI so MCP clients (Claude Code, Cursor, opencode, Codex, and any MCP-compatible agent) can search, read, and publish team knowledge bundles as cited context.

Quick start

npx @okfshare/mcp@latest

The server launches npx okfshare@latest under the hood and speaks JSON-RPC over stdio. Authenticate once with npx okfshare@latest setup (or provide OKFSHARE_TOKEN); every tool call then runs against your workspace.

Claude Code

claude mcp add okfshare -- npx @okfshare/mcp@latest

Any MCP client (stdio)

{
  "mcpServers": {
    "okfshare": {
      "command": "npx",
      "args": ["@okfshare/mcp@latest"]
    }
  }
}

Tools

The server keeps the contract navigable by grouping related platform operations:

| Tool | Operations | | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- | | okfshare_list, okfshare_search, okfshare_context, okfshare_open, okfshare_diff, okfshare_log, okfshare_validate, okfshare_whoami | Existing retrieval and local validation tools | | okfshare_graph | search, snapshot, neighbors, path, diff, provenance, related | | okfshare_blame | line, semantic | | okfshare_attestations | list, verify, submit | | okfshare_refs | Branch, channel, tag, and release list, get, resolve, create, move, delete | | okfshare_proposals | Share proposal list, plus detail, reviewer, review, comment, check, reopen, merge, reject | | okfshare_roles, okfshare_organizations, okfshare_teams | Workspace access and organization operations | | okfshare_service_accounts | Service accounts and credential lifecycle | | okfshare_audit, okfshare_governance | Audit metadata, policies, holds, and retention inspection | | okfshare_portability_export, okfshare_ops | Portability exports and status/dependencies/SLOs | | okfshare_fork, okfshare_status, okfshare_pull | Confirmed fork creation and local binding status/pull | | okfshare_bindings, okfshare_siem | Workspace role bindings and SIEM webhook destinations | | okfshare_integrity | One-revision verification or bounded cursor-paginated integrity history | | okfshare_share_access | Direct share roles/grants and private-share operation | | okfshare_rulesets | Ruleset CRUD, validation, and single/all-ruleset evaluation | | okfshare_webhooks | Generic product webhook CRUD | | okfshare_domains | Organization domain list/get/create/manual verify/delete | | okfshare_capabilities, okfshare_organization_administrators, okfshare_admin, okfshare_billing | Capability introspection, administrator assignment, operator controls, and billing snapshot |

Schemas use closed JSON objects and enums for operation names. Mutating delete, merge, reopen, transfer, release, revoke, and retention actions require confirm: true; the server maps this to the CLI's explicit --yes flag. Private keys and secret fields are rejected from JSON payloads and removed from CLI output. Service-account credential responses are marked oneTimeCredential: true; the MCP server never stores them.

Refs with a refType use the CLI's plural category position (branches, channels, tags, or releases). Proposal listing is addressed by share id; proposal review and lifecycle operations remain addressed by proposal id. Capability introspection and organization-administrator assignment map directly to the CLI commands. Domain verification accepts only the explicit verificationToken input and does not persist it.

Mutations always require confirm: true, including reviews, comments, ref creation/moves, account changes, webhook changes, and fork/pull operations. For example:

{
  "name": "okfshare_fork",
  "arguments": { "shareId": "team-notes", "confirm": true }
}

Graph and retrieval calls are revision-addressed; return envelopes from the CLI retain their source, revision, and citation fields for agent answers.

All retrieval responses identify the resolved immutable revision, so citations stay auditable.

Environment

  • OKFSHARE_TOKEN - optional. Pre-provisioned CLI credential for headless use. Check existence only; never log its value.
  • OKFSHARE_CLI - optional. Override the CLI command (default npx okfshare@latest).

Learn more

  • Product site: https://okfshare.app
  • CLI: https://www.npmjs.com/package/okfshare
  • OKF format: https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md

License

See the repository license.