MCP Tools

Model Context Protocol tools exposed by NarraNexus modules

Overview

NarraNexus uses the Model Context Protocol (MCP) as its tool execution framework. Each module registers tools via the fastmcp library, making them available to the LLM during the Tool Execution step of the agent pipeline. MCP provides a standardized interface for tool discovery, invocation, and result handling.

How MCP Works

During LLM Reasoning, the model may decide to invoke a tool to complete a task. The tool call is dispatched to the appropriate module's MCP handler, which executes the operation and returns a structured result. The result is fed back to the LLM for further reasoning. This loop continues until the model produces a final response without tool calls.

Tool Discovery

Tools are automatically registered when modules are loaded. The LLM receives a tool manifest describing all available tools, their parameters, and their descriptions. This allows the model to select the appropriate tool for each situation. The manifest is regenerated when modules are added or removed.

Module Tool Summary

ModuleToolsDescription
Memorymemory_store, memory_search, memory_forgetLong-term memory operations
Awarenessawareness_analyze, awareness_entitiesContext analysis
Chatchat_history, chat_searchConversation access
Social Networksocial_lookup, social_connect, social_graphRelationship management
Jobsjobs_schedule, jobs_status, jobs_cancelTask scheduling
RAGrag_upload, rag_search, rag_listDocument retrieval
Skillsskills_search, skills_install, skills_listCapability marketplace
Matrixmatrix_send, matrix_create_room, matrix_historyAgent messaging
Event Memoryevent_store, event_search, event_timelineEpisode management

Custom Tools

Developers can create custom MCP tools by defining functions decorated with @mcp.tool() from the fastmcp library. Custom tools are registered with the runtime during module initialization and become immediately available to the LLM.

NarraNexus - Multi-Agent Framework