sozsoft-platform/api/modules/Sozsoft.Mcp/Sozsoft.Mcp.HttpApi/McpServerInfoDefaults.cs
2026-10-04 18:04:16 +03:00

33 lines
2.5 KiB
C#

namespace Sozsoft.Mcp;
/// <summary>
/// Istemciye <c>initialize</c> yanitinda bildirilen sunucu kimligi ve yonerge metni.
/// Yonerge modele hitap eder, son kullaniciya degil; bu yuzden dil anahtari uzerinden
/// gecmez — protokol metnidir, arayuz metni degil.
/// </summary>
internal static class McpServerInfoDefaults
{
public const string Name = "sozsoft-platform";
/// <summary>Connector ekraninda gorunen kaynak adi.</summary>
public const string DisplayName = "Sozsoft Platform";
public const string Version = "1.0.0";
public const string Instructions =
"Sozsoft Platform data access. Do not guess table or column names: first find the list with " +
"list_lists or search_schema, read its columns with describe_list, then query it with run_select " +
"using named @parameters. Never inline literal values into SQL. Columns marked isSensitive must " +
"not be selected. Call server_info first when a tool behaves unexpectedly. " +
"To build screens or components, read the contract with get_dev_guide first (index, then the " +
"section you need), inspect what exists with list_wizards/get_wizard and list_components/get_component, " +
"then produce them with deploy_wizard and save_component; the guide's file-writing steps map to these tools. " +
"Agree on screen type, data source, module and permissions with the user before deploying. " +
"Analyzing development requests (Backlog -> Analysis) follows get_dev_guide section 0.12: read with get_dev_request, " +
"write the analysis with save_dev_request_analysis, produce nothing and never touch Description; the user moves an approved analysis to Ready to Start. " +
"Development requests (App.DevRequests) follow get_dev_guide section 0.11: claim each one with " +
"start_dev_request, which only accepts requests in Ready to Start; images pasted into the request arrive as image content and are part of the request (layout and demo rows). " +
"A request (Description) and its approved Analysis are its own brief: do not ask questions and do not wait for DB Migrate; deploy (demo rows go in deploy_wizard seedRows), complete the module document with get_module_doc / save_module_doc (section 0.13), then move the request to Testing and finish. " +
"When a tool reports a missing permission, tell the user which permission is missing and stop; " +
"do not try to reach the same result through another tool.";
}