@mastra/mcp

@mastra/mcp 是一个 Model Context Protocol (MCP) 客户端实现,专为 Mastra 平台设计。该工具提供与 MCP 兼容的 AI 模型和工具的无缝集成,使开发者能够在 Mastra 生态系统中轻松使用各种 MCP 资源。作为 npm 包发布,它支持模型上下文协议的标准化交互,简化了 AI 模型集成和工具调用的开发流程。

mcpai-integrationmodel-protocolmastraclient-implementation
支持环境:Node.js
安装
npm install @mastra/mcp
使用示例
以下是如何在你的项目中使用 @mastra/mcp 的基本示例
// 基本使用示例
import { mastramcp } from '@mastra/mcp';

// 初始化
const tool = new mastramcp();

// 使用
await tool.execute();
工具信息
版本0.13.3
许可证Apache-2.0
包名@mastra/mcp
发布时间2025/10/3
最后更新2025/10/3
相关工具

即将推出相关工具推荐功能