mcp-server-demo

hannguyendd/mcp-server-demo

3.1

If you are the rightful owner of mcp-server-demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A simple demonstration of a Model Context Protocol (MCP) server implementation that provides tool functionality to upgrade applications via a shell script.

The MCP Server Demo is a project that implements a FastMCP server, designed to expose a custom tool for upgrading applications. It facilitates communication through stdio transport and can be seamlessly integrated with MCP-compatible clients. The server is built using Python and requires the uv package manager for dependency management. It supports command execution via subprocess and allows configuration through environment variables. The server is particularly useful for developers looking to automate application upgrades using a shell script, and it can be easily tested and inspected using tools like the MCP Inspector.

Features

  • MCP server with a custom tool to upgrade applications
  • Command execution via subprocess
  • Environment variable configuration
  • Stdio transport for client-server communication

Usages

usage with stdio

python main.py

usage with vscode

{
  "mcp": {
    "servers": {
      "commander": {
        "command": "python",
        "args": ["main.py"]
      }
    }
  }
}

usage with mcp inspector

npx @modelcontextprotocol/inspector \
  uv \
  --directory ${PWD} \
  run \
  main.py