ollama/api
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
..
examples ci: restore previous linter rules (#13322) 2025-12-03 18:55:02 -08:00
client.go docs: fix link to modelfile.mdx (#13220) 2025-12-11 16:14:45 -08:00
client_test.go api/client: handle non-json streaming errors (#13007) 2025-12-01 15:10:16 -08:00
types.go agents: add MCP server support and ENTRYPOINT command 2025-12-30 15:01:57 -05:00
types_test.go types: add nested property support for tool definitions (#13508) 2025-12-17 11:54:09 -08:00
types_typescript_test.go tools: support anyOf types 2025-08-05 16:46:24 -07:00