A command-line interface for interacting with Foundation Models, featuring support for Model Context Protocol (MCP) servers and Claude Desktop integration.
git clone <repository-url>
cd FoundationModelCli
swift build -c release
The executable will be available at .build/release/fm.
# Single request
fm "Tell me a joke"
# Interactive mode
fm --interactive
# With custom system instructions
fm --system-instructions "You are a coding assistant" --interactive
# With custom temperature
fm --temperature 0.9 "Be creative and write a story"
--interactive / -i: Start interactive chat mode--system-instructions: Set custom system instructions--temperature: Control randomness (0.0-1.0, default: 0.7)--maximum-response-tokens: Limit response length--debug: Enable detailed logging--help: Show help informationquit, exit, bye, or q to exitFM CLI automatically loads MCP servers from your Claude Desktop configuration file located at:
~/Library/Application Support/Claude/claude_desktop_config.json
No additional configuration is required if you have Claude Desktop set up with MCP servers.
Sample for VSCode configuration file.
See LICENSE file for details.
fm --debug --interactive
For more help, run fm --help or enable debug logging to see detailed information about tool loading and execution.
No reviews yet. Be the first to rate this tool.
Sign in to leave a review.