@mastra/mcp 2.2.0-alpha.0 → 2.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-tools-mcp-server.md +7 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/docs/SKILL.md
CHANGED
|
@@ -75,7 +75,13 @@ The constructor accepts an `MCPServerConfig` object with the following propertie
|
|
|
75
75
|
|
|
76
76
|
**workflows** (`Record<string, Workflow>`): An object where keys are workflow identifiers and values are Mastra Workflow instances. Each workflow is converted into a tool named run\_\<workflowKey>. The workflow's inputSchema becomes the tool's input schema. The workflow \*\*must\*\* have a non-empty description string property, which is used for the tool's description. If a workflow's description is missing or empty, an error will be thrown. The tool executes the workflow by calling workflow\.createRun() followed by run.start({ inputData: \<tool\_input> }). If a tool name derived from an agent or workflow (e.g., ask\_myAgent or run\_myWorkflow) collides with an explicitly defined tool name or another derived name, the explicitly defined tool takes precedence, and a warning is logged. Agents/workflows leading to subsequent collisions are skipped.
|
|
77
77
|
|
|
78
|
-
**description** (`string`): Optional description of what the MCP server does.
|
|
78
|
+
**description** (`string`): Optional description of what the MCP server does. Announced to MCP clients as part of the server's identity and returned in the registry server info.
|
|
79
|
+
|
|
80
|
+
**title** (`string`): Optional human-readable display title announced to MCP clients (e.g., 'Weather Server'). Clients fall back to name when it isn't set.
|
|
81
|
+
|
|
82
|
+
**websiteUrl** (`string`): Optional URL of the server's website, announced to MCP clients.
|
|
83
|
+
|
|
84
|
+
**icons** (`{ src: string; mimeType?: string; sizes?: string[]; theme?: 'light' | 'dark' }[]`): Optional icons clients can display for the server. src is an https: URL or a data: URI; sizes takes values like '48x48' or 'any'.
|
|
79
85
|
|
|
80
86
|
**instructions** (`string`): Optional instructions describing how to use the server and its features.
|
|
81
87
|
|
package/dist/index.cjs
CHANGED
|
@@ -26547,7 +26547,11 @@ var MCPServer = class extends _mastra_core_mcp.MCPServerBase {
|
|
|
26547
26547
|
createServerInstance() {
|
|
26548
26548
|
const server = new _modelcontextprotocol_server.Server({
|
|
26549
26549
|
name: this.name,
|
|
26550
|
-
version: this.version
|
|
26550
|
+
version: this.version,
|
|
26551
|
+
title: this.title,
|
|
26552
|
+
description: this.description,
|
|
26553
|
+
websiteUrl: this.websiteUrl,
|
|
26554
|
+
icons: this.icons
|
|
26551
26555
|
}, {
|
|
26552
26556
|
capabilities: this.capabilities(),
|
|
26553
26557
|
instructions: this.instructions,
|