| name | ms-agent |
| description | Access ms-agent's advanced AI capabilities via MCP tools: deep research with async submit/check/get pattern, web search (arxiv/exa/serpapi), LSP code validation (TypeScript/Python/Java), concurrent-safe file editing, and agent delegation for complex multi-step tasks. Use when the user asks to research a topic, search the web, validate code, edit files precisely, or delegate a complex task to a specialized agent. Requires ms-agent (pip install ms-agent). |
| metadata | {"nanobot":{"emoji":"🤖","requires":{"bins":["python3"],"env":[]}}} |
ms-agent Skills
This skill connects you to the ms-agent Capability Gateway — a unified
interface to ms-agent's projects, components, and atomic tools, exposed as
MCP tools.
Setup
Verify ms-agent is installed:
python scripts/check_ms_agent.py
The MCP server must be configured in your agent's config. See below for
nanobot-specific setup.
nanobot config.json
{
"tools": {
"mcpServers": {
"ms-agent": {
"command": "python3",
"args": ["-m", "ms_agent.capabilities.mcp_server"],
"env": {"MS_AGENT_OUTPUT_DIR": "/path/to/workspace"},
"toolTimeout": 120,
"enabledTools": ["*"]
}
}
}
}
Once configured, all 14 capabilities below are available as MCP tools
(prefixed mcp_ms-agent_<tool_name> in nanobot).
Capability Index
Research & Search
Agent Delegation
The tools parameter for agent delegation currently supports the basic tool
components web_search, file_system, and todo_list (filesystem is kept
as a backward-compatible alias).
Code Validation
File Editing
Quick Decision Guide
User wants to...
│
├── Research a topic in depth (20-60 min)
│ └── submit_research_task → check_research_progress → get_research_report
│
├── Search the web for quick info
│ └── web_search(query="...", engine_type="arxiv|exa|serpapi")
│
├── Delegate a complex multi-step task to an AI agent
│ ├── Short task (< 3 min) → delegate_task(query="...")
│ └── Long task → submit_agent_task → check_agent_task → get_agent_result
│
├── Validate code for errors
│ ├── Full project → lsp_check_directory(directory="src/", language="typescript")
│ └── Single file → lsp_update_and_check(file_path="...", content="...", language="...")
│
└── Edit a file precisely
├── Know exact text → replace_file_contents (concurrent-safe)
└── Know line numbers → replace_file_lines
Async Pattern
Several capabilities (deep research, agent delegation) support an async
submit/check/get pattern. This does NOT block the agent — continue handling
other messages while the task runs in the background.
1. submit_*_task(...) → returns task_id immediately
2. check_*_task(task_id) → poll status (repeat every few minutes)
3. get_*_result/report(task_id) → retrieve final result when completed
4. cancel_*_task(task_id) → cancel if no longer needed
Read the reference files for detailed SOP workflows for each capability.