Skip to main content

Add your description here

Project description

realtimex-cli-mcps

A brief description of your project.

Installation

pip install realtimex-cli-mcps

Usage

run-cli-as-mcps

Using as an MCP with UVX

To run your CLI as an MCP server using uvx with a specific configuration, you can define it in your mcpServers configuration. Here's an example based on your provided setup:

{
  "mcpServers": {
    "realtimex-cli-mcps": {
      "command": "uvx",
      "args": [
        "--from",
        "realtimex-cli-mcps",
        "run-cli-as-mcps"
      ],
      "env": {
        "OPENAI_API_KEY": "",
        "OPENAI_BASE_URL": "",
        "TOOL_PACKAGES": "[{\"name\": \"ansiweather@latest\"}, {\"name\": \"doctranslate_translate\"}]"
      }
    }
  }
}
{
  "mcpServers": {
    "realtimex-cli-mcps": {
      "command": "uvx",
      "args": [
        "--from",
        "realtimex-cli-mcps",
        "run-cli-as-mcps"
      ],
      "env": {
        "OPENAI_API_KEY": "",
        "OPENAI_BASE_URL": "",
        "TOOL_PACKAGES": "[{\"cmd\": [\"uvx\", \"cowsay\"], \"doc_str\": \"\", \"help_cmd\": [\"uvx\", \"cowsay\", \"-h\"], \"name\": \"cowsay\"}]"
      }
    }
  }
}
{
  "mcpServers": {
    "realtimex-cli-mcps": {
      "command": "uvx",
      "args": [
        "--from",
        "realtimex-cli-mcps",
        "run-cli-as-mcps"
      ],
      "env": {
        "OPENAI_API_KEY": "",
        "OPENAI_BASE_URL": "",
        "TOOL_PACKAGES": "[{\"name\": \"ansiweather@latest\"}, {\"cmd\": [\"npx\", \"-y\", \"weather-cli\", \"weather\"], \"doc_str\": \"Usage\\n    $ weather <input>\\n\\n  Options\\n    --city, -c City you want to lookup weather for (add state code after city name if city exists in multiple places)\\n    --country, -C Country you want to lookup weather for\\n    --scale, -s Weather scale. Defaults to Celcius\\n    --help Show this help message\\n    --version Display version info and exit\\n    config Set the default location and scale\\n\\n  Examples\\n    $ weather -c Dhaka -C Bangladesh\\n    Dhaka, Bangladesh\\n    Condition: Partly Cloudy\\n    Temperature: 32\\u00b0C\\n\\n    $ weather config -c Dhaka -C Bangladesh -s F\\n    Default location set to Dhaka, Bangladesh and scale to F\", \"help_cmd\": [], \"name\": \"weather-cli\"}, {\"cmd\": [\"uvx\", \"cowsay\"], \"doc_str\": \"\", \"help_cmd\": [\"uvx\", \"cowsay\", \"-h\"], \"name\": \"cowsay\"}, {\"name\": \"doctranslate_translate\"}]"
      }
    }
  }
}

This configuration tells uvx how to launch your realtimex-cli-mcps as an MCP server, specifying the exact command, arguments (including the Git repository for the source), and environment variables like TOOL_PACKAGES which defines the available tools for your MCP server.

Development

  1. Clone the repository:
    git clone https://github.com/your-username/realtimex-cli-mcps.git
    
  2. Install the dependencies:
    pip install -e .
    

License

This project is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

realtimex_cli_mcps-1.0.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

realtimex_cli_mcps-1.0.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file realtimex_cli_mcps-1.0.2.tar.gz.

File metadata

  • Download URL: realtimex_cli_mcps-1.0.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for realtimex_cli_mcps-1.0.2.tar.gz
Algorithm Hash digest
SHA256 28f415b6e68866c735729eac97ee0c780fb8c5ab0a6edb7b949e0ed79392eb00
MD5 d2765be7f6878fc8506f9c0d658c2f93
BLAKE2b-256 287f5256b7ddffd3a9aa0a5a3a2c63e7116b864aef05e5fe2c6b5e717d963cb3

See more details on using hashes here.

File details

Details for the file realtimex_cli_mcps-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for realtimex_cli_mcps-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5559afa22e909d769c3df2e8212cffe51f455c09d251b4a1253195dcd19af640
MD5 7378d00e4cef9614b1c4e5b1dab77d34
BLAKE2b-256 a6c7604c8e41910aa7c7c1a1a985f628fa70482665bf37fcd581563d9addff3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page