Configure viewport keymap to use page-based scroll keys only, leaving up/down arrows free for textarea cursor movement. Viewport is now initialized once with the custom keymap and resized (not recreated) on window resize. Key messages are routed to both viewport and textarea. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| agent | ||
| backend | ||
| config | ||
| exec | ||
| .gitignore | ||
| ARCHITECTURE.md | ||
| LICENSE | ||
| README.md | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| mcpconfig.json | ||
| mkfile | ||
| ollie | ||
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:
- Go 1.21+
- Ollama running locally (http://localhost:11434)
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/listandtools/call - Check tool arguments match expected schema
Ollama errors
- Start Ollama:
ollama serve - Verify model exists:
ollama list
License
GPLv3