Skip to content

缺少 MCP Resource 导致额外的 read_mcp_resource 调用 #32

Description

@dingyufei615
Image

在会话触发后,工具首次调用的是 nocturne_memory.read_mcp_resource() ,但当前项目并没有实现MCP system resources的支持,导致额外多了这一次的噪音请求,第二次走了这个 read_memory(...) 主入口,让整个流程又回归正常。
所以目前解决办法有两种:

  1. 在System提示词中强调优先使用 read_memory,而不是 read_mcp_resource 。
  2. 服务端实现 Resources 兼容层,例如 新增只读 resources:
    • system://boot
    • system://index
    • system://recent
    • system://glossary
      继续保持 read_memory(...) 作为主入口

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions