Skip to content

实现 MCP 服务器(Http + TouchSocketHttp + Ipc + Stdio),实现 MCP 客户端(Http + Stdio)#2

Merged
lindexi merged 299 commits intomainfrom
t/walterlv/basic
Feb 27, 2026
Merged

实现 MCP 服务器(Http + TouchSocketHttp + Ipc + Stdio),实现 MCP 客户端(Http + Stdio)#2
lindexi merged 299 commits intomainfrom
t/walterlv/basic

Conversation

@walterlv
Copy link
Member

No description provided.

@walterlv walterlv changed the title 实现一个最基础的 MCP 服务器 实现 MCP 服务器(Http + TouchSocketHttp + Ipc + Stdio),实现 MCP 客户端(Http + Stdio) Feb 5, 2026
@walterlv walterlv requested a review from Copilot February 5, 2026 01:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements comprehensive MCP (Model Context Protocol) server and client functionality with support for multiple transport layers (HTTP, TouchSocketHttp, IPC, Stdio).

Changes:

  • Implements MCP server infrastructure with tool and resource providers
  • Adds HTTP transport layer with support for both Streamable HTTP (2025-11-25) and legacy HTTP+SSE (2024-11-05)
  • Implements source generators for MCP tools, resources, and transport layers
  • Adds comprehensive protocol message definitions aligned with MCP 2025-11-25 specification

Reviewed changes

Copilot reviewed 165 out of 208 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/DotNetCampus.ModelContextProtocol/Servers/*.cs Core server implementation including context, tool/resource providers, and interfaces
src/DotNetCampus.ModelContextProtocol/Protocol/Messages/*.cs MCP protocol message type definitions with bilingual documentation
src/DotNetCampus.ModelContextProtocol/Exceptions/*.cs Custom exception types for MCP operations
src/DotNetCampus.ModelContextProtocol.Analyzer/**/*.cs Source generators for tools, resources, and transport layers
src/DotNetCampus.ModelContextProtocol.TouchSocket.Http/**/*.cs TouchSocket HTTP transport implementation
src/DotNetCampus.ModelContextProtocol.Ipc/**/*.cs IPC transport implementation
samples/DotNetCampus.SampleMcpServer/**/*.cs Sample MCP server demonstrating various features
docs/**/*.md Documentation including HTTP transport guides and quick start

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lindexi lindexi requested a review from Copilot February 26, 2026 06:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 165 out of 208 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lindexi lindexi merged commit d2082e7 into main Feb 27, 2026
3 checks passed
@lindexi lindexi deleted the t/walterlv/basic branch February 27, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants