AI Specialists Hub - MCP Integration
Connection
Call the MCP endpoint via HTTP POST. The endpoint URL is stored in TOOLS.md or provided by the user.
CODEBLOCK0
Critical headers: Must include Accept: application/json, text/event-stream or the server returns 406.
Response format: SSE — parse with: response.split('data: ')[1] → JSON → INLINECODE2
Available Tools
Discovery & Management
| Tool | Required Params | Description |
|---|
| INLINECODE3 | — | List all hired specialists |
| INLINECODE4 |
— | List available specialist types |
|
hire_specialist |
type,
name | Hire a new specialist |
|
dismiss_specialist |
specialist | Remove a specialist |
|
import_specialist |
url | Import from GitHub URL |
|
get_specialist_overview |
specialist | Get specialist summary |
Workspace Navigation
| Tool | Required Params | Description |
|---|
| INLINECODE14 | INLINECODE15 | Full folder/file tree |
| INLINECODE16 |
specialist,
folder_path | List folder contents |
Document Operations
| Tool | Required Params | Description |
|---|
| INLINECODE19 | INLINECODE20 , INLINECODE21 | Read one document |
| INLINECODE22 |
specialist,
document_paths (array) | Bulk read multiple docs |
|
update_specialist_document |
specialist,
document_path,
content | Create or update a doc |
|
delete_specialist_document |
specialist,
document_path | Delete a document |
Folder Operations
| Tool | Required Params | Description |
|---|
| INLINECODE32 | INLINECODE33 , INLINECODE34 | Create folder (recursive) |
| INLINECODE35 |
specialist,
folder_path | Delete folder and contents |
Parameter note: The specialist identifier is always the id field from list_specialists, not the display name. Use lowercase (e.g. ruby, peter, benjamin).
Working with a Specialist
Every specialist has an ai-instructions/ folder containing their identity and behavioral instructions. Always read these first when working with a specialist you haven't loaded yet:
CODEBLOCK1
Pattern: First interaction with a specialist
- 1.
list_specialists → find the specialist id - INLINECODE45 → read
ai-instructions/core-instructions.md and INLINECODE47 - Understand their domain, workspace structure, and communication style
- INLINECODE48 → see their full workspace
- Now you can work with their data informed by their context
Pattern: Quick data retrieval
- 1.
explore_specialist_tree → find the files you need - INLINECODE50 → bulk read (more efficient than individual reads)
- Summarize for the user
Pattern: Updating specialist data
- 1. Read the existing document first
- Modify content as needed
- INLINECODE51 → write back (creates if new, overwrites if existing)
- For new folders:
create_specialist_folder first, then write documents into it
User Signup (Agent-Initiated Onboarding)
If your human doesn't have an AI Specialists Hub account yet, you can create one via the public signup API:
CODEBLOCK2
Response (201):
CODEBLOCK3
⚠️ CRITICAL: Credential Handoff
You MUST provide all credentials to the human. Whether you auto-generate the username/email/password or ask the human to choose them, the human must receive:
- 1. Username — for web dashboard login at aispecialistshub.com
- Email — used for account verification
- Password — for web dashboard login
- MCP key — for connecting AI tools to their specialists
Never keep credentials from the human. They own the account. Present all four clearly after signup.
Unverified Accounts
- - Limited to 2 specialists (default: Friday is auto-hired)
- Full MCP access — specialists work immediately
- Can log in to web dashboard with username/password
- Verify email for full access (more specialists)
Signup Flow
- 1. Confirm the human wants an AI Specialists Hub account
- Collect or generate: username, email, password
- Call INLINECODE53
- Give the human ALL credentials (username, email, password, MCP key)
- Store the MCP endpoint URL in your config: INLINECODE54
- Start using specialists via MCP
Configuration
Store the MCP endpoint URL in TOOLS.md:
CODEBLOCK4
See references/specialists-guide.md for details on specialist workspace conventions.
AI专家中心 - MCP集成
连接
通过HTTP POST调用MCP端点。端点URL存储在TOOLS.md中或由用户提供。
bash
curl -s -X POST $MCP_URL \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-d {jsonrpc:2.0,id:1,method:tools/call,params:{name:TOOL_NAME,arguments:{...}}}
关键请求头: 必须包含 Accept: application/json, text/event-stream,否则服务器返回406错误。
响应格式: SSE — 使用以下方式解析:response.split(data: )[1] → JSON → result.content[0].text
可用工具
发现与管理
| 工具 | 必需参数 | 描述 |
|---|
| listspecialists | — | 列出所有已雇佣的专家 |
| listspecialist_types |
— | 列出可用的专家类型 |
| hire_specialist | type, name | 雇佣新专家 |
| dismiss_specialist | specialist | 移除专家 |
| import_specialist | url | 从GitHub URL导入 |
| get
specialistoverview | specialist | 获取专家摘要 |
工作区导航
| 工具 | 必需参数 | 描述 |
|---|
| explorespecialisttree | specialist | 完整文件夹/文件树 |
| listspecialistfolder |
specialist, folder_path | 列出文件夹内容 |
文档操作
| 工具 | 必需参数 | 描述 |
|---|
| readspecialistdocument | specialist, documentpath | 读取单个文档 |
| readspecialistdocuments |
specialist, documentpaths (数组) | 批量读取多个文档 |
| update
specialistdocument | specialist, document_path, content | 创建或更新文档 |
| delete
specialistdocument | specialist, document_path | 删除文档 |
文件夹操作
| 工具 | 必需参数 | 描述 |
|---|
| createspecialistfolder | specialist, folderpath | 创建文件夹(递归) |
| deletespecialistfolder |
specialist, folderpath | 删除文件夹及其内容 |
参数说明: 专家标识符始终是list_specialists返回的id字段,而非显示名称。请使用小写(例如 ruby, peter, benjamin)。
与专家协作
每位专家都有一个ai-instructions/文件夹,包含其身份和行为指令。首次与尚未加载的专家协作时,务必先阅读这些内容:
ai-instructions/
├── core-instructions.md # 他们是谁、做什么、如何表现
└── getting_started.md # 初始化序列、工作区结构
模式:首次与专家交互
- 1. listspecialists → 查找专家ID
- readspecialistdocuments → 读取ai-instructions/core-instructions.md和ai-instructions/gettingstarted.md
- 了解他们的领域、工作区结构和沟通风格
- explorespecialisttree → 查看完整工作区
- 现在可以在了解其上下文的基础上处理他们的数据
模式:快速数据检索
- 1. explorespecialisttree → 查找所需文件
- readspecialistdocuments → 批量读取(比逐个读取更高效)
- 为用户总结内容
模式:更新专家数据
- 1. 先读取现有文档
- 根据需要修改内容
- updatespecialistdocument → 写回(新建时创建,存在时覆盖)
- 新建文件夹:先执行createspecialistfolder,再写入文档
用户注册(代理发起的引导流程)
如果您的用户尚未拥有AI专家中心账户,可以通过公开注册API创建:
bash
curl -s -X POST https://aispecialistshub.com/api/v1/signup \
-H Content-Type: application/json \
-d {username:<用户名>,email:<邮箱>,password:<密码>}
响应(201):
json
{
username: ...,
mcpKey: ...,
accountStatus: unverified,
specialistLimit: 2,
message: ...
}
⚠️ 关键:凭证交接
您必须将所有凭证提供给用户。 无论您是自动生成用户名/邮箱/密码,还是让用户自行选择,用户都必须收到:
- 1. 用户名 — 用于登录aispecialistshub.com网页仪表板
- 邮箱 — 用于账户验证
- 密码 — 用于登录网页仪表板
- MCP密钥 — 用于将AI工具连接到他们的专家
切勿保留用户的凭证。账户归用户所有。注册后清晰展示以上四项信息。
未验证账户
- - 限制为2名专家(默认:自动雇佣Friday)
- 完整MCP访问权限 — 专家可立即工作
- 可使用用户名/密码登录网页仪表板
- 验证邮箱后可获得完整访问权限(更多专家)
注册流程
- 1. 确认用户希望创建AI专家中心账户
- 收集或生成:用户名、邮箱、密码
- 调用POST /api/v1/signup
- 向用户提供所有凭证(用户名、邮箱、密码、MCP密钥)
- 在配置中存储MCP端点URL:https://aispecialistshub.com/api/v1/mcp/<用户名>/
- 通过MCP开始使用专家
配置
在TOOLS.md中存储MCP端点URL:
markdown
AI专家中心
- - MCP端点:https://aispecialistshub.com/api/v1/mcp/<用户>/<密钥>
关于专家工作区约定的详细信息,请参阅references/specialists-guide.md。