Skip to main content
Home

Built and signed on GitHub Actions

A TypeScript framework for building MCP (Model Context Protocol) servers.

This package works with Cloudflare Workers, Node.jsIt is unknown whether this package works with Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
76%
Published
3 weeks ago (3.22.0)
class DiscoveryDocumentCache

Constructors

new
DiscoveryDocumentCache(options?: { ttl?: number; })

Properties

readonly
size: number

Methods

clear(url?: string): void
get(url: string): Promise<unknown>

fetches a discovery document from the given URL. uses cached value if available and not expired. coalesces concurrent requests for the same URL to prevent duplicate fetches.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@punkpeye/fastmcp

Import symbol

import { DiscoveryDocumentCache } from "@punkpeye/fastmcp";
or

Import directly with a jsr specifier

import { DiscoveryDocumentCache } from "jsr:@punkpeye/fastmcp";

Add Package

pnpm i jsr:@punkpeye/fastmcp
or (using pnpm 10.8 or older)
pnpm dlx jsr add @punkpeye/fastmcp

Import symbol

import { DiscoveryDocumentCache } from "@punkpeye/fastmcp";

Add Package

yarn add jsr:@punkpeye/fastmcp
or (using Yarn 4.8 or older)
yarn dlx jsr add @punkpeye/fastmcp

Import symbol

import { DiscoveryDocumentCache } from "@punkpeye/fastmcp";

Add Package

vlt install jsr:@punkpeye/fastmcp

Import symbol

import { DiscoveryDocumentCache } from "@punkpeye/fastmcp";

Add Package

npx jsr add @punkpeye/fastmcp

Import symbol

import { DiscoveryDocumentCache } from "@punkpeye/fastmcp";

Add Package

bunx jsr add @punkpeye/fastmcp

Import symbol

import { DiscoveryDocumentCache } from "@punkpeye/fastmcp";