Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@frontmcp/plugin-cache

Latest version: v1.13.0-rc.2

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: davidfrontegg, davidmantoon
154 Stars
8 Forks
56 Versions
6.6K Downloads
TypeScript Repo language

Scan summary

@frontmcp/plugin-cache was last scanned on 26 Nov 2026 at version 1.13.0-rc.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 56 versions; the latest 3 were published within 3 days (24–26 Nov 2026).
  • Findings: No rules fired in version 1.13.0-rc.2.
  • Downloads: 6,594 downloads.

Versions

56 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.13.0-rc.2 LATEST 26 Nov 2026 No rules fired
1.13.0-rc.1 26 Nov 2026 No rules fired
1.12.3 24 Nov 2026 No rules fired
1.12.2 14 Nov 2026 Not shown
1.12.1 13 Nov 2026 Not shown

No rules fired in 1.13.0-rc.2

Findings

Findings for v1.13.0-rc.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.13.0-rc.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@frontmcp/plugin-cache

A FrontMCP plugin that stores what a tool returns and answers the next call with the same arguments from the store, without running the tool again. Use it for tools that are slow or costly and whose answer doesn't change every call. Tools opt in one by one, with cache in @Tool, or by name, with toolPatterns. Entries live in memory, in Redis, or in Vercel KV, and each entry belongs to the caller who made it unless you say otherwise.

npm License

Install

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

Requires Node.js 24 or later. Keep @frontmcp/sdk on the same version as this package. The Redis client (ioredis) is included. @vercel/kv is an optional peer dependency: install it to use Vercel KV through type: 'global-store'.

Usage

Register the plugin on the app whose tools it should cache, and mark those tools with cache:

import { CachePlugin } from '@frontmcp/plugin-cache';
import { App, Tool, ToolContext, z } from '@frontmcp/sdk';

@Tool({
  name: 'get_exchange_rate',
  description: 'The current exchange rate between two currencies',
  inputSchema: { from: z.string().length(3), to: z.string().length(3) },
  cache: { ttl: 300 }, // answer repeated calls from the cache for 5 minutes
})
export class GetExchangeRate extends ToolContext {
  async execute({ from, to }: { from: string; to: string }) {
    return { from, to, rate: await lookUpRate(from, to) };
  }
}

@App({
  id: 'rates',
  name: 'Rates',
  tools: [GetExchangeRate],
  plugins: [CachePlugin.init({ type: 'memory', keyByIdentity: false })], // the same rate for every caller
})
export class RatesApp {}

A cached answer skips execute(), and its result carries _meta.cache: 'hit'. CachePlugin.init() with no argument, and plugins: [CachePlugin], mean type: 'memory' with the defaults. On @FrontMcp({ plugins }), the plugin caches every app's tools.

cache on @Tool

A tool is cached when it has cache, or its name matches toolPatterns. Nothing else is cached.

Value An entry lives Reading the entry
cache: true defaultTTL Leaves its expiry as it was
cache: { ttl: 60 } 60 seconds Leaves its expiry as it was
cache: { ttl: 60, slideWindow: true } 60 seconds Gives it a full 60 seconds again
cache: { ttl: 0 }, or a negative TTL Not stored The tool isn't cached, even when toolPatterns matches it

The key is a SHA-256 hash of the caller (see below), the tool (<app id>:<tool name>), and the validated arguments with object keys sorted. A result the tool returns with isError: true isn't stored.

Who gets which entry

With keyByIdentity: true, the default, each caller gets their own entries: a signed-in user is keyed by their token's subject, so one user never gets another user's cached answer.

  • A caller with no identity skips the cache. A caller without a token subject, a client id or a session the server verified, such as an MCP 2026-07-28 client without authentication, runs the tool on every call, and the plugin neither reads nor stores an entry for it. An anonymous id (anon:…) counts as no identity. There's no error or warning.
  • For tools whose answer is the same for everyone (exchange rates, a public catalog), set keyByIdentity: false. Every caller then shares one entry per tool and arguments, so never use it for tools whose answer depends on the caller's account, tenant or permissions.

Options

Option Default Description
type 'memory' Where entries are kept: 'memory', 'redis', 'redis-client' or 'global-store'. Required when you pass options. Any other value makes init() throw a CachePluginConfigurationError.
defaultTTL 86400 (a day) Seconds an entry lives when the tool's cache gives no ttl, and for tools matched by toolPatterns.
keyByIdentity true Keep separate entries per caller. See Who gets which entry.
toolPatterns [] Cache these tools too, without cache in their metadata. A tool name or <app id>:<tool name>, where * matches anything: 'catalog:*', 'get_*'.
bypassHeader 'x-frontmcp-disable-cache' A request header that skips the cache for that call when its value is true or 1. It must start with x-frontmcp-, or init() throws a CachePluginConfigurationError.
config With type: 'redis': { host, port, password?, db? }.
client With type: 'redis-client': an ioredis client you created.

Stores

'memory' keeps entries in the server's process: they're lost on restart and aren't shared between instances. For Redis, let the plugin connect:

CachePlugin.init({
  type: 'redis',
  defaultTTL: 300,
  config: { host: 'localhost', port: 6379, password: process.env.REDIS_PASSWORD, db: 0 },
});

Or pass a client you already have:

import { Redis } from 'ioredis';

const redis = new Redis({ host: 'localhost', port: 6379 });

CachePlugin.init({ type: 'redis-client', client: redis, defaultTTL: 300 });

'global-store' uses the store configured on @FrontMcp({ redis }): Redis, or Vercel KV with redis: { provider: 'vercel-kv' } (which reads KV_REST_API_URL and KV_REST_API_TOKEN when you don't pass url and token). Without redis, the server doesn't start.

@App({ id: 'catalog', name: 'Catalog', plugins: [CachePlugin.init({ type: 'global-store' })] })
class CatalogApp {}

@FrontMcp({
  info: { name: 'shop', version: '1.0.0' },
  apps: [CatalogApp],
  redis: { host: 'localhost', port: 6379 },
})
export default class Server {}

A browser build (create() in a web page, WebMCP) has no TCP socket for Redis: there 'redis' and 'redis-client' throw BrowserStoreUnavailableError from init(), and 'global-store' on a Redis redis throws it when the server starts, before anything connects. The message names type: 'memory'. Vercel KV, over HTTPS, is allowed.

Docs

Related packages

Contributing

Source: plugins/plugin-cache. Issues and pull requests are welcome; see CONTRIBUTING.md.

License

Apache-2.0. See LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @frontmcp/plugin-cache

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229