Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 28, 2025

This PR migrates the MCP (Model Context Protocol) samples from SSE transport naming to streaming transport by renaming projects and namespaces as requested in the issue.

Changes Made

Project Renaming

  • Renamed McpSample.AspNetCoreSseServer project to McpSample.AspNetCoreServer
  • Updated all project references in the solution file and AppHost configuration
  • Changed AppHost variable names from aspnetsseserver to aspnetserver

Namespace Updates

  • Updated namespace declarations in Tools/Jokes.cs and Tools/WeatherTool.cs from McpSample.AspNetCoreSseServer to McpSample.AspNetCoreServer

Transport Configuration

  • Verified the client transport is already using HttpTransportMode.StreamableHttp for the new streaming transport mode
  • Updated transport display name from "AspNetCoreSse Server" to "AspNetCore Server"

Technical Details

The migration maintains the SseClientTransport class usage (which appears to be kept for API compatibility) but ensures it's configured with HttpTransportMode.StreamableHttp to use the new streaming transport mechanism instead of traditional Server-Sent Events.

All projects build successfully and the MCP server starts correctly, confirming the migration maintains full functionality while removing SSE naming references as requested.

Fixes #215.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copy link

👋 Thanks for contributing @copilot! We will review the pull request and get back to you soon.

@Copilot Copilot AI changed the title [WIP] Change SSE transport to streaming transport for MCP samples and docs Change SSE transport to streaming transport for MCP samples Jul 28, 2025
@Copilot Copilot AI requested a review from jongalloway July 28, 2025 18:43
Copilot finished work on behalf of jongalloway July 28, 2025 18:43
@jongalloway jongalloway requested a review from Copilot July 28, 2025 19:11
Copy link
Contributor

@Copilot 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 renames MCP (Model Context Protocol) sample projects from SSE (Server-Sent Events) to streaming transport terminology. The changes update project names, namespaces, and references to align with the new streaming transport approach while maintaining the same underlying functionality.

Key changes:

  • Renamed the main server project from McpSample.AspNetCoreSseServer to McpSample.AspNetCoreServer
  • Updated all namespace references in tool classes to match the new project structure
  • Modified project references and solution file entries to reflect the renamed projects

Reviewed Changes

Copilot reviewed 6 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Program.cs (Chat) Updated transport display name from "AspNetCoreSse Server" to "AspNetCore Server"
WeatherTool.cs Changed namespace from McpSample.AspNetCoreSseServer to McpSample.AspNetCoreServer
Jokes.cs Changed namespace from McpSample.AspNetCoreSseServer to McpSample.AspNetCoreServer
Program.cs (AppHost) Updated project references and variable names from aspnetsseserver to aspnetserver
McpSample.AppHost.csproj Updated project reference path to match renamed server project
Aspire.MCP.Sample.sln Updated solution file entry for the renamed server project

@jongalloway jongalloway marked this pull request as ready for review July 28, 2025 19:47
@jongalloway jongalloway merged commit 9d33fb2 into main Jul 28, 2025
6 checks passed
@jongalloway jongalloway deleted the copilot/fix-215 branch July 28, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change SSE transport to streaming transport for MCP samples and docs
3 participants