Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 24 additions & 23 deletions dotnet/mcpb.Tests/MetaFieldTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Text.Json;
using Mcpb.Core;
using Mcpb.Json;
using ModelContextProtocol.Protocol;
using Xunit;

namespace Mcpb.Tests;
Expand Down Expand Up @@ -168,31 +169,31 @@ public void StaticResponses_ContainInputAndOutputSchemas()

var toolsListResult = new McpbToolsListResult
{
Tools = new List<object>
Tools = new List<Tool>
{
new
new Tool
{
name = "search_tool",
description = "A search tool",
inputSchema = new
{
type = "object",
properties = new
{
query = new { type = "string", description = "Search query" },
maxResults = new { type = "number", description = "Max results" }
},
required = new[] { "query" }
},
outputSchema = new
{
type = "object",
properties = new
{
results = new { type = "array" },
count = new { type = "number" }
}
}
Name = "search_tool",
Description = "A search tool",
InputSchema = JsonDocument.Parse("""
Comment thread
almedina-ms marked this conversation as resolved.
{
"type": "object",
"properties": {
"query": { "type": "string", "description": "Search query" },
"maxResults": { "type": "number", "description": "Max results" }
},
"required": ["query"]
}
""").RootElement,
OutputSchema = JsonDocument.Parse("""
{
"type": "object",
"properties": {
"results": { "type": "array" },
"count": { "type": "number" }
}
}
""").RootElement
}
}
};
Expand Down
Loading
Loading