MCP Server
by plusplusoneplusplus
The MCP Server provides a flexible framework for AI-powered command execution and tool management. It allows users to define and execute commands and tools, with support for both synchronous and asynchronous execution.
Last updated: N/A
What is MCP Server?
The MCP Server is a framework that enables AI-powered command execution and tool management. It allows users to define prompts and tools using YAML configuration files and execute them, supporting both synchronous and asynchronous operations.
How to use MCP Server?
To use the MCP Server, configure prompts and tools in prompts.yaml
and tools.yaml
files. Customize configurations using .private
directory or PRIVATE_TOOL_ROOT
environment variable. Define script-based tools with type: script
. Run the server and execute commands using the defined tools and prompts.
Key features of MCP Server
Flexible YAML configuration for prompts and tools
Support for user-specific configurations via
.private
directory orPRIVATE_TOOL_ROOT
Script-based tool support for executing custom scripts
Asynchronous command execution with token-based tracking
Input schema validation for tools
Use cases of MCP Server
Automating build and deployment processes
Executing custom scripts with defined input parameters
Integrating AI-powered command execution into workflows
Managing and executing various tools with a unified interface
FAQ from MCP Server
How do I configure private tools?
How do I configure private tools?
Use the .private
directory in the server folder or set the PRIVATE_TOOL_ROOT
environment variable.
Where should I place script files for script-based tools?
Where should I place script files for script-based tools?
Place script files in the .private
directory.
How do I pass arguments to script-based tools?
How do I pass arguments to script-based tools?
Define the inputSchema
in the tools.yaml
file, and the server will pass arguments to the script in the format --arg_name value
.
How do I run tests for the MCP server?
How do I run tests for the MCP server?
Use the command python -m pytest
.
How does the server prioritize configuration files?
How does the server prioritize configuration files?
The server looks for configuration files in this priority order: 1. PRIVATE_TOOL_ROOT
directory (if set), 2. .private
directory in the server folder, 3. Default files in the server folder.