Skip to content

Commit ceae33c

Browse files
committed
updated mock mcps to use updated mcp descriptions
1 parent 034fea7 commit ceae33c

12 files changed

Lines changed: 1824 additions & 2436 deletions
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7+
<RootNamespace>Microsoft.Agents.A365.DevTools.MockToolingServer</RootNamespace>
78
</PropertyGroup>
9+
<ItemGroup>
10+
<Using Include="System.Collections.Concurrent" />
11+
<Using Include="System.Text.Json" />
12+
<Using Include="System.Text.Json.Serialization" />
13+
<Using Include="System.Text.RegularExpressions" />
14+
<Using Include="Microsoft.Agents.A365.DevTools.MockToolingServer.MockTools" />
15+
</ItemGroup>
816
<ItemGroup>
917
<!-- Add packages with `dotnet add package` as instructed in the repo README below -->
1018
<PackageReference Include="DocumentFormat.OpenXml" Version="3.0.0" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MockNotificationMCP", "MockNotificationMCP.csproj", "{67BA49BD-228B-43D5-84C4-2438B9AEB45D}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MockToolingServer", "MockToolingServer.csproj", "{67BA49BD-228B-43D5-84C4-2438B9AEB45D}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

mcp/MockTools/FileMockToolStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
namespace MockNotificationMCP.MockTools;
4+
namespace Microsoft.Agents.A365.DevTools.MockToolingServer.MockTools;
55

66
public class FileMockToolStore : IMockToolStore, IDisposable
77
{

mcp/MockTools/IMockToolStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
namespace MockNotificationMCP.MockTools;
4+
namespace Microsoft.Agents.A365.DevTools.MockToolingServer.MockTools;
55

66
public interface IMockToolStore
77
{

mcp/MockTools/MockToolExecutor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
namespace MockNotificationMCP.MockTools;
4+
namespace Microsoft.Agents.A365.DevTools.MockToolingServer.MockTools;
55

66
public interface IMockToolExecutor
77
{

mcp/MockTools/MockToolModels.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
namespace MockNotificationMCP.MockTools;
4+
namespace Microsoft.Agents.A365.DevTools.MockToolingServer.MockTools;
55

66
public class MockToolDefinition
77
{

mcp/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
if (mcpServerNames.Length == 0)
3131
{
3232
mcpServerNames = builder.Configuration.GetSection("Mcp:ServerNames").Get<string[]>()
33-
?? new[] { builder.Configuration["Mcp:ServerName"] ?? "MockNotificationMCP" };
33+
?? new[] { builder.Configuration["Mcp:ServerName"] ?? "MockToolingServer" };
3434
}
3535

3636
// Mock tool stores + executor. Each server gets its own store with file name <mcpServerName>.json under /mocks
3737
foreach (var serverName in mcpServerNames)
3838
{
39-
builder.Services.AddSingleton<IMockToolStore>(provider => new FileMockToolStore(serverName, new MockToolStoreOptions()));
39+
builder.Services.AddSingleton<IMockToolStore>(provider => new FileMockToolStore(serverName!, new MockToolStoreOptions()));
4040
}
4141

4242
builder.Services.AddSingleton<IMockToolExecutor>(provider =>

mcp/mocks/OneDriveMCPServer.json

Lines changed: 0 additions & 290 deletions
This file was deleted.

0 commit comments

Comments
 (0)