|
7 | 7 | - "dotnet-ai/provider-agnostic-chat-gateway/**" |
8 | 8 | - "dotnet-ai/hybrid-search-ef-core-pgvector/**" |
9 | 9 | - "dotnet-ai/agent-framework-incident-triage/**" |
| 10 | + - "dotnet-ai/mcp-server-csharp-dotnet/**" |
10 | 11 | - "dotnet-aspire/orchestrate-distributed-system/**" |
11 | 12 | - "software-architecture/architecture-testing-dotnet/**" |
12 | 13 | - "distributed-systems/transactional-outbox-ef-core/**" |
|
39 | 40 | - "dotnet-ai/provider-agnostic-chat-gateway/**" |
40 | 41 | - "dotnet-ai/hybrid-search-ef-core-pgvector/**" |
41 | 42 | - "dotnet-ai/agent-framework-incident-triage/**" |
| 43 | + - "dotnet-ai/mcp-server-csharp-dotnet/**" |
42 | 44 | - "dotnet-aspire/orchestrate-distributed-system/**" |
43 | 45 | - "software-architecture/architecture-testing-dotnet/**" |
44 | 46 | - "distributed-systems/transactional-outbox-ef-core/**" |
@@ -2052,3 +2054,51 @@ jobs: |
2052 | 2054 | dotnet-ai/agent-framework-incident-triage/AgentFrameworkIncidentTriage.slnx |
2053 | 2055 | --configuration Release |
2054 | 2056 | --no-build |
| 2057 | +
|
| 2058 | + test-mcp-server-csharp-dotnet: |
| 2059 | + name: Test first MCP server sample |
| 2060 | + runs-on: ubuntu-latest |
| 2061 | + |
| 2062 | + defaults: |
| 2063 | + run: |
| 2064 | + working-directory: dotnet-ai/mcp-server-csharp-dotnet |
| 2065 | + |
| 2066 | + steps: |
| 2067 | + - name: Check out repository |
| 2068 | + uses: actions/checkout@v5 |
| 2069 | + |
| 2070 | + - name: Install .NET 10 SDK |
| 2071 | + uses: actions/setup-dotnet@v5 |
| 2072 | + with: |
| 2073 | + dotnet-version: "10.0.401" |
| 2074 | + |
| 2075 | + - name: Show selected .NET SDK |
| 2076 | + run: dotnet --version |
| 2077 | + |
| 2078 | + - name: Restore |
| 2079 | + run: > |
| 2080 | + dotnet restore |
| 2081 | + FirstMcpServer.slnx |
| 2082 | +
|
| 2083 | + - name: Build |
| 2084 | + run: > |
| 2085 | + dotnet build |
| 2086 | + FirstMcpServer.slnx |
| 2087 | + --configuration Release |
| 2088 | + --no-restore |
| 2089 | +
|
| 2090 | + - name: Test deterministic layers |
| 2091 | + run: > |
| 2092 | + dotnet test |
| 2093 | + tests/FirstMcpServer.Tests/FirstMcpServer.Tests.csproj |
| 2094 | + --configuration Release |
| 2095 | + --no-build |
| 2096 | +
|
| 2097 | + - name: Verify MCP stdio end to end |
| 2098 | + run: > |
| 2099 | + dotnet run |
| 2100 | + --project src/McpClientDemo/McpClientDemo.csproj |
| 2101 | + --configuration Release |
| 2102 | + --no-build |
| 2103 | + -- |
| 2104 | + src/FirstMcpServer/bin/Release/net10.0/FirstMcpServer.dll |
0 commit comments