An AI-powered CLI for exploring the ChRIS medical image platform using MCP and Llama3
Project description
🧠 ChRIS-Assistant
An AI-powered CLI assistant for exploring the ChRIS medical image platform using natural language.
This tool connects to a running ChRIS MCP Server, dynamically fetches its tools, and uses Ollama with Llama3 to route questions and summarize responses.
🚀 Features
- 🔌 Connects to any MCP-compatible ChRIS server over SSE
- 🤖 Uses
llama3via Ollama to understand natural questions - 🧠 Automatically selects the right ChRIS API tool
- 🧾 Summarizes JSON output into plain English
- 🧰 Built with llama-index + mcp
📦 Installation
1. Clone and install locally (dev mode)
git clone https://github.com/YOUR_GITHUB/chris-assistant.git
cd chris-assistant
pip install -e .
2. Or install via PyPI (once published)
pip install chris-assistant
💬 Usage
Make sure you have Ollama running and the ChRIS MCP server accessible:
OLLAMA_HOST=localhost:11434 \
MCP_URL=http://localhost:3001/sse \
LLM_MODEL=llama3.2 \
chris-assistant
💡 Example Questions
What's at the root of the ChRIS API?
List available plugins
Show me plugin instance 2
⚙️ Environment Variables
| Variable | Description | Default |
|---|---|---|
MCP_URL |
MCP server SSE endpoint | http://localhost:3001/sse |
OLLAMA_HOST |
Ollama runtime (local model endpoint) | localhost:11434 |
LLM_MODEL |
LLM model name (e.g. llama3.2) |
llama3.2 |
📚 Project Layout
chris_assistant/
├── chris_assistant/
│ └── cli.py # Main CLI logic
├── pyproject.toml # Packaging config
├── README.md
📜 License
MIT © [Your Name]
---
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 chris_assistant-0.1.0.tar.gz.
File metadata
- Download URL: chris_assistant-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
192eb1cd53d6e622030a161d0721b1bbb38ed919041c72dcc8fd88daeb913d7e
|
|
| MD5 |
7f7f0f272eb6e59ba743f0a84cdd2ff7
|
|
| BLAKE2b-256 |
71579fa2b53d3841e8dde22a4afd1a09fbf305071bb528ff67ec087358021dfb
|
File details
Details for the file chris_assistant-0.1.0-py3-none-any.whl.
File metadata
- Download URL: chris_assistant-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a291ae1718346c861876334762ccce9702a604e1284fa0950434690cd69ef72
|
|
| MD5 |
5ec198ab9c32ce4bc20ec6b505a55b15
|
|
| BLAKE2b-256 |
eb8e6cdd01102f5b0673b303dcdd75d9d2089e97a958834fd67232996dd2b858
|