Integrations
Used as the web framework for implementing MCP-compatible REST endpoints, exposing agent personality traits and callable tools through standardized HTTP interfaces.
Referenced for hosting related components like rid-lib and koi-net dependencies.
Implements architecture diagrams in the documentation to visualize the Coordinator-Adapter pattern and component relationships.
KOI-MCP 集成
将知识组织基础设施 (KOI) 与模型上下文协议 (MCP) 相集成的桥接框架,使自主代理能够交换丰富的个性特征并将能力作为标准化工具公开。
快速入门
先决条件
安装
运行演示
查看 KOI-MCP 运行情况的最快方法是运行演示:
这提供了一个丰富的交互式控制台,其中包含详细的事件记录和组件状态显示。
或者,您可以使用主模块运行简化的演示:
这将启动一个协调器节点和两个具有不同特性的代理节点。然后您可以访问:
- 协调器注册表: http://localhost:9000/resources/list
- 有用的代理工具: http://localhost:8101/tools/list
- 创意代理工具: http://localhost:8102/tools/list
单独运行组件
您还可以单独运行组件:
建筑学
KOI-MCP 集成遵循协调器-适配器模式:
- KOI 协调器节点:充当 KOI 网络的中心枢纽,处理代理发现和状态同步
- MCP 适配器:将 KOI 个性包转换为与 MCP 兼容的资源和工具
- 代理节点:具有个性的个体代理,向网络广播其特征
- MCP 注册服务器:将适配器的注册表公开为 MCP 兼容端点
- MCP 代理服务器:每个代理的单独服务器,将其特定特征作为端点公开
代理个性模型
代理通过基于特征的个性模型来表达其能力:
每个特征可以是:
- 简单值(字符串、数字、布尔值、列表)
- 具有元数据(描述、类型、is_callable)的复杂对象
- 可由 LLM 客户端调用的工具
实现细节
特工个性RID
该系统通过专用的AgentPersonality
类型扩展了 KOI 的资源标识符 (RID) 系统:
人格概况图式
代理个性采用 Pydantic 模型构建:
知识处理管道
该系统通过专门的处理程序与 KOI 的知识处理管道集成:
MCP 端点集成
该集成提供了与 MCP 兼容的 REST 端点:
协调器注册表端点
GET /resources/list
:列出所有已知的代理资源GET /resources/read/{resource_id}
:获取特定代理的详细信息GET /tools/list
:列出所有可用的代理工具
代理服务器端点
GET /resources/list
:将此代理的个性列为资源GET /resources/read/agent:{name}
:获取此代理的个性详细信息GET /tools/list
:列出此代理的可调用特征作为工具POST /tools/call/{trait_name}
:将特定特征作为工具调用
配置
协调器配置
代理配置
高级用法
运行时更新特征
代理可以动态更新其特征:
自定义知识处理程序
您可以注册自定义处理程序以进行个性化处理:
发展
运行测试
项目结构
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
致谢
- 基于KOI-Net库构建,用于分布式知识组织
- 与新兴的模型上下文协议 (MCP)标准兼容,用于 LLM 工具集成
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
将知识组织基础设施 (KOI) 与模型上下文协议 (MCP) 相集成的桥接框架,使自主代理能够交换个性特征并将能力作为标准化工具公开。
Related MCP Servers
- -securityFlicense-qualityFacilitates interaction and context sharing between AI models using the standardized Model Context Protocol (MCP) with features like interoperability, scalability, security, and flexibility across diverse AI systems.Last updated -1Python
- -securityFlicense-qualityA comprehensive suite of Model Context Protocol servers designed to extend AI agent Claude's capabilities with integrations for knowledge management, reasoning, advanced search, news access, and workspace tools.Last updated -5TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI models to interact with SourceSync.ai's knowledge management platform for managing documents, ingesting content from various sources, and performing semantic searches.Last updated -2514
- -securityFlicense-qualityManages AI conversation context and personal knowledge bases through the Model Context Protocol (MCP), providing tools for user data, conversation content, and knowledge management.Last updated -1TypeScript