sozsoft-platform/api/modules/Sozsoft.Mcp/Sozsoft.Mcp.HttpApi/McpServerInfoDefaults.cs

32 lines
2 KiB
C#
Raw Normal View History

2026-09-17 09:01:14 +00:00
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 " +
2026-09-18 13:47:23 +00:00
"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. " +
"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). " +
2026-09-25 07:52:06 +00:00
"A request is its own brief: do not ask questions and do not wait for DB Migrate; deploy (demo rows go in deploy_wizard seedRows), 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.";
2026-09-17 09:01:14 +00:00
}