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 Integration
A bridging framework that integrates the Knowledge Organization Infrastructure (KOI) with the Model Context Protocol (MCP), enabling autonomous agents to exchange rich personality traits and expose capabilities as standardized tools.
Quick Start
Prerequisites
Installation
Running the Demo
The quickest way to see KOI-MCP in action is to run the demo:
This provides a rich interactive console with detailed event logging and component status displays.
Alternatively, you can run a simplified demo using the main module:
This starts a coordinator node and two agent nodes with different personality traits. You can then visit:
- Coordinator Registry: http://localhost:9000/resources/list
- Helpful Agent Tools: http://localhost:8101/tools/list
- Creative Agent Tools: http://localhost:8102/tools/list
Running Components Individually
You can also run the components separately:
Architecture
The KOI-MCP integration follows a Coordinator-Adapter pattern:
- KOI Coordinator Node: Acts as a central hub for the KOI network, handling agent discovery and state synchronization
- MCP Adapter: Converts KOI personality bundles into MCP-compatible resources and tools
- Agent Nodes: Individual agents with personalities that broadcast their traits to the network
- MCP Registry Server: Exposes the adapter's registry as MCP-compatible endpoints
- MCP Agent Servers: Individual servers for each agent that expose their specific traits as endpoints
Agent Personality Model
Agents express their capabilities through a trait-based personality model:
Each trait can be:
- A simple value (string, number, boolean, list)
- A complex object with metadata (description, type, is_callable)
- A callable tool that can be invoked by LLM clients
Implementation Details
Agent Personality RID
The system extends KOI's Resource Identifier (RID) system with a dedicated AgentPersonality
type:
Personality Profile Schema
Agent personalities are structured using Pydantic models:
Knowledge Processing Pipeline
The system integrates with KOI's knowledge processing pipeline through specialized handlers:
MCP Endpoint Integration
The integration provides MCP-compatible REST endpoints:
Coordinator Registry Endpoints
GET /resources/list
: List all known agent resourcesGET /resources/read/{resource_id}
: Get details for a specific agentGET /tools/list
: List all available agent tools
Agent Server Endpoints
GET /resources/list
: List this agent's personality as a resourceGET /resources/read/agent:{name}
: Get this agent's personality detailsGET /tools/list
: List this agent's callable traits as toolsPOST /tools/call/{trait_name}
: Call a specific trait as a tool
Configuration
Coordinator Configuration
Agent Configuration
Advanced Usage
Updating Traits at Runtime
Agents can update their traits dynamically:
Custom Knowledge Handlers
You can register custom handlers for personality processing:
Development
Running Tests
Project Structure
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built on the KOI-Net library for distributed knowledge organization
- Compatible with the emerging Model Context Protocol (MCP) standard for LLM tool integration
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A bridging framework that integrates Knowledge Organization Infrastructure (KOI) with Model Context Protocol (MCP), enabling autonomous agents to exchange personality traits and expose capabilities as standardized tools.
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