ollama/cmd
ParthSareen 89f74a8b05 agents: add MCP server support and ENTRYPOINT command
MCP (Model Context Protocol) support:
- Add MCPRef type for agent MCP server references
- Parse MCP command in Agentfiles (MCP name command [args...])
- Load and manage MCP servers with mcpManager
- Implement agentic loop for multi-turn tool execution
- Add /mcp REPL commands (add, remove, disable, enable)
- Add 'ollama mcp' CLI commands for global config management
- Support both model-bundled and global (~/.ollama/mcp.json) MCPs
- Display MCPs in 'ollama show' output

ENTRYPOINT support:
- Add ENTRYPOINT command to Agentfiles for custom runtimes
- Allow agents without FROM when ENTRYPOINT is specified
- Execute entrypoint as subprocess with stdin/stdout connected
- Support $PROMPT placeholder for prompt insertion control
- Hide Model section in 'ollama show' for entrypoint-only agents
- Pass user prompt as argument to entrypoint command
2025-12-30 15:01:57 -05:00
..
bench cmd/bench: fix binary name in README (#13276) 2025-12-10 14:16:58 -08:00
runner Runner for Ollama engine 2025-02-13 17:09:26 -08:00
cmd.go agents: add MCP server support and ENTRYPOINT command 2025-12-30 15:01:57 -05:00
cmd_test.go add REQUIRES command to Modelfile (#13361) 2025-12-18 13:21:29 -08:00
interactive.go agents: add MCP server support and ENTRYPOINT command 2025-12-30 15:01:57 -05:00
interactive_test.go server: add webp image input support (#10653) 2025-05-12 20:41:42 -07:00
mcp.go agents: add MCP server support and ENTRYPOINT command 2025-12-30 15:01:57 -05:00
mcp_cmd.go agents: add MCP server support and ENTRYPOINT command 2025-12-30 15:01:57 -05:00
skill_cmd.go cmd: add skill CLI and REPL commands 2025-12-29 00:14:13 -05:00
skills.go skills: add registry reference check and working directory env var 2025-12-30 15:01:57 -05:00
start.go nolintlint 2024-06-04 11:13:30 -07:00
start_darwin.go mac: handle "keep" named apps (#11031) 2025-06-09 16:29:57 -07:00
start_default.go lint 2024-08-01 17:06:06 -07:00
start_windows.go spawn desktop quickly (#11011) 2025-06-08 09:34:52 -07:00
warn_thinking_test.go add thinking support to the api and cli (#10584) 2025-05-28 19:38:52 -07:00