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

@ovigroup/oap-devkit

v1.0.14

Published

OAP-Devkit MCP client — connect AI IDE to OAP Meta platform

Readme

@ovigroup/oap-devkit

Thin npm client cho OAP Meta MCP. Package này không phải nơi chứa implementation MCP chính.

Source of truth

Vai trò của package này

Package packages/oap-devkit/src/index.jspackages/oap-devkit/bin/oap-devkit.js chịu trách nhiệm:

  • stdio ↔ SSE/HTTP proxy cho AI IDE
  • profile / token management
  • reconnect / session bootstrap
  • local cache cho tools/resources
  • optional runtimeBaseUrl persistence cho browser preview / runtime verification flow

Không sửa package này khi

Nếu yêu cầu thuộc các nhóm sau, ưu tiên sửa backend MCP ở oap-meta/backend/src/mcp:

  • thêm MCP tool mới
  • sửa auth / execution context của MCP
  • sửa metadata resources
  • sửa tool registry / JSON schema exposure
  • sửa page/report/plugin/admin MCP behavior

Browser preview config

Tool add_server hỗ trợ thêm runtimeBaseUrl optional để lưu runtime URL riêng cho browser verification.

Ví dụ local profile trong .oap-devkit.json:

{
  "url": "http://localhost:3001",
  "token": "<jwt>",
  "runtimeBaseUrl": "http://localhost:5173"
}

Backend tool get_page_preview sẽ ưu tiên:

  1. runtimeBaseUrl truyền trực tiếp vào tool
  2. runtimeBaseUrl đã lưu trong profile/devkit config
  3. runtime URL derive từ meta URL hoặc fallback localhost

Split trách nhiệm cho get_page_preview

injectScript không còn nhét DEVKIT token trực tiếp vào browser. Thay vào đó backend sinh preview ticket một lần và script sẽ exchange ticket này qua /api/v1/auth/preview/exchange để lấy runtime session/token thật, rồi mới set sessionStorage['token'] và cookie auth_token.

Điểm vào chính

Rule of thumb

Khi ai hỏi "oap-devkit đang được code ở đâu?":

  1. Nếu hỏi về npm client / transport proxy → trả lời packages/oap-devkit
  2. Nếu hỏi về implementation MCP chính / source of truth → trả lời oap-meta/backend/src/mcp