SM

samfold/mcp.net

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

37 stars 4 forks 품질 55 트렌드 12MIT

Anthropic의 Model Context Protocol (MCP)의 완전한 C# 구현

개요

Mcp.Net - .NET에 대한 모델 Context Protocol은 도구, 리소스 및 신속한 표준 프로토콜을 가진 AI 모델에 앱을 연결 맥. Net은 Model Context Protocol (MCP)의 .NET 구현입니다 - AI 모델과 도구를 실행하는 앱의 표준화 된 방법. "AI 도구 사용의 HTTP"로 생각 - 응용 프로그램에 대한 깨끗하고 일관성있는 방법 AI 모델에게 능력을 제공 : - 검색, 날씨 조회, 데이터베이스 액세스와 같은 사용 도구 - fe 웹 리소스 및 fetch 웹 콘텐츠 - 사전 정의 된 프롬프트 및 템플릿과 함께 일 이것은 버전 0.9.0 - 핵심은 안정되어 있습니다 그러나 몇몇 특징은 발달에서 아직도 입니다. 자세한 내용은 현재 상태 참조. MCP (웹 연구, 스크랩, twilio, 다양한 데모 도구)를 OpenAI 또는 Anthropic 모델과 함께 경험하십시오. 자세한 내용은 LLM 데모 문서를 참조하십시오. i️ 첫 번째 SSE GET 반품 401 디자인에 의해 허가.

개요(AI 번역)

Mcp.Net - .NET에 대한 모델 콘텍스트 프로토콜 도구, 리소스 및 프롬프트를 위한 표준화된 프로토콜을 가진 AI 모델에 앱을 연결

✨ Mcp.Net은 무엇입니까?

맥. Net은 Model Context Protocol (MCP)의 .NET 구현입니다 - AI 모델과 도구를 실행하는 앱의 표준화 된 방법. "AI 도구 사용의 HTTP"로 생각 - 응용 프로그램에 대한 깨끗하고 일관성있는 방법 AI 모델에게 능력을 제공 :

  • 검색, 날씨 조회, 데이터베이스 액세스와 같은 사용 도구
  • 웹 리소스 및 fetch 웹 콘텐츠 액세스
  • 사전 정의 된 프롬프트 및 템플릿과 함께 일하기

⚠️ 사전 1.0 공지사항 · 이것은 버전 0.9.0입니다 - 핵심은 안정되어 있습니다 그러나 몇몇 특징은 발달에서 아직도 입니다. 세부사항을 위한 현재 상태를 보십시오.

ღ♥ღ

대화형 LLM 데모 시도

MCP (웹 연구, 스크랩, twilio, 다양한 데모 도구)를 OpenAI 또는 Anthropic 모델과 함께 경험하십시오.

자세한 내용은 LLM 데모 문서를 참조하십시오.

패키지 설치

##는 OAuth 2.1를 가진 표본 서버 + 클라이언트를 달립니다

i️ 첫 번째 SSE GET 반품 401 Unauthorized by design. 클라이언트는 따릅니다

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

✨ What is Mcp.Net?

Mcp.Net is a .NET implementation of the Model Context Protocol (MCP) - a standardized way for apps to talk to AI models and execute tools. Think of it as the “HTTP of AI tool usage” - a clean, consistent way for your app to give AI models the ability to:

  • 🧰 Use tools like search, weather lookup, database access
  • 🌐 Access web resources and fetch web content
  • 📝 Work with predefined prompts and templates

⚠️ Pre-1.0 Notice

This is version 0.9.0 - the core is stable but some features are still in development. See Current Status for details.

🏃‍♀️ Quick Start

Try the interactive LLM demo

Experience MCP (with web-search, scraping, twilio, various demo tools) with OpenAI or Anthropic models in just two steps:

# 1. Start the server with demo tools
dotnet run --project Mcp.Net.Examples.SimpleServer/Mcp.Net.Examples.SimpleServer.csproj

# 2. In a new terminal, run the LLM chat app (requires OpenAI or Anthropic API key)
dotnet run --project Mcp.Net.LLM/Mcp.Net.LLM.csproj

See the LLM demo documentation for more details.

Install the packages

# For building a server (the thing that provides tools)
dotnet add package Mcp.Net.Server

# For building a client (the thing that talks to AI models)
dotnet add package Mcp.Net.Client

Run the sample server + client with OAuth 2.1

# Terminal 1 — start the demo server (SSE on http://localhost:5000)
dotnet run --project Mcp.Net.Examples.SimpleServer/Mcp.Net.Examples.SimpleServer.csproj

# Terminal 2 — launch the client (performs dynamic registration + PKCE)
dotnet run --project Mcp.Net.Examples.SimpleClient -- --url http://localhost:5000 --auth-mode pkce

ℹ️ The first SSE GET returns 401 Unauthorized by design. The client follows the WWW-Authenticate challenge, registers itself at /oauth/register, completes the PKCE handshake, and reconnects with a bearer token. Watch the logs to see resources, prompts, and tools (including the new elicitation flow) being exercised end-to-end. When the Warhammer inquisitor tool runs you’ll be prompted to accept/decline/cancel and optionally override fields via the console handler in the sample client.

Enable elicitation in your own client

The client advertises the elicitation capability only after you register a handler. Call

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →