You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/kotlin-sdk.api
+48-56
Original file line number
Diff line number
Diff line change
@@ -2689,17 +2689,18 @@ public final class io/modelcontextprotocol/kotlin/sdk/client/ClientOptions : io/
2689
2689
public final fun getCapabilities ()Lio/modelcontextprotocol/kotlin/sdk/ClientCapabilities;
2690
2690
}
2691
2691
2692
-
public final class io/modelcontextprotocol/kotlin/sdk/client/SSEClientTransport : io/modelcontextprotocol/kotlin/sdk/shared/Transport {
2692
+
public final class io/modelcontextprotocol/kotlin/sdk/client/KtorClientKt {
2693
+
public static final fun mcpSse-BZiP2OM (Lio/ktor/client/HttpClient;Ljava/lang/String;Lkotlin/time/Duration;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2694
+
public static synthetic fun mcpSse-BZiP2OM$default (Lio/ktor/client/HttpClient;Ljava/lang/String;Lkotlin/time/Duration;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
2695
+
public static final fun mcpSseTransport-5_5nbZA (Lio/ktor/client/HttpClient;Ljava/lang/String;Lkotlin/time/Duration;Lkotlin/jvm/functions/Function1;)Lio/modelcontextprotocol/kotlin/sdk/client/SseClientTransport;
2696
+
public static synthetic fun mcpSseTransport-5_5nbZA$default (Lio/ktor/client/HttpClient;Ljava/lang/String;Lkotlin/time/Duration;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lio/modelcontextprotocol/kotlin/sdk/client/SseClientTransport;
2697
+
}
2698
+
2699
+
public final class io/modelcontextprotocol/kotlin/sdk/client/SseClientTransport : io/modelcontextprotocol/kotlin/sdk/shared/AbstractTransport {
2693
2700
public synthetic fun <init> (Lio/ktor/client/HttpClient;Ljava/lang/String;Lkotlin/time/Duration;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
2694
2701
public synthetic fun <init> (Lio/ktor/client/HttpClient;Ljava/lang/String;Lkotlin/time/Duration;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2695
2702
public fun close (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2696
-
public fun getOnClose ()Lkotlin/jvm/functions/Function0;
2697
-
public fun getOnError ()Lkotlin/jvm/functions/Function1;
2698
-
public fun getOnMessage ()Lkotlin/jvm/functions/Function2;
2699
2703
public fun send (Lio/modelcontextprotocol/kotlin/sdk/JSONRPCMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2700
-
public fun setOnClose (Lkotlin/jvm/functions/Function0;)V
2701
-
public fun setOnError (Lkotlin/jvm/functions/Function1;)V
2702
-
public fun setOnMessage (Lkotlin/jvm/functions/Function2;)V
2703
2704
public fun start (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2704
2705
}
2705
2706
@@ -2710,16 +2711,10 @@ public final class io/modelcontextprotocol/kotlin/sdk/client/Sse_ktorKt {
2710
2711
public static synthetic fun mcpSseTransport-5_5nbZA$default (Lio/ktor/client/HttpClient;Ljava/lang/String;Lkotlin/time/Duration;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lio/modelcontextprotocol/kotlin/sdk/client/SSEClientTransport;
2711
2712
}
2712
2713
2713
-
public final class io/modelcontextprotocol/kotlin/sdk/client/StdioClientTransport : io/modelcontextprotocol/kotlin/sdk/shared/Transport {
2714
+
public final class io/modelcontextprotocol/kotlin/sdk/client/StdioClientTransport : io/modelcontextprotocol/kotlin/sdk/shared/AbstractTransport {
2714
2715
public fun <init> (Lkotlinx/io/Source;Lkotlinx/io/Sink;)V
2715
2716
public fun close (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2716
-
public fun getOnClose ()Lkotlin/jvm/functions/Function0;
2717
-
public fun getOnError ()Lkotlin/jvm/functions/Function1;
2718
-
public fun getOnMessage ()Lkotlin/jvm/functions/Function2;
2719
2717
public fun send (Lio/modelcontextprotocol/kotlin/sdk/JSONRPCMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2720
-
public fun setOnClose (Lkotlin/jvm/functions/Function0;)V
2721
-
public fun setOnError (Lkotlin/jvm/functions/Function1;)V
2722
-
public fun setOnMessage (Lkotlin/jvm/functions/Function2;)V
2723
2718
public fun start (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2724
2719
}
2725
2720
@@ -2735,6 +2730,13 @@ public final class io/modelcontextprotocol/kotlin/sdk/client/WebSocketMcpKtorCli
2735
2730
public static synthetic fun mcpWebSocketTransport$default (Lio/ktor/client/HttpClient;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lio/modelcontextprotocol/kotlin/sdk/client/WebSocketClientTransport;
2736
2731
}
2737
2732
2733
+
public final class io/modelcontextprotocol/kotlin/sdk/server/KtorServerKt {
2734
+
public static final fun MCP (Lio/ktor/server/application/Application;Lkotlin/jvm/functions/Function0;)V
2735
+
public static final fun mcp (Lio/ktor/server/application/Application;Lkotlin/jvm/functions/Function0;)V
2736
+
public static final fun mcp (Lio/ktor/server/routing/Routing;Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
2737
+
public static final fun mcp (Lio/ktor/server/routing/Routing;Lkotlin/jvm/functions/Function0;)V
2738
+
}
2739
+
2738
2740
public final class io/modelcontextprotocol/kotlin/sdk/server/McpKtorServerPluginKt {
2739
2741
public static final fun MCP (Lio/ktor/server/application/Application;Lkotlin/jvm/functions/Function0;)V
2740
2742
}
@@ -2778,25 +2780,8 @@ public final class io/modelcontextprotocol/kotlin/sdk/server/RegisteredTool {
2778
2780
public fun toString ()Ljava/lang/String;
2779
2781
}
2780
2782
2781
-
public final class io/modelcontextprotocol/kotlin/sdk/server/SSEServerTransport : io/modelcontextprotocol/kotlin/sdk/shared/Transport {
2782
-
public fun <init> (Ljava/lang/String;Lio/ktor/server/sse/ServerSSESession;)V
2783
-
public fun close (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2784
-
public fun getOnClose ()Lkotlin/jvm/functions/Function0;
2785
-
public fun getOnError ()Lkotlin/jvm/functions/Function1;
2786
-
public fun getOnMessage ()Lkotlin/jvm/functions/Function2;
2787
-
public final fun getSessionId ()Ljava/lang/String;
2788
-
public final fun handleMessage (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2789
-
public final fun handlePostMessage (Lio/ktor/server/application/ApplicationCall;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2790
-
public fun send (Lio/modelcontextprotocol/kotlin/sdk/JSONRPCMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2791
-
public fun setOnClose (Lkotlin/jvm/functions/Function0;)V
2792
-
public fun setOnError (Lkotlin/jvm/functions/Function1;)V
2793
-
public fun setOnMessage (Lkotlin/jvm/functions/Function2;)V
2794
-
public fun start (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2795
-
}
2796
-
2797
2783
public class io/modelcontextprotocol/kotlin/sdk/server/Server : io/modelcontextprotocol/kotlin/sdk/shared/Protocol {
2798
-
public fun <init> (Lio/modelcontextprotocol/kotlin/sdk/Implementation;Lio/modelcontextprotocol/kotlin/sdk/server/ServerOptions;Lkotlin/jvm/functions/Function0;)V
2799
-
public synthetic fun <init> (Lio/modelcontextprotocol/kotlin/sdk/Implementation;Lio/modelcontextprotocol/kotlin/sdk/server/ServerOptions;Lkotlin/jvm/functions/Function0;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
2784
+
public fun <init> (Lio/modelcontextprotocol/kotlin/sdk/Implementation;Lio/modelcontextprotocol/kotlin/sdk/server/ServerOptions;)V
2800
2785
public final fun addPrompt (Lio/modelcontextprotocol/kotlin/sdk/Prompt;Lkotlin/jvm/functions/Function2;)V
2801
2786
public final fun addPrompt (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Lkotlin/jvm/functions/Function2;)V
2802
2787
public static synthetic fun addPrompt$default (Lio/modelcontextprotocol/kotlin/sdk/server/Server;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
@@ -2814,19 +2799,17 @@ public class io/modelcontextprotocol/kotlin/sdk/server/Server : io/modelcontextp
2814
2799
public static synthetic fun createMessage$default (Lio/modelcontextprotocol/kotlin/sdk/server/Server;Lio/modelcontextprotocol/kotlin/sdk/CreateMessageRequest;Lio/modelcontextprotocol/kotlin/sdk/shared/RequestOptions;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
2815
2800
public final fun getClientCapabilities ()Lio/modelcontextprotocol/kotlin/sdk/ClientCapabilities;
2816
2801
public final fun getClientVersion ()Lio/modelcontextprotocol/kotlin/sdk/Implementation;
2817
-
public final fun getOnCloseCallback ()Lkotlin/jvm/functions/Function0;
2818
-
public final fun getOnInitialized ()Lkotlin/jvm/functions/Function0;
2819
2802
public final fun listRoots (Lkotlinx/serialization/json/JsonObject;Lio/modelcontextprotocol/kotlin/sdk/shared/RequestOptions;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2820
2803
public static synthetic fun listRoots$default (Lio/modelcontextprotocol/kotlin/sdk/server/Server;Lkotlinx/serialization/json/JsonObject;Lio/modelcontextprotocol/kotlin/sdk/shared/RequestOptions;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
2821
2804
public fun onClose ()V
2805
+
public final fun onClose (Lkotlin/jvm/functions/Function0;)V
2806
+
public final fun onInitalized (Lkotlin/jvm/functions/Function0;)V
2822
2807
public final fun ping (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2823
2808
public final fun sendLoggingMessage (Lio/modelcontextprotocol/kotlin/sdk/LoggingMessageNotification;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2824
2809
public final fun sendPromptListChanged (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2825
2810
public final fun sendResourceListChanged (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2826
2811
public final fun sendResourceUpdated (Lio/modelcontextprotocol/kotlin/sdk/ResourceUpdatedNotification;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2827
2812
public final fun sendToolListChanged (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2828
-
public final fun setOnCloseCallback (Lkotlin/jvm/functions/Function0;)V
2829
-
public final fun setOnInitialized (Lkotlin/jvm/functions/Function0;)V
2830
2813
}
2831
2814
2832
2815
public final class io/modelcontextprotocol/kotlin/sdk/server/ServerOptions : io/modelcontextprotocol/kotlin/sdk/shared/ProtocolOptions {
@@ -2835,16 +2818,20 @@ public final class io/modelcontextprotocol/kotlin/sdk/server/ServerOptions : io/
2835
2818
public final fun getCapabilities ()Lio/modelcontextprotocol/kotlin/sdk/ServerCapabilities;
2836
2819
}
2837
2820
2838
-
public final class io/modelcontextprotocol/kotlin/sdk/server/StdioServerTransport : io/modelcontextprotocol/kotlin/sdk/shared/Transport {
2821
+
public final class io/modelcontextprotocol/kotlin/sdk/server/SseServerTransport : io/modelcontextprotocol/kotlin/sdk/shared/AbstractTransport {
2822
+
public fun <init> (Ljava/lang/String;Lio/ktor/server/sse/ServerSSESession;)V
2823
+
public fun close (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2824
+
public final fun getSessionId ()Ljava/lang/String;
2825
+
public final fun handleMessage (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2826
+
public final fun handlePostMessage (Lio/ktor/server/application/ApplicationCall;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2827
+
public fun send (Lio/modelcontextprotocol/kotlin/sdk/JSONRPCMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2828
+
public fun start (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2829
+
}
2830
+
2831
+
public final class io/modelcontextprotocol/kotlin/sdk/server/StdioServerTransport : io/modelcontextprotocol/kotlin/sdk/shared/AbstractTransport {
2839
2832
public fun <init> (Lkotlinx/io/Source;Lkotlinx/io/Sink;)V
2840
2833
public fun close (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2841
-
public fun getOnClose ()Lkotlin/jvm/functions/Function0;
2842
-
public fun getOnError ()Lkotlin/jvm/functions/Function1;
2843
-
public fun getOnMessage ()Lkotlin/jvm/functions/Function2;
2844
2834
public fun send (Lio/modelcontextprotocol/kotlin/sdk/JSONRPCMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2845
-
public fun setOnClose (Lkotlin/jvm/functions/Function0;)V
2846
-
public fun setOnError (Lkotlin/jvm/functions/Function1;)V
2847
-
public fun setOnMessage (Lkotlin/jvm/functions/Function2;)V
2848
2835
public fun start (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2849
2836
}
2850
2837
@@ -2864,6 +2851,16 @@ public final class io/modelcontextprotocol/kotlin/sdk/server/WebSocketMcpServerT
2864
2851
public synthetic fun getSession ()Lio/ktor/websocket/WebSocketSession;
2865
2852
}
2866
2853
2854
+
public abstract class io/modelcontextprotocol/kotlin/sdk/shared/AbstractTransport : io/modelcontextprotocol/kotlin/sdk/shared/Transport {
2855
+
public fun <init> ()V
2856
+
protected final fun get_onClose ()Lkotlin/jvm/functions/Function0;
2857
+
protected final fun get_onError ()Lkotlin/jvm/functions/Function1;
2858
+
protected final fun get_onMessage ()Lkotlin/jvm/functions/Function2;
2859
+
public fun onClose (Lkotlin/jvm/functions/Function0;)V
2860
+
public fun onError (Lkotlin/jvm/functions/Function1;)V
2861
+
public fun onMessage (Lkotlin/jvm/functions/Function2;)V
2862
+
}
2863
+
2867
2864
public abstract class io/modelcontextprotocol/kotlin/sdk/shared/Protocol {
2868
2865
public fun <init> (Lio/modelcontextprotocol/kotlin/sdk/shared/ProtocolOptions;)V
2869
2866
protected abstract fun assertCapabilityForMethod (Lio/modelcontextprotocol/kotlin/sdk/Method;)V
@@ -2933,28 +2930,23 @@ public final class io/modelcontextprotocol/kotlin/sdk/shared/RequestOptions {
2933
2930
2934
2931
public abstract interface class io/modelcontextprotocol/kotlin/sdk/shared/Transport {
2935
2932
public abstract fun close (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2936
-
public abstract fun getOnClose ()Lkotlin/jvm/functions/Function0;
2937
-
public abstract fun getOnError ()Lkotlin/jvm/functions/Function1;
2938
-
public abstract fun getOnMessage ()Lkotlin/jvm/functions/Function2;
2933
+
public abstract fun onClose (Lkotlin/jvm/functions/Function0;)V
2934
+
public abstract fun onError (Lkotlin/jvm/functions/Function1;)V
2935
+
public abstract fun onMessage (Lkotlin/jvm/functions/Function2;)V
2939
2936
public abstract fun send (Lio/modelcontextprotocol/kotlin/sdk/JSONRPCMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2940
-
public abstract fun setOnClose (Lkotlin/jvm/functions/Function0;)V
2941
-
public abstract fun setOnError (Lkotlin/jvm/functions/Function1;)V
2942
-
public abstract fun setOnMessage (Lkotlin/jvm/functions/Function2;)V
2943
2937
public abstract fun start (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2944
2938
}
2945
2939
2946
-
public abstract class io/modelcontextprotocol/kotlin/sdk/shared/WebSocketMcpTransport : io/modelcontextprotocol/kotlin/sdk/shared/Transport {
2940
+
public abstract class io/modelcontextprotocol/kotlin/sdk/shared/WebSocketMcpTransport : io/modelcontextprotocol/kotlin/sdk/shared/AbstractTransport {
2947
2941
public fun <init> ()V
2948
2942
public fun close (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2949
-
public fun getOnClose ()Lkotlin/jvm/functions/Function0;
2950
-
public fun getOnError ()Lkotlin/jvm/functions/Function1;
2951
-
public fun getOnMessage ()Lkotlin/jvm/functions/Function2;
2952
2943
protected abstract fun getSession ()Lio/ktor/websocket/WebSocketSession;
2953
2944
protected abstract fun initializeSession (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2954
2945
public fun send (Lio/modelcontextprotocol/kotlin/sdk/JSONRPCMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2955
-
public fun setOnClose (Lkotlin/jvm/functions/Function0;)V
2956
-
public fun setOnError (Lkotlin/jvm/functions/Function1;)V
2957
-
public fun setOnMessage (Lkotlin/jvm/functions/Function2;)V
2958
2946
public fun start (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2959
2947
}
2960
2948
2949
+
public final class org/jetbrains/kotlinx/mcp/LibVersionKt {
2950
+
public static final field LIB_VERSION Ljava/lang/String;
0 commit comments