Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

add first-class support for skills extension in McpServer

Đang mở
#10,016 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@effect-bot đang làm issue này rồi.

Từ ngày 27/10/2026.

  • #10082 của @typedrat — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement
What is the problem this feature would solve?

Effect McpServers can publish tools, prompts, and resources, but authors have no dedicated API for publishing Agent Skills. Registering a SKILL.md resource alone does not provide skill discovery, metadata lookup, or a complete file manifest.

Mcp spec already has an extension for this: SEP-2640 which is Final. Implementation should target the maintained Skills extension specification.

What is the feature you are proposing to solve the problem?

Add a skill definition and registration API alongside McpServer.resource. Skills would have dedicated discovery through skills/list and skills/get, while their instructions and supporting files continue to use resources/read.

The API should derive frontmatter, file sizes, and SHA-256 digests from the same immutable content served to clients. Server authors should not need to calculate manifests or register discovery handlers themselves.

Proposed API:

const RefundsSkill = McpServer.skill({
  uri: "skill://billing/refunds/SKILL.md",
  frontmatter: {
    name: "refunds",
    description: "Process refunds using the billing tools"
  },
  instructions: String.stripMargin(`
      |Read references/policy.md before issuing a refund.
      |Use the billing tools to inspect the payment and submit the refund.
    `),
  files: {
    "references/policy.md": {
      mimeType: "text/markdown",
      content: "Refunds above CHF 500 require manager approval.\n"
    }
  }
})

const McpLive = Layer.mergeAll(
  RefundsSkill,
  // PolicyResource
).pipe(
  Layer.provide(
    McpServer.layerHttp({
      name: "billing",
      version: "1.0.0",
      path: "/mcp",
      protocols: [McpProtocol.v2026_07_28]
    })
  )
)

McpServer.skill would return a composable registration Layer, suitable for combining with existing tool, prompt, and resource registrations. There can then be sensible fallbacks to use this as a resource when capability of the client is missing or the protocol version is mismatched for extensions

What alternatives have you considered?

with a lot of the extensions (like Task) there are new rpc routes to handle so the only other way would be to allow some sort of hook into what routes can be defined so the author of the server can define the extension spec themselves.

This build on learnings and experiments from #8631

Ngôn ngữ chính
TypeScript
Star
16.7k
Fork
808
Merge trung bình
11 giờ 11 phút
Pull request đã merge (30 ngày)
840

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Effect-TS/effect

Tất cả issue của Effect-TS/effect

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.