MCP admin half: clients, instructions, prompts and agent writes (A-37)

Aperta
#3,425 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

Read docs/planning/admin-technical-spec.md, sections 5.4 and 10.7, then inspect the MCP plugin routes and the A-51 admin stub. Check the generated MCP settings page and the OpenAPI document while mapping the acceptance criteria to the component, API, and end-to-end tests. Done means the client, instructions, prompts, and agent writes workflows meet the listed acceptance criteria and the records match the OpenAPI document.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:admin type:feature

Problem

Rows 9.13, 9.10, 9.11 and 3.17 ask that an administrator approves the MCP clients that agents connect through, gives them a role, writes the instructions and prompts agents get, and sees what agents wrote. The MCP plugin has the routes, and its admin half is the stub of A-51.

Proposal

The half FluentCMS.Plugins.Mcp.Admin (5.4):

  • /mcp/clients, for mcp.manage for the instance: the clients with status, role and last activity; approve with a role, reject, revoke; register a client and change an approved client's role (#3102). What a registration answers once is shown with the copy button of A-33. The page says that service accounts come from configuration and are neither listed nor changed here.
  • A self-registered client that no administrator approved is removed by the server's cleanup once it has stayed unused for the time the settings give, so an action on a client that is gone answers FCMS1603: the page says so and reads the list again. There is no removal of many at once until #3397.
  • A link "agent writes": the activity of GET /activity?origin=mcp, read in pages.
  • /mcp/instructions, for mcp.manage in the site: the guidelines of the site and the instructions per content type.
  • /mcp/prompts, for the same: the stored prompts, with create, change and delete.
  • The settings of mcp are the generated page of A-34, on the defaults of the instance, which is where the plugin reads its registration policy from.
  • The half's records are checked against the OpenAPI document.

Acceptance

  • An administrator approves a client that registered itself, gives it a role, changes the role and revokes it
  • A client is registered from the admin, and what the answer holds once is shown once
  • An action on a client the cleanup removed says that it is gone and the list is read again
  • The guidelines of a site and the instructions of one type are written, changed and removed, and a prompt is stored and changed
  • The agent writes of the site are listed
  • A caller who holds mcp.manage in a site only sees the instructions and the prompts and no clients page
  • Component tests cover the pages; the API tests check the records against the OpenAPI document; an end-to-end case approves a client and writes an instruction

Design: docs/planning/admin-technical-spec.md, sections 5.4 and 10.7 (A-37). Rows 9.13, 9.10, 9.11, 3.17. Needs A-51, A-33 for what is shown once and A-34 for the settings page; #3102 and #3104 are merged. Size: M.

Lingua principale
C#
Stelle
567
Fork
107
Merge medio
1h 19m
PR unite (30g)
353

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.