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

未关闭
#3,425 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C#
星标
567
派生
107
平均合并
1 小时 19 分钟
30 天内合并 PR
353

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

fluentcms/FluentCMS 的其他 Issue

查看 fluentcms/FluentCMS 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。