2026-09-25 07:52:06 +00:00
|
|
|
|
using System.ComponentModel;
|
2026-09-24 11:58:23 +00:00
|
|
|
|
using ModelContextProtocol.Server;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Sozsoft.Mcp.Tools;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gelistirme dongusunun hazir prompt'lari. Proseduru tekrar etmez, rehberin 0.11 bolumune
|
|
|
|
|
|
/// yonlendirir; boylece adimlar tek yerde (lowcode.instructions.md) degisir. Durum kurali
|
|
|
|
|
|
/// start_dev_request'te sunucu tarafinda uygulanir.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[McpServerPromptType]
|
|
|
|
|
|
public static class McpDevelopPrompts
|
|
|
|
|
|
{
|
|
|
|
|
|
[McpServerPrompt(Name = McpPromptNames.ProcessDevRequest)]
|
|
|
|
|
|
[Description("Tek bir gelistirme talebini isler. Talep Ready to Start durumunda olmalidir.")]
|
|
|
|
|
|
public static string ProcessDevRequest(
|
|
|
|
|
|
[Description("Talebin Id'si (GUID) ya da tam basligi.")]
|
|
|
|
|
|
string request)
|
|
|
|
|
|
=> $"App.DevRequests kuyrugundaki '{request}' talebini isle; yalnizca bu talebi. " +
|
|
|
|
|
|
"Once get_dev_guide ile lowcode 0.11 bolumunu oku ve oradaki adimlari uygula. " +
|
|
|
|
|
|
"Talebi start_dev_request ile ustlen. Arac reddederse (talep Ready to Start degil, bulunamadi ya da " +
|
|
|
|
|
|
"birden fazla eslesme var) hicbir sey uretme, baska bir talebe gecme: nedenini bildir ve dur. " +
|
2026-09-25 07:52:06 +00:00
|
|
|
|
"Talep tarifin kendisidir: soru sorma, DB Migrate'i bekleme; talebi Testing'e alip bitir. " +
|
|
|
|
|
|
"Sonunda rapor ver: uretilen artefaktlar, talebin son durumu ve DB Migrate gerektigi.";
|
2026-09-24 11:58:23 +00:00
|
|
|
|
|
|
|
|
|
|
[McpServerPrompt(Name = McpPromptNames.ProcessReadyRequests)]
|
|
|
|
|
|
[Description("Ready to Start durumundaki tum gelistirme taleplerini SortOrder sirasiyla isler.")]
|
|
|
|
|
|
public static string ProcessReadyRequests()
|
|
|
|
|
|
=> "App.DevRequests kuyrugundaki Ready to Start taleplerini query_list ile SortOrder sirasiyla oku ve tek tek isle. " +
|
|
|
|
|
|
"Once get_dev_guide ile lowcode 0.11 bolumunu oku ve oradaki adimlari uygula. " +
|
|
|
|
|
|
"Her talebi start_dev_request ile ustlen; reddedilen talebi atla ve rapora yaz. " +
|
2026-09-25 07:52:06 +00:00
|
|
|
|
"Talep tarifin kendisidir: soru sorma, DB Migrate'i bekleme; her talebi Testing'e alip digerine gec. " +
|
|
|
|
|
|
"Sonunda parti raporu ver: talep basina uretilen artefaktlar ve son durum; DB Migrate gerektigini tek satirda belirt.";
|
2026-09-24 11:58:23 +00:00
|
|
|
|
}
|