modelcontextprotocol / modelcontextprotocol/java-sdk

Publish a `mcp-annotations` module with just annotations for MCP Server primitives annotations.

Open
#491 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
3.7k
Forks
1.1k
Avg merge
1d 15h
Merged PRs (30d)
9

Description

Would you be open to publish a new module mcp-annotations with just a "standard" set of annotations for MCP Server Primitives (@Tool, @ToolArg, @Prompt, ...)?.

Those annotations could be used by frameworks downstream. That way we would avoid having to duplicate these annotations in the different frameworks.

E.g. Quarkus @Tool annotation:

https://github.com/quarkiverse/quarkus-mcp-server/blob/main/core/runtime/src/main/java/io/quarkiverse/mcp/server/Tool.java

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked Quarkus Tool.java annotation example and the java-sdk repository's module layout. Determine the standard annotation set for MCP Server primitives and define the new mcp-annotations module; done means the module is published with the agreed annotations for downstream frameworks to use.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.