Token导航 LogoToken导航TokenDH.com
Supervisor Plus Agents logo
搜索检索未说明官方级别未说明来源级核验

Supervisor Plus Agents

MCP Server

企业级检索增强生成(RAG)聊天机器人的后端系统,使用监督代理路由用户查询到模块化MCP工具,采用测试驱动、工具导向的代理架构。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
检索增强生成PythonClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

risosach

提供方

risosach

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Supervisor Agent & MCP Tools – RAG System Backend

This repository contains the evolving backend for an enterprise-grade Retrieval-Augmented Generation (RAG) chatbot. It uses a Supervisor Agent to route user queries to modular MCP-based tools, and is developed using a test-driven, tool-oriented agent architecture.


🗺️ Project Overview

The system is implemented in phases as outlined in the planning documents. Key goals include:

  • Modular orchestration of AI tools (retrievers, DB, web) via MCP
  • LLM-agent routing logic with clear decision control
  • Secure tool access (e.g., via On-Behalf-Of token flow)
  • Full test coverage using TDD and clear stage separation

📁 Reference Documents

FileDescriptionWhen to Use
docs/project_background.mdHigh-level vision, RAG architecture, staged roadmap📌 Use to understand the mission
docs/supervisor_design.mdSupervisor class architecture, config handling, CLI goals📌 Use during Stage 1 or agent implementation
docs/supervisor_test_plan.mdFull test cases per user story📌 Use during test writing or debugging
docs/user_stories.md6 core user stories with acceptance criteria📌 Use when validating behavior coverage
docs/openai_mcp_protocol.mdIn-depth guide to MCP, OpenAI function calling, security model📌 Use when designing real tools (Stage 2) or Supervisor-tool interfaces
docs/Plan_for_Re-Authoring_GenAI_Components.mdLangChain + Claude Code integration plan📌 Use when restructuring agents, tools, or orchestrators
docs/Plan.mdOverall development integration plan📌 Use to understand overall development steps and context of current tasks
logs/phase*_*.mdClaude Code outputs + test summaries📌 Use for traceability and phase review

🧪 Development Flow

  1. Each stage is implemented using test-driven development.
  2. Stub tools are used early for fast testing; real MCP tools come later.
  3. Each phase’s results are logged in logs/.

📌 Status (As of October 24, 2025)

PhaseStatusDescription
Phase 1✅ CompleteConfiguration module (config.py) – 10 tests passing
Phase 2✅ CompleteStub tool module (stubs.py) – 5 tests passing
Phase 3✅ CompleteRouter logic (router.py) – 8 tests passing
Phase 4🟡 NextTool handlers (dispatch logic to stub tools) – 9 tests target
Phase 5⏳ PendingSupervisor agent (end-to-end query response logic)
Phase 6⏳ PendingIntegration tests for full workflows
Phase 7⏳ PendingCLI interface (query entrypoint, config flags)

Current Progress: 23/65 tests passing (35.4%)


🧠 Restarting Claude Code

If restarting the Claude Code terminal, use:

“Use the following reference files for this phase: - project_background.md, - openai_mcp_protocol.md, - supervisor_design.md, - supervisor_test_plan.md.”

🔐 Secure Tool Usage

For tools requiring authenticated API calls (e.g., SharePoint, Azure DevOps), follow the OBO (On-Behalf-Of) pattern as defined in docs/reference/Model_Context_Protocol_and_OpenAI_Chat_Completions_API.md.


📦 Structure (Stage 1)

supervisor/
  ├─ config.py
  ├─ router.py
  ├─ handlers.py
  ├─ agent.py
  └─ tools/
       ├─ stubs.py
tests/
  ├─ test_config.py
  ├─ test_router.py
docs/
  ├─ *.md
logs/
  ├─ phase*_*.md
examples/
  ├─ mcp_server_example/
  ├─ langgraph_agent_example/
  ├─ openai_chat_example/
  └─ mlflow_agent_model_example/

🧰 Real-World Examples Directory

A curated /examples directory provides working Python references that Claude Code and developers can use to understand real-world implementations of key technologies used in this project.

ExampleSourceFocusWhy It Matters
MCP Server ExampleFastMCPserver.py shows @mcp.tool decorator and mcp.run()Demonstrates how to build an MCP-compliant microservice for tools (e.g., Document Retriever)
LangGraph Agent ExampleLangGraph Examplegraph_app.py defines and wires nodesShows how to orchestrate multi-agent logic (used for Supervisor flow control)
OpenAI Chat ExampleOpenAI Quickstart Pythonapp.py uses openai.ChatCompletion.create()Demonstrates ChatCompletion schema compatible with Supervisor’s chat layer
MLflow Agent Model Examplepython_function.py wraps a Python class as a modelMirrors how we’ll expose agents as MLflow models in Databricks

🔍 Usage Guidelines

  • Use these examples as learning and grounding references for Claude when generating code.
  • Each folder contains a README.md summarizing key files and patterns to focus on.
  • These are not imported by the Supervisor — they exist to guide development and ensure architectural alignment.

LangChain + Supervisor Agent Integration

*(Existing LangChain, LangGraph, and Supervisor content continues unchanged below…)*

目录标签

目录标签

检索增强生成PythonClaude本地部署聊天机器人模块化工具代理架构测试驱动开发

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP