实现 MCP 服务器(Http + TouchSocketHttp + Ipc + Stdio),实现 MCP 客户端(Http + Stdio)#2
Merged
实现 MCP 服务器(Http + TouchSocketHttp + Ipc + Stdio),实现 MCP 客户端(Http + Stdio)#2
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
reviewed
Feb 27, 2026
src/DotNetCampus.ModelContextProtocol/Servers/McpServerRequestHandlers.cs
Show resolved
Hide resolved
lindexi
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.