Skip to main content

This repo contains code for a lightweight client to interact with GLPI and a MCP to consume it from any LLM

Requirements

  • Available glpi instance
  • valid user and API token
  • prettytable python library

Installation

pip3 install glpic

Using client

Store your creds in any env file such as glpic.env.sample and set data accordingly You can then use the following commands

  • List computers
glpic list computers
  • Get information on a specific computer
glpic info computer $computer
  • List reservations
glpic list reservations
  • Get information on a specific reservation
glpic info reservation $reservation
  • Update a given reservations
glpic update reservation $reservation -P end=20240601
  • Update all reservations
glpic update reservations

Using MCP

The server is started and configured differently depending on what transport you want to use

For STDIO:

In VSCode for example:

   "mcp": {
        "servers": {
            "glpi": {
                "command": "python3",
                "args": ["/path/to/glpic/src/glpic/mcp_server.py", "--stdio"],
                "env": {
                    "GLPI_URL": "https://server/apirest.php",
                    "GLPI_USER": "myuser",
                    "GLPI_TOKEN": "mytoken"
                }
            }
        }
    }

For Streamable HTTP:

Start the server in a terminal:

glpimcp

Configure the server in your client:

    "rhsupportcli": {
      "transport": "streamable-http",
      "url": "http://your_server:8000"
      "headers": {
        "GLPI_URL": "https://server/apirest.php",
        "GLPI_USER": "myuser",
        "GLPI_TOKEN": "mytoken"
      }
    }

Metadata

Release files for glpic 99.0.202509181154

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glpic 99.0.202509181154
File Size Uploaded Provenance Actions
glpic-99.0.202509181154.tar.gz 8.7 kB Without provenance Details for glpic-99.0.202509181154.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for glpic 99.0.202509181154
File Interpreter ABI Platform Actions
glpic-99.0.202509181154-py3-none-any.whl Python 3 none any Details for glpic-99.0.202509181154-py3-none-any.whl

Total release size: 17.4 kB

Release files / glpic-99.0.202509181154.tar.gz

Download URL glpic-99.0.202509181154.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e9ce34ee65cdd113f045c67692dc70d65a2d3c582ae98868f66fee6f11b2d70d
BLAKE2b-256 checksum
How to use checksums
7718e138e08b20cfa1835c2ff5f54f35c4ebe1c9cd8c629e1c6a0af21cda5117
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / glpic-99.0.202509181154-py3-none-any.whl

Download URL glpic-99.0.202509181154-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5025dfba9bf486e33ee45c6dc2d32d4c6b9ad385f5a88ded59ca0a5c62430efd
BLAKE2b-256 checksum
How to use checksums
7f3b8dc98106cfdc6e9a2a6118189fde8462d20ab1ffbd7d3dea136b80a90adb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for glpic 99.0.202509181154

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page