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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@cyborg-sdk/mcp

v0.0.10

Published

MCP server for Cyborg platform - documentation generation and more

Readme

@cyborg-sdk/mcp

MCP server for the Cyborg platform - documentation generation and sync.

Overview

This MCP server enables AI tool users to generate, upload, and sync documentation with the Cyborg backend. The AI writes readable markdown docs, users can review/edit, and the backend handles chunking and vectorization.

Installation

Claude Code

Add to your ~/.claude/mcp.json:

{
  "mcpServers": {
    "cyborg": {
      "command": "npx",
      "args": ["@cyborg-sdk/mcp"],
      "env": {
        "CYBORG_API_KEY": "sk-xxx",
        "CYBORG_API_URL": "https://api.cyborg.dev"
      }
    }
  }
}

Note: CYBORG_API_URL is optional - defaults to https://api.cyborg.dev

Cursor

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "cyborg": {
      "command": "npx",
      "args": ["@cyborg-sdk/mcp"],
      "env": {
        "CYBORG_API_KEY": "sk-xxx",
        "CYBORG_API_URL": "https://api.cyborg.dev"
      }
    }
  }
}

Note: CYBORG_API_URL is optional - defaults to https://api.cyborg.dev

Configuration

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | CYBORG_API_KEY | Yes* | - | Cyborg API key for authentication | | CYBORG_API_URL | No | https://api.cyborg.dev | Backend API URL |

*API key can also be passed as a tool parameter instead of environment variable.

API Key Resolution

API key is resolved in this order:

  1. Tool parameter - Pass apiKey directly to any tool
  2. Environment variable - Set CYBORG_API_KEY in MCP config

Tools

upload_docs

Initial upload of documentation files to the Cyborg backend.

Parameters:

  • apiKey (optional) - Cyborg API key
  • docsDir (default: ./cyborg-docs) - Documentation directory
  • documentType (default: markdown) - Document type (markdown or text)
  • metadata (optional) - Project metadata (name, version)

Example:

Upload my docs from ./cyborg-docs

sync_docs

Detect changes and sync with the backend.

Parameters:

  • apiKey (optional) - Cyborg API key
  • docsDir (default: ./cyborg-docs) - Documentation directory
  • dryRun (default: false) - Preview changes without uploading

Example:

Sync my documentation changes

update_doc

Update a single document in the backend.

Parameters:

  • apiKey (optional) - Cyborg API key
  • path - Relative file path (e.g., api/useChat.md)
  • docsDir (default: ./cyborg-docs) - Documentation directory

Example:

Update the api/useChat.md file in the backend

delete_doc

Delete a document from the backend.

Parameters:

  • apiKey (optional) - Cyborg API key
  • path - Relative file path to delete
  • docsDir (default: ./cyborg-docs) - Documentation directory
  • deleteLocalFile (default: false) - Also delete the local file

Example:

Delete api/deprecated.md from the backend

Resources

docs://files

List all documentation files in the output directory.

docs://files/{path}

Read a specific documentation file.

docs://status

Show sync status of documentation files:

  • synced - Files up to date with backend
  • modified - Files changed locally
  • untracked - New files not uploaded
  • deleted - Files deleted locally but still in backend

Prompts

generate_documentation

Interactive prompt that guides you through generating documentation tailored to your audience. It will ask about:

  1. Product description
  2. Target audience
  3. Technical level
  4. Main features
  5. Common tasks
  6. Documentation style
  7. Existing docs

Then analyze your codebase and generate appropriate documentation.

Output Structure

Generated documentation follows this structure:

cyborg-docs/
├── getting-started.md
├── api/
│   ├── useChat.md
│   └── sendMessage.md
├── components/
│   └── ChatProvider.md
├── types/
│   └── Message.md
└── guides/
    └── customization.md

State Tracking

After upload, state is saved to .cyborg-docs/.cyborg-state.json:

{
  "apiUrl": "https://api.cyborg.dev",
  "projectId": "proj_abc123",
  "lastSyncedAt": "2025-11-30T12:00:00Z",
  "files": {
    "getting-started.md": {
      "documentId": "doc_xyz789",
      "contentHash": "sha256:abc123...",
      "syncedAt": "2025-11-30T12:00:00Z"
    }
  }
}

Workflow

First Time Setup

  1. Generate documentation:

    Generate documentation for this project
  2. Review and edit the generated files in ./cyborg-docs/

  3. Upload to Cyborg:

    Upload my docs with API key sk-xxx

Updating Documentation

  1. Make changes to your code

  2. Regenerate affected docs:

    Update the useChat hook documentation
  3. Sync changes:

    Sync my documentation

Checking Status

What's the status of my docs?

Development

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run dev

# Type check
npm run type-check

License

MIT