feat: Add CutList.Mcp project for MCP server integration
Add new MCP (Model Context Protocol) server project that exposes cut list optimization tools for AI assistants. Implements tools for: - create_cutlist: Optimized bin packing with parts and stock bins - parse_length: Parse architectural format to decimal inches - format_length: Format inches to feet/inches/fractions - create_cutlist_report: Generate formatted printable text report Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
13
CutList.Mcp/Program.cs
Normal file
13
CutList.Mcp/Program.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using ModelContextProtocol.Server;
|
||||
|
||||
var builder = Host.CreateApplicationBuilder(args);
|
||||
|
||||
builder.Services
|
||||
.AddMcpServer()
|
||||
.WithStdioServerTransport()
|
||||
.WithToolsFromAssembly(typeof(Program).Assembly);
|
||||
|
||||
var app = builder.Build();
|
||||
await app.RunAsync();
|
||||
Reference in New Issue
Block a user