MCP.so
登录

MCP Server

@RobertEichenseer

关于 MCP Server

MCP Server (Resources, Tools, Prompts)

基本信息

分类

其他

运行时

c#

传输方式

stdio

发布者

RobertEichenseer

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server?

MCP Server is a simplified C# implementation of the Model Context Protocol (MCP) server that provides Tools, Resources, and Prompts for sports information. It is designed to be launched by a host application via standard I/O (stdio) and to enhance LLM/SLM interactions with contextual data.

How to use MCP Server?

The MCP server is started by a host application using dotnet run with the project path and configured via StdioClientTransportOptions. The host creates an IMcpClient using McpClientFactory.CreateAsync, then lists available tools, prompts, and resources. To use the server’s functionality, the host calls tools like RetrieveWinner, requests prompts like CreateMatchSummaryPrompt, or reads resources, optionally subscribing to resource updates.

Key features of MCP Server

  • Provides Tools (e.g., RetrieveWinner) for action execution
  • Offers Prompts (e.g., CreateMatchSummaryPrompt) as templates
  • Serves Resources and Resource Templates for data grounding
  • Supports subscribing to resource change notifications
  • Communicates with the host via stdio transport
  • Built with .NET using the ModelContextProtocol NuGet package

Use cases of MCP Server

  • Query the winner of a sports event by name and date
  • Generate a match summary prompt with custom parameters
  • Retrieve a specific team’s information via resource templates
  • Subscribe to resource updates and receive notifications
  • Integrate sports data tools into an AI chat application

FAQ from MCP Server

What is the Model Context Protocol (MCP)?

MCP is an open protocol that standardizes how applications provide context to LLMs, enabling connections to data sources, tools, and prompts.

What does the MCP server provide?

It provides Tools (executable functions), Resources (data for grounding), and Prompts (template messages) for sports-related content.

How does the host communicate with the MCP server?

The host launches the server via stdio (dotnet run) and uses the ModelContextProtocol NuGet package to create a client and exchange messages.

What dependencies are required to run the server?

The server is a C# .NET project. The sample host also requires an Azure OpenAI instance with a deployed GPT-4 model for full demo functionality.

Can the host interact with multiple MCP servers?

Yes, the application can start and interact with multiple MCP servers simultaneously, each providing distinct resources, tools, and prompts.

评论

其他 分类下的更多 MCP 服务器