Token导航 LogoToken导航TokenDH.com
mcpbuilder-AI logo
开发工具stdio官方来源来源级核验

mcpbuilder-AI

MCP Server

MCP-Builder.ai官方SDK,提供Python和TypeScript支持,可快速连接AI驱动的MCP服务器,实现实时聊天、工具执行和会话管理。

工具数

0

提示词数

0

GitHub Stars

3

资源数

0
实时通信PythonWebSocket

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

MCP-Builder-ai

提供方

MCP-Builder-ai

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install mcpbuilder-ai

详细介绍

mcpbuilder-ai

Connect your apps to AI-powered MCP servers — in minutes, not months.

mcpbuilder-ai is the official SDK for MCP-Builder.ai, available for both Python and TypeScript.

Stream chat responses, execute tools with consent handling, and manage authentication — all through a clean, callback-driven API over WebSockets.

Build your MCP server on the MCP-Builder.ai dashboard, grab your project token, and start talking to it from any app with just a few lines of code.

______________________________________________________________________

运作原理

┌─────────────────────┐         ┌──────────────────────────┐
│   Your Application  │  SDK    │   MCP-Builder.ai Cloud   │
│                     │ ─────►  │                          │
│  - Web frontend     │  WS     │  - MCP Server you built  │
│  - CLI tool         │ ◄─────  │  - Tool execution        │
│  - Backend service  │         │  - LLM orchestration     │
└─────────────────────┘         └──────────────────────────┘
  1. 设计 您的MCP服务器位于 mcp-builder.ai --配置工具,连接API,设置身份验证。
  2. 安装 SDK(pip install mcpbuilder-ai / npm install mcpbuilder-ai).
  3. 连接 使用您的项目令牌和部署名称。
  4. 聊天 --实时流式传输令牌、处理工具调用、管理同意流。

______________________________________________________________________

特性

PythonTypeScript
实时令牌流
Fluent回调API
工具同意处理
通过回退自动重新连接
会话和历史管理
安全参数覆盖
全型安全✅ (键入提示)✅ (TypeScript泛型)
ESM+CommonJS--

______________________________________________________________________

快速开始

TypeScript

npm install mcpbuilder-ai
import { MCPChatClient } from 'mcpbuilder-ai';

const client = new MCPChatClient({
  projectToken: 'your-project-token',
  deploymentName: 'my-deployment',
  cacheHistory: false,
});

client
  .onToken((token) => process.stdout.write(token))
  .onFinal((text, toolCalls) => console.log('\nDone!'))
  .onError((error) => console.error('Error:', error));

await client.connect();
await client.sendMessage('Hello, what can you do?');

python

pip install mcpbuilder-ai
import asyncio
from mcpbuilder import MCPChatClient

async def main():
    client = MCPChatClient(
        project_token="your-project-token",
        deployment_name="my-deployment",
        cache_history=False,
    )

    client \
        .on_token(lambda t: print(t, end="", flush=True)) \
        .on_final(lambda text, tc: print("\nDone!")) \
        .on_error(lambda msg: print(f"Error: {msg}"))

    await client.connect()
    await client.send_message("Hello, what can you do?")

asyncio.run(main())

______________________________________________________________________

SDK文档

SDK软件包文档
TypeScriptTypeScript自述
python mcpbuilder-ai 在PyPI上Python自述

______________________________________________________________________

集成示例

例子 目录包含可运行的项目,显示如何连接到构建在其上的MCP服务器 MCP-Builder.ai:

示例语言描述
React MCP聊天TypeScript基于React的聊天UI,支持流媒体+工具同意
简单的Python命令行界面Python带有实时令牌流的终端聊天客户端
新加入MCP-Builder.ai? 检查 入门指南 创建您的第一个项目并获取项目令牌。

______________________________________________________________________

MCP-Builder.ai入门

  1. 注册mcp-builder.ai 然后打开仪表板。
  2. 创建项目 --定义您的工具,连接外部API,并配置身份验证。
  3. 部署 只需单击一下即可访问您的MCP服务器。
  4. 复制 仪表板中的项目令牌和部署名称。
  5. 安装 SDK并将凭据粘贴到您的应用程序中——您就可以使用了。

______________________________________________________________________

贡献

欢迎投稿!请随时打开问题或提交pull请求。

许可证

Apache-2.0--有关详细信息,请参阅\[LICENSE\]。

目录标签

目录标签

实时通信PythonWebSocketAI集成本地部署SDK工具执行

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotoken部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP