MCP Server
@RobertEichenseer
MCP Server について
MCP Server (Resources, Tools, Prompts)
基本情報
設定
ツール
ツールは検出されませんでした
ツールは 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.
「その他」の他のコンテンツ
ICSS
chokcoco不止于 CSS

EverArt
modelcontextprotocolModel Context Protocol Servers
Servers
modelcontextprotocolModel Context Protocol Servers
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
Awesome Mcp Servers
punkpeyeA collection of MCP servers.
コメント