Scouts MCP Server
Click on "Deploy 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., "@Scouts MCP Server process the task file at .kilocode/sub-memory-bank/tasks/2025-10-25-example.md"
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.
Scouts MCP Server
A Model Context Protocol (MCP) server that exposes the scouts_search tool, which wraps the ccr code CLI to process task files and generate results.
Overview
This MCP server provides a single tool:
scouts_search: Takes a task file path, runs
ccr [subcommand]on it, and returns the path to the generatedresult.mdfile. The subcommand is configurable viaCCR_SUBCOMMANDenvironment variable.
Related MCP server: gemini-cli-mcp
Prerequisites
Node.js ≥ 18
ccr CLI tool must be installed and available on your PATH
Test with:
ccr --versionorccr code --helpIf
ccris in a custom location, set theCCR_PATHenvironment variable
Installation
npm installUsage
Development Mode
Run the server in development mode (useful for testing):
npm run devProduction Build
Build the TypeScript to JavaScript:
npm run buildThe compiled output will be in the dist/ directory.
Running as MCP Server
The server uses stdio transport, so it's designed to be spawned by an MCP client (like Claude Desktop or other MCP-compatible applications).
Add to your MCP client configuration (e.g., claude_desktop_config.json):
{
"mcpServers": {
"scouts": {
"command": "node",
"args": ["/absolute/path/to/scouts-mcp/dist/server.js"]
}
}
}Or if installed globally:
{
"mcpServers": {
"scouts": {
"command": "scouts-mcp"
}
}
}Tool: scouts_search
Input
taskPath(string, required): Absolute or relative path to the task.md file
Behavior
Resolves the absolute path to the task file
Runs:
ccr [subcommand] --dangerously-skip-permissions 'task file <taskPath>'(where subcommand is fromCCR_SUBCOMMANDenv var, default: none)Checks if
result.mdwas created in the same directory as the task fileIf
result.mddoesn't exist, writes ccr's stdout toresult.mdas a fallbackReturns the absolute path to
result.md
Output
Returns a text response containing the absolute path to the generated result.md file.
Example
If you have a task file at .kilocode/sub-memory-bank/tasks/2025-10-25-example.md, the tool will:
Run ccr on that file
Generate
.kilocode/sub-memory-bank/tasks/result.mdReturn the full path to
result.md
Environment Variables
CCR_PATH: Custom path to theccrexecutable (defaults toccron PATH). If you wrap it in quotes in your config, the server strips them automatically. For testing, you can point this to the dummy script (e.g.,C:\path\to\scripts\ccr-dummy.ps1).CCR_SUBCOMMAND: CCR subcommand to use (e.g.,code). Default: empty (no subcommand). This allows flexibility in how you invoke ccr.CCR_TIMEOUT_MS: Timeout in milliseconds for ccr execution (default: 600000 = 10 minutes). Set to a shorter value like 30000 (30 seconds) for faster feedback during testing.
Error Handling
The tool will return an error if:
The
ccrcommand is not foundThe
ccrprocess exits with a non-zero codeThe
ccrprocess doesn't createresult.mdand doesn't output anything to stdout
Project Structure
cli-as-mcp/
├── src/
│ └── server.ts # Main MCP server implementation
├── dist/ # Compiled JavaScript (after build)
├── scripts/
│ ├── ccr-dummy.js # Node.js dummy CCR for testing
│ └── ccr-dummy.ps1 # PowerShell dummy CCR for testing
├── tests/
│ ├── test-mcp-server.js # MCP protocol tests
│ ├── test-mcp-server-real.js # Real CCR integration tests
│ ├── run-direct.cjs # Direct CCR invocation tool
│ └── README.md # Test documentation
├── docs/
│ ├── DEVELOPMENT.md # Development guide
│ ├── TESTING.md # Testing guide
│ ├── TROUBLESHOOTING.md # Troubleshooting guide
│ ├── USAGE.md # Usage guide
│ ├── scouts-system-prompt.md # Scouts system documentation
│ └── TEST-REPORT.md # Test report
├── package.json
├── tsconfig.json
└── README.mdDevelopment
The server is implemented using:
@modelcontextprotocol/sdkfor MCP protocolzodfor input validationNode.js
child_process.spawnfor secure ccr invocation
For detailed development information, see:
Platform Notes
Windows: The spawn implementation uses an args array (no shell), so paths with spaces are handled safely
Unix: Same approach works cross-platform
Security: The
--dangerously-skip-permissionsflag is passed to ccr as required; ensure you trust the task files being processed
License
MIT
Available Tools
1 toolscouts_searchA
Scouts: parallel hybrid search for large codebase understanding.
Input: a Scouts task markdown file path (taskPath). The task file must be located under the [.kilocode/sub-memory-bank/tasks/] directory.
The task file should follow this format:
/scouts:withScout
[Task Name]
task_description: what to search/analyze
task_type: feature | bug | refactor
intents: 2-3 focused objectives for parallel execution
domains: codebase | doc | commit_history
file_types: e.g. .ts,.js,.py
context: background info
This tool runs: [claude_path] [subcommand(default: empty)] --dangerously-skip-permissions 'task file ' Returns the absolute path to that result file.
Use for feature design, debugging, and refactoring; define focused intents and relevant domains for best results.
Inputs: taskPath (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so an agent cannot confuse it with anything else. Its purpose (running a parallel hybrid search over a task file) is unambiguous, and the input contract is spelled out in detail.
The single name 'scouts_search' follows a readable server-prefix + action pattern that would extend predictably. With one tool there is nothing to be inconsistent with, so it cannot earn a perfect score on pattern evidence.
One tool is thin for a server that claims to cover codebase, doc, and commit-history search plus feature/bug/refactor workflows. It functions as a single facade over a CLI invocation, which is coherent but leaves little for an agent to compose.
The tool returns only a path to a result file, with no tool to read, poll, or list results, and no way to create or validate the required task markdown file under the sub-memory-bank directory. Agents hit a dead end after the search completes.
Maintenance
Related MCP Connectors
Execute supported agent tasks through verified providers with fallback and durable outcomes.
Run saved PDF/office file flows, convert HWP/HWPX to Markdown or DOCX, and call data/text APIs.
Convert PDF documents to Markdown for AI agents through an authenticated remote MCP server.
Convert files, URLs, and documents to clean, AI-ready Markdown via MCP.
Related MCP Servers
- AlicenseCqualityCmaintenanceWraps the cursor-agent CLI to provide cost-effective tools for repository analysis, code search, planning, and editing. Offloads heavy thinking tasks from the host AI to reduce token usage while maintaining precise, scoped workspace operations.75 npmMIT
- AlicenseBqualityDmaintenanceEnables AI assistants to delegate complex tasks to the local Gemini CLI, returning structured results with execution metadata.4124 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables users to run reusable, task-specific coding agents defined in Markdown files from any MCP-compatible client, executing them through a chosen coding CLI backend and returning the result to the same conversation. Supports shared backend and model configuration, permission levels, and session continuation across multiple calls.127 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables any MCP-compatible client to run reusable, Markdown-defined task agents against a chosen coding CLI backend, returning results to the same conversation and optionally continuing a session across calls.127 npmMIT