Skip to main content

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 llama3 via 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


Download files

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

Source Distribution

chris_assistant-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

chris_assistant-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for chris_assistant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 192eb1cd53d6e622030a161d0721b1bbb38ed919041c72dcc8fd88daeb913d7e
MD5 7f7f0f272eb6e59ba743f0a84cdd2ff7
BLAKE2b-256 71579fa2b53d3841e8dde22a4afd1a09fbf305071bb528ff67ec087358021dfb

See more details on using hashes here.

File details

Details for the file chris_assistant-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for chris_assistant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a291ae1718346c861876334762ccce9702a604e1284fa0950434690cd69ef72
MD5 5ec198ab9c32ce4bc20ec6b505a55b15
BLAKE2b-256 eb8e6cdd01102f5b0673b303dcdd75d9d2089e97a958834fd67232996dd2b858

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