
shane-kercheval/mcp-this
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
mcp-this lets you turn any command-line tool into an MCP tool and create structured prompt templates that any MCP Client (e.g. Claude Desktop) can use. er for any command
개요
An MCP Server that dynamically exposes CLI/bash commands as tools and prompt templates through YAML configuration files. mcp-this lets you turn any command-line tool into an MCP tool and create structured prompt templates that any MCP Client (e.g. Claude Desktop) can use. Instead of writing code, you simply define commands, prompts, and their parameters in YAML files, and the MCP Server makes them available to MCP Clients like Claude Desktop. Transform CLI commands into MCP tools and create reusable prompt templates using simple YAML configuration. Define (CLI commands) and (AI templates) in YAML: That's it! Claude can now: - (get-current-time, system-info) - (code-reviewer with guided arguments) Enhance your my-tools.yaml with structured prompt templates: 1. Click the + icon in the message input 2. Select "Add from mcp-this-custom" 3. Choose your prompt (e.g., "summarize-webpage") 4.
README
원문 README의 일부입니다. 원문 보기.
mcp-this
An MCP Server that dynamically exposes CLI/bash commands as tools and prompt templates through YAML configuration files.
mcp-this lets you turn any command-line tool into an MCP tool and create structured prompt templates that any MCP Client (e.g. Claude Desktop) can use. Instead of writing code, you simply define commands, prompts, and their parameters in YAML files, and the MCP Server makes them available to MCP Clients like Claude Desktop.
Core Value: Transform CLI commands into MCP tools and create reusable prompt templates using simple YAML configuration.
How It Works
Define tools (CLI commands) and prompts (AI templates) in YAML:
tools:
get-current-time:
description: |
Display the current date and time in various formats.
Examples:
- get_current_time(format="iso") → 2025-05-18T17:17:39Z
- get_current_time(format="readable") → Friday, May 18, 2025 5:17 PM
execution:
command: >-
if [ ">" = "iso" ]; then
date -u +"%Y-%m-%dT%H:%M:%SZ";
elif [ ">" = "readable" ]; then
date "+%A, %B %d, %Y %I:%M %p";
else
echo "ISO: $(date -u +"%Y-%m-%dT%H:%M:%SZ")";
echo "Readable: $(date "+%A, %B %d, %Y %I:%M %p")";
fi
parameters:
format:
description: "Time format: iso, readable, or empty for both"
required: false
system-info:
description: Get basic system information
execution:
command: uname -a && echo "CPU: $(nproc) cores"
parameters: {}
prompts:
code-reviewer:
description: Perform a thorough code review with best practices focus
template: |
Please review the following code with a focus on:
- Code quality and best practices
- Security vulnerabilities
- Performance considerations
{{#if focus_area}}- Special attention to: {{focus_area}}{{/if}}
Code to review:
{{code}}
{{#if context}}Additional context: {{context}}{{/if}}
arguments:
code:
description: Code to review
required: true
focus_area:
description: Specific area to focus on (e.g., security, performance)
required: false
context:
description: Additional context about the code
required: false
Use in Claude Desktop:
{
"mcpServers": {
"mcp-this-custom": {
"command": "uvx",
"args": ["mcp-this", "--config-path", "/path/to/your-tools.yaml"]
}
}
}
That’s it! Claude can now:
- Execute your custom CLI tools (get-current-time, system-info)
- Use your structured prompt templates (code-reviewer with guided arguments)
Quick Start
1. Install uvx
# Install uv (includes uvx)
curl -LsSf https://astral.sh/uv/install.sh | sh
2. Create Your First Tool
Create my-tools.yaml:
tools:
web-scraper:
설치
uvx mcp-this --config-path /path/to/your-tools.yaml설정
{
"mcpServers": {
"mcp-this-custom": {
"command": "uvx",
"args": ["mcp-this", "--config-path", "/path/to/your-tools.yaml"]
}
}
}