| 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.