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

bf6-portal-typescript-mcp

v1.0.3

Published

Reference and search MCP server for BF6 Portal TypeScript SDK and the unofficial BF Portal book.

Downloads

63

Readme

BF6 Portal TypeScript MCP

Reference and search MCP server for the BF6 Portal TypeScript SDK and the unofficial BF Portal book.

Usage

Run from npm:

npx bf6-portal-typescript-mcp@latest mcp --sdk-path /path/to/bf6-portal-sdk

You can also install it globally:

npm install -g bf6-portal-typescript-mcp
bf6-portal-typescript-mcp mcp --sdk-path /path/to/bf6-portal-sdk

Local development:

npm install
npm run build
node dist/index.js mcp --sdk-path /path/to/bf6-portal-sdk

--sdk-path is optional when BF6_PORTAL_SDK_PATH is set.

BF6_PORTAL_SDK_PATH=/path/to/bf6-portal-sdk npx bf6-portal-typescript-mcp@latest mcp

Book data is downloaded automatically from link1345/bf-portal-book when this package is installed.

MCP Client Config

Example configuration for clients that launch stdio MCP servers:

{
  "mcpServers": {
    "bf6-portal": {
      "command": "npx",
      "args": [
        "bf6-portal-typescript-mcp@latest",
        "mcp",
        "--sdk-path",
        "/path/to/bf6-portal-sdk"
      ]
    }
  }
}

MCP Tools

  • search_book: searches /content/chapters/*.md from the installed link1345/bf-portal-book data and returns GitHub blob links.
  • get_book_chapter: returns one chapter by slug with headings and source URL. Chapter text is omitted by default; pass includeText, startLine, lineCount, or maxChars for bounded text.
  • search_sdk: searches SDK docs, type declarations, modlib exports, and FbExportData. Long snippets are truncated and can be expanded with detail/read tools.
  • get_sdk_symbol: returns parsed SDK type/modlib symbol details. Use includeDetail and maxChars to control detail size.
  • list_sdk_symbols: lists lightweight SDK symbol summaries with filters.
  • read_sdk_document: reads a bounded line range from SDK docs or FbExportData.
  • get_sdk_status: reports SDK path, detected folders, missing items, and version.

SDK Layout

The server checks these SDK entries:

  • code/modlib
  • code/types
  • docs
  • FbExportData
  • sdk.version.json

Missing entries do not stop startup. They are reported by get_sdk_status.

Publishing

Before publishing to npm:

npm test
npm run build
npm pack --dry-run
npm publish --access public

The package exposes these binary names:

  • bf6-portal-typescript-mcp
  • bf6-portal-mcp