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

@contextos/setup

v0.2.1

Published

Universal setup for ContextOS - one command to configure all AI coding tools (Claude, Cursor, Codex, Gemini, Windsurf, VS Code, Kilo Code, Warp)

Readme

@contextos/setup

Universal setup for ContextOS - one command to configure all AI coding tools

npm version

npx @contextos/setup

🎯 What It Does

This package automatically detects and configures ContextOS for all your AI coding tools:

✅ Supported Tools

| Tool | Type | MCP Support | Auto-Configure | |------|------|-------------|----------------| | Claude Desktop | IDE | ✅ Native | ✅ | | Claude Code CLI | CLI | ✅ Native | ✅ | | Cursor | IDE | ✅ Native | ✅ | | Windsurf | IDE | ✅ Native | ✅ | | VS Code | IDE | 🔌 Extension | ✅ | | Kilo Code | IDE | ✅ Native | ✅ | | Codex CLI | CLI | 📦 Wrapper | ✅ | | Gemini CLI | CLI | 📦 Wrapper | ✅ | | OpenCode CLI | CLI | 📦 Wrapper | ✅ | | Warp Terminal | Terminal | 📦 Wrapper | ✅ |

  • Native MCP: Direct config injection, works immediately
  • 🔌 Extension: Needs VS Code extension (Continue.dev)
  • 📦 Wrapper: Creates wrapper script for context injection

🚀 Quick Start

One-Command Setup

# Detect and configure ALL AI tools
npx @contextos/setup

# Example output:
# 🚀 ContextOS Universal Setup
#
# Found 4 AI tool(s)
#
# 🖥️  IDEs:
#    Claude Desktop MCP
#    Cursor MCP
#
# ⌨️  CLI Tools:
#    Claude Code CLI MCP
#    Codex CLI Wrapper
#
# ✓ Claude Desktop: MCP configuration added
# ✓ Cursor: MCP configuration added
# ✓ Claude Code CLI: MCP configuration added
# ✓ Codex CLI: Wrapper script created
#     → Add ~/.local/bin to your PATH
#     → Use 'codex-ctx' instead of 'codex'
#
# ✅ Setup complete: 4/4 tools configured

📋 Commands

npx @contextos/setup (or npx @contextos/setup auto)

Automatically detect and configure all tools.

Options:

  • --dry-run - Preview without making changes
  • --force - Overwrite existing configurations
  • --only-mcp - Only configure tools with native MCP support
  • --only-cli - Only configure CLI tools
  • --only-ide - Only configure IDE apps

npx @contextos/setup list

List all detected AI tools and their status.

npx @contextos/setup list

# Output:
#   Tool                    Type        MCP Support    Status
#   ────────────────────────────────────────────────────────────
#   🖥️ Claude Desktop        IDE         MCP            Ready
#   🖥️ Cursor                IDE         MCP            Configured
#   ⌨️ Claude Code CLI       CLI         MCP            Ready
#   ⌨️ Codex CLI             CLI         Wrapper        Ready

npx @contextos/setup configure <tool>

Configure a specific tool.

npx @contextos/setup configure cursor
npx @contextos/setup configure codex --force

npx @contextos/setup hook

Generate shell hook for automatic context updates.

npx @contextos/setup hook

# Output shell script to add to ~/.bashrc or ~/.zshrc

npx @contextos/setup status

Show integration status overview.

🔧 How It Works

For Native MCP Tools (Claude, Cursor, Windsurf)

We inject configuration directly into the tool's config file:

Claude Desktop (~/.config/claude/claude_desktop_config.json):

{
  "mcpServers": {
    "contextos": {
      "command": "npx",
      "args": ["-y", "@contextos/mcp"]
    }
  }
}

Cursor (~/.config/Cursor/User/settings.json):

{
  "mcp.servers": {
    "contextos": {
      "command": "npx @contextos/mcp",
      "cwd": "${workspaceFolder}"
    }
  }
}

For Wrapper Tools (Codex, Gemini CLI)

We create wrapper scripts in ~/.local/bin/:

# ~/.local/bin/codex-ctx
#!/bin/bash
# ContextOS wrapper for Codex CLI

# Build context if in a ContextOS project
if [ -d ".contextos" ]; then
    npx @contextos/mcp --build 2>/dev/null
fi

# Run original command with context
codex "$@" --system-prompt "$(cat .contextos/cache/last-context.md)"

📦 After Setup

  1. Restart your IDE(s) - Configuration changes require restart
  2. Navigate to a project - cd your-project
  3. Initialize ContextOS - npx @contextos/cli init
  4. Use AI with context! - Your AI tools now have optimized context

🔍 Troubleshooting

Tool not detected?

Make sure the tool is installed and has created its config directory:

# Check if config directory exists
ls ~/.config/Cursor/  # Linux/macOS
dir %APPDATA%\Cursor\  # Windows

MCP not working?

  1. Check tool's MCP settings
  2. Verify npx @contextos/mcp runs correctly
  3. Check logs in tool's developer console

Need to reconfigure?

npx @contextos/setup configure cursor --force

🤝 Contributing

Found a tool we should support? Open an issue or PR!

📄 License

MIT © ContextOS Team