Sentinel-Core-Agent

Sentinel-Core-Agent

1

The Sentinel Core Agent is a project that provides tools for managing chat sessions between users, language models, and various utilities. It includes the management of MCP servers and facilitates AI-driven web searches, file operations, and more.

Sentinel Core Agent Summary

Client.py

The client.py file manages interactions between users, a language model (LLM), and tools, orchestrating chat sessions and handling server connections.

Key Components:

  • Configuration: Environment variables and server configurations
  • Server: Manages MCP server connections and tool execution
  • Tool: Formats tool information for the LLM
  • LLMClient: Manages communication with LLM
  • ChatSession: Manages user and LLM interactions

Server.py

The server.py file implements an MCP server with tools for file operations, web scraping, and AI-powered search using fastmcp.

Key Tools:

  • is_file_folder_present
  • cur_datetimetime
  • browser_ai_search
  • read_file
  • write_file
  • web_page_scrapper
  • get_all_vector_indexes
  • search_via_index

The server includes an async web crawler and runs a MCP server loop.