Skip to content

SEP-2640: Skills Extension #1140

Open
Open

Description

@uc4w6c

Expected Behavior

The Java SDK should support the SEP-2640 Skills extension, enabling MCP clients to discover and retrieve Agent Skills exposed by MCP servers.

The SDK should provide:

  • Schema types and method constants for skills/list, skills/get, and the optional resources/directory/read.
  • Client APIs to list skills, retrieve a skill entry by its SKILL.md URI, read skill resources, and—when advertised—read directory resources.
  • Stateless server APIs to register skills and expose the required endpoints.
  • Support for io.modelcontextprotocol/skills capability negotiation, including the optional directoryRead setting.

Current Behavior

The SDK does not yet support the SEP-2640 Skills extension.

Context

This change adds support for the SEP-2640 Skills extension to the Java SDK, aligning it with the following implementations in other MCP SDKs:

I implemented this before realizing that non-trivial changes should be discussed with maintainers first. I would appreciate feedback on the proposed scope and API design, and I am happy to revise the implementation accordingly.

Activity

  1. added
    P3
    extensions
    on Sep 23, 2026
  2. Ben-Home commented on Sep 30, 2026

    @Ben-Home
  3. xfdzcoder commented on Nov 13, 2026

    @xfdzcoder

    Could #1214 land as the modern server portion of SEP-2640 once reviewed, with this issue staying open to track Java client support and a decision on the classic server scope in #1141?

    In a local run against #1214 with a build-time Resources dependency check, all 45 Skills conformance checks passed over HTTP. The SDK docs describe using the conformance suite to exercise the server while the modern Java client is pending. Modern server docs

  4. apappascs commented on Nov 29, 2026

    @apappascs

    I have a working SEP-2640 implementation for the modern stack: server, client and the conformance scenarios. No PR is open. The code is on my fork, so you can read and run it first.

    #1214 Add Skills extension (SEP-2640) to the modern server (@tarun-agarwal1044): my server branch keeps your three commits unchanged and adds one commit of mine on top, with a Co-authored-by line (16 files, +3236 -651; 874 of your 1515 added lines are untouched). I changed one thing in the approach: wire types are lenient, so a skill that breaks a SEP rule is left out of skills/list with a warning instead of failing the list.

    # One PR each, stacked Size against the row above
    1 McpFeature.validate(ServerCapabilities), so that Skills can require resources whatever the registration order 6 files, +116 -1
    2 Server on top of #1214: lenient listing, canonical URI comparison, within-root check, docs, conformance server scenarios 16 files, +4110 -10
    3 Client: skills(), skill(uri), skillDirectory(uri), skillFile(skill, uri). A file is checked against the manifest (membership, size, SHA-256, frontmatter) before it is returned; nothing is sent to a server that did not advertise the extension 26 files, +4053 -16

    Evidence (run on my machine at commit 9bda4d89, the head of pr/skills-client)

    AI assistance. I wrote this with an AI coding agent (Claude Code). I reviewed all of it, I post by hand and I am accountable for it (CONTRIBUTING, AI agents). One earlier commit of mine is on main (c2ece20c, January 2025). AGENTS.md asks for more than three merged PRs, so this comment carries the disclosure line it requires. If that rules out a contribution from me, say so and it stays on my fork. I will open PRs only if this issue is assigned to me or marked help wanted.

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

    P3extensions

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions