Token导航 LogoToken导航TokenDH.com
Strands MCP Based Learning Support Agent logo
AI代理stdio官方级别未说明来源级核验

Strands MCP Based Learning Support Agent

MCP Server

一个智能教育助手,使用Strands框架和模型上下文协议(MCP)将问题路由到数学、科学和网络搜索查询的专门代理。

工具数

3

提示词数

0

GitHub Stars

0

资源数

0
PythonAI代理工作流自动化

安装说明

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

作者 / 组织

shan-mani

提供方

shan-mani

最后核验

2026/5/17 20:20

快速接入

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

命令预览

pip install -r requirements.txt

详细介绍

Strands MCP-Based Learning Support Agent System

An intelligent educational assistant that routes questions to specialized agents for math, science, and web search queries using the Strands framework and Model Context Protocol (MCP).

Overview

Learning Support uses a supervisor agent pattern to intelligently route user questions to specialized sub-agents:

  • Math Agent: Handles calculations and mathematical problems using the calculator tool
  • Science Agent: Processes science-related queries (physics, chemistry, biology)
  • Search Agent: Performs web searches for current events and factual information via MCP fetch server

Architecture

┌─────────────────┐
│   Supervisor    │  Routes questions to appropriate specialist
│     Agent       │
└────────┬────────┘
         │
    ┌────┴────┬─────────┬──────────┐
    │         │         │          │
┌───▼───┐ ┌──▼───┐ ┌───▼────┐ ┌───▼────┐
│ Math  │ │Science│ │ Search │ │ Direct │
│ Tool  │ │ Tool  │ │  Tool  │ │ Answer │
└───────┘ └───────┘ └────────┘ └────────┘

Project Structure

.
├── agents/
│   ├── factory.py          # Agent factory for consistent configuration
│   ├── supervisor.py       # Main routing agent
│   ├── math_agent.py       # Math specialist agent
│   ├── science_agent.py    # Science specialist agent
│   └── search_agent.py     # Web search agent
├── tools/
│   ├── math_tool.py        # Calculator tool wrapper
│   ├── science_tool.py     # Science query tool
│   └── search_tool.py      # Web search tool
├── config/
│   ├── settings.py         # Configuration and logging setup
│   └── prompts.py          # System prompts for each agent
├── utils/
│   └── helpers.py          # Response cleaning utilities
└── main.py                 # CLI entry point

Installation

  1. Clone the repository
  2. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file with your configuration (if needed)

Usage

Run the interactive CLI:

python main.py

Example Interactions

> What is 25 * 48?
ROUTING DECISION: math_tool
REASON: Question involves multiplication calculation
SUCCESS: 1200

> What is photosynthesis?
ROUTING DECISION: science_tool
REASON: Biology-related question
SUCCESS: [Science explanation]

> What's the latest news about AI?
ROUTING DECISION: search_tool
REASON: Current events query
SUCCESS: [Search results]

Type exit to quit the application.

Features

  • Intelligent Routing: Automatically determines the best specialist for each question
  • Specialized Agents: Each agent is optimized for its domain
  • Clean Logging: Configurable logging system for debugging and monitoring
  • Error Handling: Graceful error handling with user-friendly messages
  • Extensible: Easy to add new specialist agents and tools

Configuration

Logging

Logging is configured in config/settings.py. Default level is INFO.

Model Selection

The default model is configured in config/settings.py via the DEFAULT_MODEL constant.

Development

Adding a New Specialist Agent

  1. Create agent in agents/your_agent.py
  2. Create corresponding tool in tools/your_tool.py
  3. Add prompt in config/prompts.py
  4. Update supervisor routing rules
  5. Export from agents/__init__.py and tools/__init__.py

Dependencies

  • strands: Core agent framework
  • strands-tools: Pre-built tools (calculator, MCP client)
  • python-dotenv: Environment variable management

License

[Add your license here]

目录标签

目录标签

PythonAI代理工作流自动化智能路由本地部署教育助手多代理系统数学工具科学工具

接入字段

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

stdio

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

none

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

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

0

权限和风险

stdionone部署方式未说明

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

安装前确认

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

来源信息

继续浏览同类 MCP