Skip to content

PlatformMcpSettings

@tsed/platform-mcp

Usage ​

typescript
import { PlatformMcpSettings } from "@tsed/platform-mcp";

See /packages/platform/platform-mcp/src/common/interfaces/PlatformMcpSettings.ts.

Overview ​

ts
interface PlatformMcpSettings {
    path?: string;
    enabled?: boolean;
    name?: string;
    version?: string;
    title?: Implementation["title"];
    description?: Implementation["description"];
    websiteUrl?: Implementation["websiteUrl"];
    icons?: Implementation["icons"];
    tools?: TokenProvider[];
    resources?: TokenProvider[];
    prompts?: TokenProvider[];
    serverOptions?: ServerOptions;
    transportOptions?: StreamableHTTPServerTransportOptions;
    upstream?: PlatformMcpUpstreamSettings;
    auth?: PlatformMcpAuthSettings | PlatformMcpPreAuthSettings;
}

Description ​

Configuration fragment accepted under configuration.mcp to wire the Platform MCP module.

path ​

ts
path?: string;

Mount path for the MCP endpoint. Defaults to /mcp.

enabled ​

ts
enabled?: boolean;

Whether the HTTP endpoint should be enabled. Defaults to true.

name ​

ts
name?: string;

Optional name reported to MCP clients. Falls back to the Ts.ED app name.

version ​

ts
version?: string;

Optional version reported to MCP clients. Falls back to the Ts.ED app version.

title ​

ts
title?: Implementation["title"];

Optional human-readable server title exposed to MCP clients.

description ​

ts
description?: Implementation["description"];

Optional server description exposed to MCP clients.

websiteUrl ​

ts
websiteUrl?: Implementation["websiteUrl"];

Optional canonical website URL exposed to MCP clients.

icons ​

ts
icons?: Implementation["icons"];

Optional icon descriptors exposed to MCP clients.

tools ​

ts
tools?: TokenProvider[];

Optional tokens registered through configuration.

resources ​

ts
resources?: TokenProvider[];

prompts ​

ts
prompts?: TokenProvider[];

serverOptions ​

ts
serverOptions?: ServerOptions;

Optional low-level MCP server options forwarded to new McpServer(serverInfo, options).

transportOptions ​

ts
transportOptions?: StreamableHTTPServerTransportOptions;

Optional transport options for the MCP server.

upstream ​

ts
upstream?: PlatformMcpUpstreamSettings;

Third-party MCP server exposed through this endpoint (gateway mode).

auth ​

ts
auth?: PlatformMcpAuthSettings | PlatformMcpPreAuthSettings;

Protect the HTTP endpoint: with an OAuth authorization server (issuer, resource, ...), with a custom check (preAuth), or with both.

Released under the MIT License.