fix(mcp): add [McpServerToolType] attribute to all tool classes

Without this attribute, WithToolsFromAssembly does not discover
the tool methods and the server reports no tools capability.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 16:01:47 -04:00
parent 5951a6a5c0
commit 8952b9d0ea
4 changed files with 4 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ using CncProgram = OpenNest.CNC.Program;
namespace OpenNest.Mcp.Tools namespace OpenNest.Mcp.Tools
{ {
[McpServerToolType]
public class InputTools public class InputTools
{ {
private readonly NestSession _session; private readonly NestSession _session;

View File

@@ -8,6 +8,7 @@ using OpenNest.Math;
namespace OpenNest.Mcp.Tools namespace OpenNest.Mcp.Tools
{ {
[McpServerToolType]
public class InspectionTools public class InspectionTools
{ {
private readonly NestSession _session; private readonly NestSession _session;

View File

@@ -7,6 +7,7 @@ using OpenNest.Geometry;
namespace OpenNest.Mcp.Tools namespace OpenNest.Mcp.Tools
{ {
[McpServerToolType]
public class NestingTools public class NestingTools
{ {
private readonly NestSession _session; private readonly NestSession _session;

View File

@@ -5,6 +5,7 @@ using OpenNest.Geometry;
namespace OpenNest.Mcp.Tools namespace OpenNest.Mcp.Tools
{ {
[McpServerToolType]
public class SetupTools public class SetupTools
{ {
private readonly NestSession _session; private readonly NestSession _session;