- Add LaserQuoteBaseUrl config property to PepTools - Implement CompareGeometry() MCP tool to compare part geometry between PEP and LaserQuote - Read LaserQuoteBaseUrl from appsettings.json in Program.cs - Add appsettings.json with LaserQuoteBaseUrl config - Update PepMcp.csproj to copy appsettings.json to output directory
15 lines
385 B
C#
15 lines
385 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
var builder = Host.CreateApplicationBuilder(args);
|
|
builder.Services
|
|
.AddMcpServer()
|
|
.WithStdioServerTransport()
|
|
.WithTools<PepTools>();
|
|
|
|
var app = builder.Build();
|
|
|
|
PepTools.LaserQuoteBaseUrl = builder.Configuration["LaserQuoteBaseUrl"] ?? "http://localhost:5260";
|
|
|
|
await app.RunAsync();
|