Add Standalone MCP ASP.NET Core Server

- تکمیل Program و Startup و ثبت سرویس‌های پایه، configuration، CORS، Swagger و
  احراز هویت/مجوز.
- افزودن McpController و StartupController.
- افزودن DI و ابزار XEchoTools.
- به‌روزرسانی appsettings، launchSettings و xAiMcpServer.csproj.
- حذف appsettings.Development.json از وضعیت کاری فعلی.
This commit is contained in:
2026-11-04 17:51:49 +03:30
parent 2a719a8e17
commit 37cba11e5d
10 changed files with 398 additions and 31 deletions
+34 -2
View File
@@ -1,10 +1,42 @@
{
"Version": "0.1",
"Name": "xAiMcpServer",
"DefaultLanguage": "fa-IR",
"XPoweredValue": "SaherElmITCenter",
"WelcomeMessage": "Welcome to xSaherElm Project's AI Mcp Server",
"SwaggerConfiguration": {
"Version": "v1.0",
"Title": "xSaherElm AI Mcp Server",
"Description": "Complete AI Mcp Server Documentation",
"Contact": {
"Name": "Hadi Khazaee Asl",
"Email": "hadi_khazaee_asl@yahoo.com",
"Url": "https://www.saherelm.ir"
}
},
"AllowedOrigins": [
"http://localhost:6000",
"https://localhost:6001",
"http://api.saherelm.ir",
"https://api.saherelm.ir",
"http://api.saherelmhub.ir",
"https://api.saherelmhub.ir"
],
"IdentityServiceConfiguration": {
"Authority": "https://localhost:4001",
"ApiName": "xSaherElmAPI",
"ApiSecret": "s@H@1694056",
"ClientId": "xSaherElmAPIClient",
"ClientSecret": "s@H@1694056",
"XPoweredValue": "SaherElmITCenter",
"XRevisionSecretKey": "SaherElmITCenter@1694056",
"DefaultClientTimeout": -1
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
}