New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@okfshare/mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@okfshare/mcp

MCP server exposing okfshare operations to agents

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
31
14.81%
Maintainers
1
Weekly downloads
 
Created
Source

@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

ToolDescription
whoamiShow the authenticated workspace identity
doctorCheck credential expiry, API reachability, bindings
list_sharesList knowledge bundles in the workspace
search_shareBounded term search within one bundle (cited hits)
search_workspaceSearch across all bundles in the workspace
get_contextToken-budgeted retrieval with line-level citations
pull_bundlePull a full immutable revision of a bundle
publish_bundlePublish a local OKF directory as a new revision

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

License

See the repository license.

FAQs

Package last updated on 23 Aug 2026

Related posts