Token导航 LogoToken导航TokenDH.com
Mpc Csharp Semantickernel logo
开发工具未说明官方来源来源级核验

Mpc Csharp Semantickernel

MCP Server

一个使用Microsoft Semantic Kernel与OpenAI以及Model Context Protocol官方C# SDK的示例项目,展示了如何集成AI功能并发送电子邮件。

工具数

0

提示词数

0

GitHub Stars

3

资源数

0
C#OpenAI本地部署

安装说明

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

作者 / 组织

mrazvanalex

提供方

mrazvanalex

最后核验

2026/5/17 20:20

快速接入

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

详细介绍

$${\\color{red}This\\space存储库\\space将\\space不维护\\space。\\space这是\\space只是\\space一个\\space快速\\space示例。}$$

mpc-csharp语义核

Microsoft Semantic Kernel与OpenAI的示例使用以及模型上下文协议的官方C#SDK,可以在https://github.com/modelcontextprotocol/csharp-sdk

先决条件

SMTP电子邮件服务器(用于EmailTools) OpenAI ApiKey

如何运行示例

  1. 使用OpenAI开发者仪表板获取ApiKey。
  2. 填写每个单独项目的应用程序设置。
  3. 您可以向其发送电子邮件的电子邮件地址在Tools/EmailTool.cs中被硬编码为字典。用你的电子邮件列表更新字典。请随意设置此设置。
  4. 运行项目。默认启动设置设置为http://localhost:5109

应用程序设置

WebAppMCPoc项目

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "OpenAI": {
    "ApiKey": "",
    "ChatModelId" : "gpt-4o-mini"
  }
}

MCPServer项目

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*",
  "EmailSettings": {
    "SMTPServer": {
      "MailPort": "465",
      "MailServer": "",
      "Sender": "",
      "SenderName": "",
      "Password": "",
      "Username": ""
    }
  }
}

发送请求:

您可以使用邮递员等工具发送请求。

请求示例: POST https://localhost:7113/chat 主体: { "text": "send and email toaFriend and tell him that you are an ai in 250 words. Tell him you're using C# to do this.."}

将{someone}替换为您在EmailTool电子邮件词典中添加的名称。

        private static readonly Dictionary emails = new Dictionary
        {
            { "example", "mail@example.com" },
            { "aFriend", "friendEmail@gmail.com" }
        };

许可证

该项目根据MIT许可证获得许可。

目录标签

目录标签

C#OpenAI本地部署AI集成C#SDK电子邮件工具

接入字段

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

未说明

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

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

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

0

权限和风险

未说明none部署方式未说明

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

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP