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

opencode-slim-mcp

v0.5.0

Published

OpenCode plugin — convert MCP servers with slim:true into skills + native proxy tools with connection pooling

Readme

opencode-slim-mcp

OpenCode plugin that converts MCP servers marked slim: true into skills + a single native proxy tool. Agent discovers tools via on-demand skill loading (zero idle token cost), calls them through a pooled MCP connection.

Problem

  • Full MCP registration = token bloat (hundreds of schemas in context)
  • No middle ground between full registration and blind proxying

How to Install

1. Add the plugin to your opencode.json

{
  "plugin": ["opencode-slim-mcp"]
}

2. Mark MCP servers with slim: true

In your project or global opencode.json, add "slim": true to any MCP server you want managed by this plugin:

{
  "mcp": {
    "todoist": {
      "command": "npx",
      "args": ["-y", "@anthropics/todoist-mcp"],
      "slim": true
    },
    "playwright": {
      "command": "npx",
      "args": ["-y", "@anthropics/playwright-mcp"],
      "slim": true
    },
    "regular-mcp": {
      "command": "some-mcp-server",
      "args": ["--stdio"]
    }
  }
}

Servers without slim: true are left untouched — opencode handles them normally.

3. (Optional) Disable a slim server

Set "enabled": false to disable a server without removing it from config:

{
  "mcp": {
    "todoist": {
      "command": "npx",
      "args": ["-y", "@anthropics/todoist-mcp"],
      "slim": true,
      "enabled": false
    }
  }
}

Disabled servers appear as [disabled] in mcp-status but won't start, generate skills, or accept tool calls.

What Happens on Startup

  1. Plugin reads opencode.json (project dir + ~/.config/opencode/)
  2. Extracts entries with slim: true (skips disabled ones)
  3. Introspects each server for available tools
  4. Generates SKILL.md files + schema cache per server
  5. Registers a single mcp tool that proxies calls to any slim server
  6. Probes remote reachability first; auth failures stay enabled for opencode mcp auth
  7. Sets enabled: false on remaining slim entries in host config (prevents double-handling)

Regeneration only triggers when the enabled server list changes.

Plugin Configuration

Create slim-mcp-config.json in your project root or ~/.config/opencode/:

{
  "lazy-loading": true,
  "lazy-idle-shutdown-interval": "5m"
}

| Option | Default | Description | |--------|---------|-------------| | lazy-loading | true | Connect to servers on first tool call (vs. eagerly on startup) | | lazy-idle-shutdown-interval | "5m" | Disconnect idle servers after this duration (e.g. "5m", "300000") |

Tools Provided

mcp

Calls a tool on any enabled slim MCP server.

mcp(server: "todoist", tool: "add-tasks", params: '{"tasks": [...]}')

mcp-status

Shows status of all slim MCP servers: connected, pending, disabled, or error.

Output Structure

~/.local/state/opencode/slim-mcp/
├── skills/mcp-<server>/SKILL.md     # Tool names, descriptions, param docs
├── schemas/<server>/*.json           # Per-tool input schemas
├── manifest.json                     # Generation metadata
└── status.json                       # Server status (consumed by TUI plugin)

TUI Sidebar Plugin

Shows slim MCP server status in the opencode TUI sidebar (connection state, errors, auth status).

Add to your global TUI config at ~/.config/opencode/tui.json:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": ["opencode-slim-mcp"]
}

Renders below the built-in MCP sidebar (order 210). Polls status.json on startup + after mcp/mcp-status tool calls.

Prerequisites

  • Node.js (ESM)
  • MCP servers must be reachable via their configured command/args