Project Title
by krishnannarayanaswamy · Added 9d ago
37
Install
git clone https://github.com/krishnannarayanaswamy/api-as-mcpAbout
此示例在本地使用ollama运行IBM Granite模型。代码利用gradio暴露一个MCP(Model Context Protocol)服务器,并提供调用POST API以获取JSON响应的工具。需要Python 3.12或更高版本、ollama,以及在ollama上运行的IBM Granite模型,具体请参见https://www.ibm.com/granite/docs/run/granite-with-ollama/mac/。通过环境变量GRADIO_MCP_SERVER=True进行配置。
Tags
ai-mlmcp-serverlobehubdeveloper