AI Agent开发工具

一个基于.NET的AI Agent开发工具,提供多种Agent实现和MCP服务器,适用于AI开发和模型上下文协议实践。

  • by iangithub
  • C#
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 iangithub/hwdhol2025

使用说明

hwdhol2025

Hello World Dev 2025 工作坊 - 用.NET 驅動 AI Agent 到 MCP 實踐

專案結構

hwdhol2025/
├── AgentLab/              # AI Agent 實驗室
│   ├── Agents/           # 各種 Agent 實作
│   ├── Plugins/          # Agent 外掛程式
│   └── Config.cs         # 設定檔(請填入 API Keys)
└── McpServer/            # Model Context Protocol 伺服器
    ├── McpWebOrderServer/  # Web API MCP 伺服器
    └── mymcpserver/        # Stdio MCP 伺服器

快速開始

前置需求

  • .NET 8.0 SDK 或更高版本
  • Visual Studio 2022 或 VS Code

設定 API Keys

  1. 在 AgentLab/Config.cs 填入您的 API Keys
  2. 在 Config_dev.cs 中填入您的 API Keys:
    • OpenAI API Key
    • Azure OpenAI API Key
    • Google AI API Key

執行專案

AgentLab

cd AgentLab
dotnet run

MCP Server

# Web API Server
cd McpServer/McpWebOrderServer
dotnet run

# Stdio Server
cd McpServer/mymcpserver
dotnet run

專案說明

AgentLab

包含多種 AI Agent 實作範例:

  • BasicAgent: 基本 Agent 實作
  • AgentWithHttpMcp: 透過 HTTP 整合 MCP 的 Agent
  • AgentWithStdioMcp: 透過 Stdio 整合 MCP 的 Agent
  • SequentialOrchestrationAgent: 循序編排 Agent
  • ConcurrentOrchestrationAgent: 平行處理編排 Agent
  • HandoffOrchestrationAgent: 交接編排 Agent

MCP Server

Model Context Protocol 伺服器實作,提供 Agent 所需的工具和資源。

授權

MIT License

貢獻

歡迎提交 Issue 和 Pull Request!