Mavis MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mavis MCP Serverspawn a worker agent to review the code in /src for SQL injection risks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mavis MCP Server
将 Mavis 作为 MCP Server 暴露给 Claude Code / Agent SDK / 任何 MCP 客户端调用。
快速开始
1. 添加到 Claude Code
# 方法一:直接配置(全局)
claude mcp add mavis --type stdio -- node /Users/cunning/.mavis/agents/mavis-mcp-server/src/index.js
# 方法二:手动配置项目
# 将以下内容添加到项目根目录的 .mcp.json 文件在项目 .mcp.json 中添加:
{
"mcpServers": {
"mavis": {
"type": "stdio",
"command": "node",
"args": ["/Users/cunning/.mavis/agents/mavis-mcp-server/src/index.js"]
}
}
}2. 用 Agent SDK 调用
import { query } from "@anthropic-ai/claude-agent-sdk";
for await (const message of query({
prompt: "用 mavis_spawn_worker 启动一个 coder agent,帮我审查 /path/to/project 的代码安全",
options: {
mcpServers: {
mavis: {
command: "node",
args: ["/Users/cunning/.mavis/agents/mavis-mcp-server/src/index.js"]
}
}
}
})) {
console.log(message);
}Related MCP server: SafeFlo
可用工具(22个)
Session 管理
Tool | 说明 |
| 列出所有会话 |
| 获取会话详情 |
| 获取会话消息历史 |
| 创建新会话(spawn agent) |
| 中止运行中的会话 |
| 轮换当前会话 |
| 查看会话的文件变更 |
通信
Tool | 说明 |
| 向会话发送消息/命令 |
| 列出所有可达会话 |
Team 编排
Tool | 说明 |
| 多 Agent 并行任务规划执行 |
Agent 管理
Tool | 说明 |
| 列出所有可用 Agent |
| 获取 Agent 详情 |
| 启动单次验证/审查 Agent |
Memory
Tool | 说明 |
| 追加记忆条目 |
| 搜索记忆 |
Cron 调度
Tool | 说明 |
| 创建定时任务 |
| 列出定时任务 |
| 删除定时任务 |
其他
Tool | 说明 |
| 技能管理 |
| Hook 管理 |
| 查看配置 |
| MCP 服务器管理 |
| 守护进程状态 |
| Token 使用统计 |
使用示例
在 Claude Code 中使用
你:我需要审查这个代码库的安全性,让 Mavis agent 来做
Claude Code:调用 mavis_team_plan,描述任务,Mavis 自动编排 coder + verifier agent 协作完成用 mavis_session_new 启动任务
{
"name": "mavis_session_new",
"arguments": {
"agent": "coder",
"prompt": "审查 /path/to/project/src 的 SQL 注入风险",
"title": "安全审查任务",
"workspace": "/path/to/project"
}
}本地开发
cd /Users/cunning/.mavis/agents/mavis-mcp-server
# 安装
npm install
# 测试 MCP server
node scripts/test-client.js
# 启动 server(stdio 模式)
node src/index.js架构说明
Claude Code / Agent SDK (MCP Client)
│
▼ stdio JSON-RPC
┌─────────────────────────┐
│ mavis-mcp-server │
│ (Node.js stdio transport)
│ │
│ 22 MCP tools │
│ │ │
│ ▼ spawn / IPC │
└────────┬────────────────┘
│
▼ exec mavis CLI
Mavis Daemon
(port 15321)
│
▼
Mavis Agents
(mavis, coder, verifier, general)文件结构
mavis-mcp-server/
├── package.json
├── src/
│ └── index.js # MCP Server 实现(22个工具)
└── scripts/
└── test-client.js # 测试客户端Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cunninglab/mavis-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server