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

@tostudy-ai/mcp-setup

v1.0.2

Published

CLI to configure IDE Code AI for ToStudyAI MCP server

Readme

@tostudy-ai/mcp-setup

CLI to configure Claude Code to connect to the Catalyst MCP server.

Installation

npx @tostudy-ai/mcp-setup

Commands

Default Setup

npx @tostudy-ai/mcp-setup                        # Interactive setup
npx @tostudy-ai/mcp-setup --api-key <key>         # Setup with API key
npx @tostudy-ai/mcp-setup --url <url>             # Custom platform URL
npx @tostudy-ai/mcp-setup --uninstall             # Remove configuration

Wizard (Step-by-Step)

npx @tostudy-ai/mcp-setup wizard                  # Interactive wizard
npx @tostudy-ai/mcp-setup wizard --api-key <key>  # Wizard with API key
npx @tostudy-ai/mcp-setup wizard --url <url>      # Custom platform URL
npx @tostudy-ai/mcp-setup wizard --skip-diagnostics  # Skip verification step
npx @tostudy-ai/mcp-setup wizard --auto-repair    # Auto-fix detected issues

The wizard guides through 4 steps:

  1. Environment detection (Claude Code, IDEs)
  2. API key configuration and validation
  3. Save configuration
  4. Diagnostics and verification

Diagnose

npx @tostudy-ai/mcp-setup diagnose                # Run diagnostics
npx @tostudy-ai/mcp-setup diagnose --json         # JSON output

Exits with code 1 if issues are found.

Repair

npx @tostudy-ai/mcp-setup repair                  # Auto-repair issues
npx @tostudy-ai/mcp-setup repair --api-key <key>  # Repair with API key
npx @tostudy-ai/mcp-setup repair --url <url>      # Custom platform URL
npx @tostudy-ai/mcp-setup repair --json           # JSON output

Install (Non-Interactive)

Used by the web setup wizard to configure a specific IDE in a single command:

npx @tostudy-ai/mcp-setup install --ide <ide> --key <key>
npx @tostudy-ai/mcp-setup install --ide cursor --key <key>
npx @tostudy-ai/mcp-setup install --ide vscode --key <key> --url http://localhost:3700

Supported IDEs: claude-code, cursor, vscode, desktop, windsurf, opencode, codex, antigravity, manual

| IDE | Config Location | Config Key | |-----|----------------|------------| | claude-code | Terminal (claude mcp add) | N/A | | cursor | ~/.cursor/mcp.json | mcpServers | | vscode | .vscode/mcp.json | servers | | desktop | Claude Desktop config | mcpServers | | windsurf | ~/.codeium/windsurf/mcp_config.json | mcpServers | | opencode | ~/.opencode/opencode.json | mcp | | codex | ~/.codex/config.toml (via codex mcp add) | mcp_servers | | antigravity | ~/.gemini/antigravity/mcp_config.json | mcpServers | | manual | stdout (prints config) | N/A |

Each handler reads-then-merges config to preserve other MCP servers.

Setup via Environment Variable

export TOSTUDY_API_KEY="your-api-key"
export TOSTUDY_PLATFORM_URL="https://tostudy.com"  # optional
npx @tostudy-ai/mcp-setup

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | TOSTUDY_API_KEY | Platform API key | - | | TOSTUDY_PLATFORM_URL | Platform URL | https://tostudy.com |

Getting Your API Key

  1. Go to tostudy.com/student/settings/mcp
  2. The setup wizard auto-detects your OS
  3. Choose your IDE (step 2)
  4. An API key is generated automatically (step 3)
  5. Copy the npx command and run it in your terminal

What the CLI Does

The CLI modifies the Claude Code configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Adds the following configuration:

{
  "mcpServers": {
    "tostudy": {
      "command": "npx",
      "args": ["-y", "@tostudy-ai/mcp-server"],
      "env": {
        "TOSTUDY_API_KEY": "your-api-key",
        "TOSTUDY_PLATFORM_URL": "https://tostudy.com"
      }
    }
  }
}

After Setup

  1. Restart Claude Code
  2. The MCP server will start automatically
  3. Use /courses to see your enrolled courses

Scripts

| Command | Description | |---------|-------------| | pnpm build | Build CLI | | pnpm type-check | TypeScript validation | | pnpm test | Run wizard e2e test | | pnpm test:e2e | Run shell e2e test | | pnpm test:diagnostic-repair | Run diagnostic/repair e2e test | | pnpm test:ide-handlers | Run IDE handler unit tests | | pnpm test:install | Run install command unit tests | | pnpm test:all | Run all tests |

Support