What's New
MCP auto-execution in server mode (fixes #35)
When running apfel --serve --mcp <server>, the server now auto-executes MCP tool calls and returns the final text answer - matching CLI behavior. Client-provided tools are still returned as tool_calls per the OpenAI spec.
Arrow key navigation in chat mode (fixes #34)
Chat mode (apfel --chat) now uses libedit for line editing. Arrow keys, history recall (up/down), and inline editing all work.
Model name validation
The server now rejects unknown model names with a 400 error. Only apple-foundationmodel is accepted.
Improved tool call detection
Better parsing of tool call JSON in malformed code blocks (unclosed backticks, trailing text).
Test Coverage
- 122 unit tests
- 121 integration tests (22 new MCP server tests)
Install / Update
brew upgrade apfel
# or
brew install Arthur-Ficial/tap/apfel