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
Maintainers
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-sdkYou can also install it globally:
npm install -g bf6-portal-typescript-mcp
bf6-portal-typescript-mcp mcp --sdk-path /path/to/bf6-portal-sdkLocal 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 mcpBook 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/*.mdfrom the installedlink1345/bf-portal-bookdata and returns GitHub blob links.get_book_chapter: returns one chapter by slug with headings and source URL. Chapter text is omitted by default; passincludeText,startLine,lineCount, ormaxCharsfor 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. UseincludeDetailandmaxCharsto 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/modlibcode/typesdocsFbExportDatasdk.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 publicThe package exposes these binary names:
bf6-portal-typescript-mcpbf6-portal-mcp
