Skip to content

SEP-2640: Skills Extension #1140

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

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions