This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Levi Neely d64e49e893 Fix MCP subprocess env: start from os.Environ(), append extras
The loop was calling append(os.Environ(), ...) on each iteration,
discarding all but the last extra env var. Start cmd.Env from
os.Environ() once, then append each configured key=value pair.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 00:51:32 +02:00
agent Track and display token usage per request 2026-04-01 00:31:03 +02:00
backend Track and display token usage per request 2026-04-01 00:31:03 +02:00
config Restore MCP server support alongside built-in execute_code 2026-04-01 00:34:09 +02:00
exec Add ollie/exec package: extract execute_code from anvillm-mcp 2026-03-31 22:30:19 +02:00
mcp Fix MCP subprocess env: start from os.Environ(), append extras 2026-04-01 00:51:32 +02:00
tools Restore MCP server support alongside built-in execute_code 2026-04-01 00:34:09 +02:00
.gitignore Initial commit 2026-02-21 20:47:38 +01:00
ARCHITECTURE.md Initial commit 2026-02-21 20:47:38 +01:00
LICENSE Add GNU General Public License v3 2026-02-21 22:21:21 +01:00
README.md Update usage section: clarify UI and tool dependencies 2026-02-21 20:55:47 +01:00
go.mod Add ollie/exec package: extract execute_code from anvillm-mcp 2026-03-31 22:30:19 +02:00
go.sum Add ollie/exec package: extract execute_code from anvillm-mcp 2026-03-31 22:30:19 +02:00
main.go Expand env vars in MCP config; surface config errors in chat pane 2026-04-01 00:45:43 +02:00
mcpconfig.json Restore MCP server support alongside built-in execute_code 2026-04-01 00:34:09 +02:00
mkfile Initial commit 2026-02-21 20:47:38 +01:00
ollie Restore MCP server support alongside built-in execute_code 2026-04-01 00:34:09 +02:00

README.md

Ollie

A Go CLI that connects Ollama LLMs to MCP (Model Context Protocol) servers for tool use. Built because I couldn't find what I wanted with existing tools.

Quick Start

Requirements:

Build:

go build

Run:

./ollie config.json [model]

Default model is qwen3:8b. Override with any Ollama model name.

Configuration

Create a JSON file defining your MCP servers:

{
  "mcpServers": {
    "filesystem": {
      "command": "mcp-server-filesystem",
      "args": ["/path/to/allowed/directory"],
      "env": {
        "DEBUG": "true"
      }
    },
    "disabled-example": {
      "command": "some-server",
      "disabled": true
    }
  }
}

Options:

  • command - MCP server executable (required)
  • args - Command arguments (optional)
  • env - Environment variables (optional)
  • disabled - Skip this server (optional)

MCP server commands must be in your PATH.

Usage

Chat history displays in a scrollable viewport. Type in the multi-line text area below, submit with Enter (Ctrl+J for new lines).

Tools depend on which MCP servers you configure. Example with filesystem server:

> What files are in the current directory?
[Calling tool from filesystem server]
Found: main.go, config/, mcp/, ollama/, tools/

Troubleshooting

No servers connected

  • Verify MCP server commands are in PATH
  • Check command names and arguments in config

Tools not working

  • Ensure servers support tools/list and tools/call
  • Check tool arguments match expected schema

Ollama errors

  • Start Ollama: ollama serve
  • Verify model exists: ollama list

License

GPLv3