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>
14 lines
345 B
C#
14 lines
345 B
C#
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();
|