akrzos/jetlag-mcp
3.1
If you are the rightful owner of jetlag-mcp 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.
Jetlag-MCP is a Model Context Protocol Server designed to manage and optimize the context for language models, enhancing their performance and adaptability.
jetlag-mcp
A Model Context Protocol Server for jetlag Jetlag MCP Server
This directory contains a Model Context Protocol (MCP) server that exposes helpers for the jetlag project:
- List and run Ansible playbooks in
jetlag/ansible - List roles in
jetlag/ansible/roles - List and read docs under
jetlag/docs - Read arbitrary text files inside the
jetlagrepository
Quick start
- Bootstrap (creates venv and installs deps):
./bootstrap.sh
- Run the server over stdio (typical for local MCP clients):
python server.py
Client configuration
Point your MCP client to run this server via stdio. Example client config snippet:
{
"mcpServers": {
"jetlag-mcp": {
"command": "python",
"args": [
"/absolute/path/to/your/checkout/jetlag-mcp/server.py"
],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}
Tools
list_playbooks()→ Returns objects withnameandpathunderjetlag/ansible.list_roles()→ Returns array of role directory names.list_docs()→ Returns markdown file paths underjetlag/docs.read_text_file(relative_path)→ Reads a UTF-8 text file withinjetlag.run_playbook(playbook_name, inventory_relpath?, limit?, tags?, extra_vars_json?, check?, timeout_seconds?)→ Executesansible-playbookfrom thejetlagrepo root, honoringansible.cfg.create_all_yml_vars_file(lab, lab_cloud, cluster_type, ocp_build, ocp_version, public_vlan?, sno_use_lab_dhcp?, ssh_private_key_file?, ssh_public_key_file?, sno_install_disk?, control_plane_install_disk?, worker_install_disk?, pull_secret_lookup?, extra_vars_json?)→ Creates/overwritesansible/vars/all.ymlwith provided values (supports SNO and MNO install disk settings). Pull secret is set using a Jinja file lookup path (default../pull_secret.txt).
Notes
- The server assumes the
jetlagrepository is a sibling of this directory. - Paths outside
jetlagare rejected for safety. - Ensure Ansible is installed and available in
PATHto run playbooks.