@frontmcp/plugins

中文文档
1.12.2发布于 2026/11/15Apache-2.0TypeScriptESM + CJS构建来源已验证近 30 天下载 9176

Meta-package that installs and re-exports the FrontMCP cache, CodeCall, dashboard and Remember plugins

原始使用文档
文档目录7 节
  1. Install
  2. Usage
  3. What it includes
  4. Docs
  5. Related packages
  6. Contributing
  7. License

@frontmcp/plugins

A meta-package that installs four official FrontMCP plugins and re-exports everything they export: @frontmcp/plugin-cache, @frontmcp/plugin-codecall, @frontmcp/plugin-dashboard and @frontmcp/plugin-remember. It has no code of its own. We recommend installing the plugin packages you use instead: you get only what you need, and the other official plugins (approval, feature flags, Skilled OpenAPI, WebMCP) are only published on their own.

npm License

Install

npm install @frontmcp/plugins @frontmcp/sdk

Or, as recommended, only the plugins you use:

npm install @frontmcp/plugin-cache @frontmcp/plugin-remember @frontmcp/sdk

Requires Node.js 24 or later. Each plugin depends on exactly its own version of @frontmcp/sdk, so keep every @frontmcp/* package in your app on the same version.

Usage

Import a plugin from @frontmcp/plugins and list SomePlugin.init({ ... }) in the plugins of an @App, for that app's tools, or of @FrontMcp, for every app's:

import { CachePlugin, RememberPlugin } from '@frontmcp/plugins';
import { App, FrontMcp, Tool, ToolContext, z } from '@frontmcp/sdk';

@Tool({
  name: 'get_product',
  description: 'A product by SKU',
  inputSchema: { sku: z.string() },
  cache: { ttl: 600 }, // a field the cache plugin adds to @Tool
})
class GetProduct extends ToolContext {
  async execute({ sku }: { sku: string }) {
    return { sku, name: 'Mechanical keyboard' };
  }
}

@App({
  id: 'catalog',
  name: 'Catalog',
  tools: [GetProduct],
  plugins: [CachePlugin.init({ type: 'memory' })],
})
class CatalogApp {}

@FrontMcp({
  info: { name: 'shop', version: '1.0.0' },
  apps: [CatalogApp],
  plugins: [RememberPlugin.init({ type: 'memory' })], // this.remember, for every app's tools
})
export default class Server {}

CachePlugin from @frontmcp/plugins is the same class as CachePlugin from @frontmcp/plugin-cache, and the same goes for the others, so moving to the individual packages only changes the import path. Pick one import path and use it everywhere.

What it includes

PluginMain exportsWhat it doesDocs
CacheCachePluginAnswers repeated tool calls from a store (memory, Redis or Vercel KV) instead of running the tool again. Tools opt in.Cache
CodeCallCodeCallPluginPuts many tools behind a few codecall:* meta-tools: the model searches your tools and runs short scripts that call them.CodeCall
DashboardDashboardPlugin, DashboardAppA web page and an MCP endpoint at /dashboard that show the server's apps, tools, resources and prompts.The dashboard
RememberRememberPluginthis.remember, an encrypted key-value memory for tools, kept per session, user or tool, or shared by everyone.Remember

Every other export of those packages (types, errors, tokens, and helpers like getRemember) is re-exported too. Not included: @frontmcp/plugin-approval, @frontmcp/plugin-feature-flags, @frontmcp/plugin-skilled-openapi, @frontmcp/plugin-webmcp and @frontmcp/adapters. Install those on their own.

Docs

  • @frontmcp/sdk: the framework these plugins extend, with @App, @FrontMcp, @Plugin and DynamicPlugin
  • @frontmcp/testing: end-to-end tests for servers that use these plugins

Contributing

Source: libs/plugins. Each plugin's code is under plugins/. Issues and pull requests are welcome; see CONTRIBUTING.md.

License

Apache-2.0. See LICENSE.

版本与发布记录

@frontmcp/plugins 共发布 127 个版本,首次发布于 2025/11/05;过去 12 个月发布了 119 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.12.2latest2026/11/151 天前
1.12.12026/11/132 天前
1.12.02026/11/114 天前
1.12.0-rc.1rc2026/11/114 天前
1.11.32026/11/106 天前
1.11.22026/11/096 天前

其他发布通道:beta → 1.1.2-beta.1,rc → 1.12.0-rc.1。

关于 @frontmcp/plugins 的常见问题

@frontmcp/plugins 是什么?

Meta-package that installs and re-exports the FrontMCP cache, CodeCall, dashboard and Remember plugins

如何安装 @frontmcp/plugins?

在项目目录运行 npm install @frontmcp/plugins,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@frontmcp/sdk(1.12.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@frontmcp/plugins 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@frontmcp/plugins 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@frontmcp/plugins 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@frontmcp/plugins 可以商用吗?

@frontmcp/plugins 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@frontmcp/plugins 的下载量有多少?

根据 npm 官方下载统计,@frontmcp/plugins 在 2026/10/16 – 2026/11/14 这 30 天内被下载 9,176 次,日均约 306 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@frontmcp/plugins 还在维护吗?

最新版本 1.12.2 发布于 2026/11/15(1 天前);至今共发布 127 个版本,其中过去 12 个月发布了 119 个;首次发布于 2025/11/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。