Constant Field Values

Contents

io.micronaut.*

  • io.micronaut.mcp.annotations.Prompt
    Modifier and Type
    Constant Field
    Value
    public static final String
    "<<element name>>"
  • io.micronaut.mcp.annotations.PromptArg
    Modifier and Type
    Constant Field
    Value
    public static final String
    "<<element name>>"
  • io.micronaut.mcp.annotations.Resource
    Modifier and Type
    Constant Field
    Value
    public static final String
    "text/plain"
    public static final String
    "<<element name>>"
  • io.micronaut.mcp.annotations.Tool
    Modifier and Type
    Constant Field
    Value
    public static final String
    "<<element name>>"
  • io.micronaut.mcp.annotations.ToolArg
    Modifier and Type
    Constant Field
    Value
    public static final String
    "<<element name>>"
  • io.micronaut.mcp.server.registry.PromptRegistry
    Modifier and Type
    Constant Field
    Value
    protected static final String
    KEY_TYPE
    "type"
    public static final String
    "description"
    public static final String
    "name"
    public static final String
    "title"
  • io.micronaut.mcp.server.registry.ResourceRegistry
    Modifier and Type
    Constant Field
    Value
    protected static final String
    KEY_TYPE
    "type"
    protected static final String
    MEMBER_DESCRIPTION
    "description"
  • io.micronaut.mcp.server.registry.ToolRegistry
    Modifier and Type
    Constant Field
    Value
    protected static final String
    KEY_TYPE
    "type"
    protected static final String
    MEMBER_DESCRIPTION
    "description"

io.modelcontextprotocol.*

  • io.modelcontextprotocol.server.http.tck.PingTest
    Modifier and Type
    Constant Field
    Value
    public static final String
    "{\"jsonrpc\":\"2.0\",\"method\":\"ping\",\"id\":123}"
    public static final String
    "{\"jsonrpc\":\"2.0\",\"result\":{},\"id\":123}"
  • io.modelcontextprotocol.server.http.tck.PromptsGetTest
    Modifier and Type
    Constant Field
    Value
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 2,\n \"method\": \"prompts/get\",\n \"params\": {\n \"name\": \"code_review\",\n \"arguments\": {\n \"code\": \"def hello():\\n print(\'world\')\"\n }\n }\n}"
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 2,\n \"result\": {\n \"description\": \"Code review prompt\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": {\n \"type\": \"text\",\n \"text\": \"Please review this Python code\"\n }\n }\n ]\n }\n}"
  • io.modelcontextprotocol.server.http.tck.PromptsListTest
    Modifier and Type
    Constant Field
    Value
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 1,\n \"method\": \"prompts/list\"\n}"
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 1,\n \"result\": {\n \"prompts\": [\n {\n \"name\": \"code_review\",\n \"title\": \"Request Code Review\",\n \"description\": \"Asks the LLM to analyze code quality and suggest improvements\",\n \"arguments\": [\n {\n \"name\": \"code\",\n \"description\": \"The code to review\",\n \"required\": true\n }\n ]\n }\n ]\n }\n }"
  • io.modelcontextprotocol.server.http.tck.ResourcesGetTest
    Modifier and Type
    Constant Field
    Value
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 2,\n \"method\": \"resources/read\",\n \"params\": {\n \"uri\": \"file:///project/src/main.rs\"\n }\n}"
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 2,\n \"result\": {\n \"contents\": [\n {\n \"uri\": \"file:///project/src/main.rs\",\n //\"name\": \"main.rs\",\n //\"title\": \"Rust Software Application Main File\",\n \"mimeType\": \"text/x-rust\",\n \"text\": \"fn main() {\\n println!(\\\"Hello world!\\\");\\n}\"\n }\n ]\n }\n}"
  • io.modelcontextprotocol.server.http.tck.ResourcesListTest
    Modifier and Type
    Constant Field
    Value
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 1,\n \"method\": \"resources/list\"\n}"
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 1,\n \"result\": {\n \"resources\": [\n {\n \"uri\": \"file:///project/src/main.rs\",\n \"name\": \"main.rs\",\n \"title\": \"Rust Software Application Main File\",\n \"description\": \"Primary application entry point\",\n \"mimeType\": \"text/x-rust\"\n }\n ]\n }\n}"
  • io.modelcontextprotocol.server.http.tck.ToolsCallTest
    Modifier and Type
    Constant Field
    Value
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 2,\n \"method\": \"tools/call\",\n \"params\": {\n \"name\": \"get_weather\",\n \"arguments\": {\n \"location\": \"New York\"\n }\n }\n}"
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 2,\n \"result\": {\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"Sunny\"\n }\n ],\n \"isError\": false\n }\n}"
  • io.modelcontextprotocol.server.http.tck.ToolsTest
    Modifier and Type
    Constant Field
    Value
    public static final String
    "{\"jsonrpc\":\"2.0\",\"method\":\"tools/list\",\"id\":123}"
    public static final String
    "{\n \"jsonrpc\": \"2.0\",\n \"id\": 123,\n \"result\": {\n \"tools\": [\n {\n \"name\": \"get_weather\",\n \"title\": \"Weather Information Provider\",\n \"description\": \"Get current weather information for a location\",\n \"inputSchema\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"City name or zip code\"\n }\n },\n \"required\": [\"location\"]\n }\n }\n ]\n }\n}"