GLPI client
Project description
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"
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file glpic-99.0.202509170922.tar.gz.
File metadata
- Download URL: glpic-99.0.202509170922.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d797ae76aed9e949dbadc9f8515bdde52a7de25df79ab9ff35059ea3139a0f1d
|
|
| MD5 |
1518b235a715dc8d68b1dbe7553489ad
|
|
| BLAKE2b-256 |
8ec7deb261ad07174e4c124b7d93e44701e1790fb3d69f8a7e009df3b46f40f1
|
File details
Details for the file glpic-99.0.202509170922-py3-none-any.whl.
File metadata
- Download URL: glpic-99.0.202509170922-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c082dd87bd825c9198e751b7f22a4e0757b92c3698925de3c1b8b7e63451fb0
|
|
| MD5 |
9354ce714b98737e2c110e47df85af53
|
|
| BLAKE2b-256 |
88b226d9a9c7c27828b5287d00afe1fd63cf730a7ed21eb3da39eef07183c798
|