File tree Expand file tree Collapse file tree 1 file changed +98
-0
lines changed Expand file tree Collapse file tree 1 file changed +98
-0
lines changed Original file line number Diff line number Diff line change 806806 }
807807 }
808808 },
809+ "/jan/v1/mcp" : {
810+ "post" : {
811+ "security" : [
812+ {
813+ "BearerAuth" : []
814+ }
815+ ],
816+ "description" : " Handles Model Context Protocol (MCP) requests over an HTTP stream. The response is sent as a continuous stream of data." ,
817+ "consumes" : [
818+ " application/json"
819+ ],
820+ "produces" : [
821+ " text/event-stream"
822+ ],
823+ "tags" : [
824+ " Jan" ,
825+ " Jan-MCP"
826+ ],
827+ "summary" : " MCP streamable endpoint" ,
828+ "parameters" : [
829+ {
830+ "description" : " MCP request payload" ,
831+ "name" : " request" ,
832+ "in" : " body" ,
833+ "required" : true ,
834+ "schema" : {}
835+ }
836+ ],
837+ "responses" : {
838+ "200" : {
839+ "description" : " Streamed response (SSE or chunked transfer)" ,
840+ "schema" : {
841+ "type" : " string"
842+ }
843+ }
844+ }
845+ }
846+ },
847+ "/jan/v1/models" : {
848+ "get" : {
849+ "security" : [
850+ {
851+ "BearerAuth" : []
852+ }
853+ ],
854+ "description" : " Retrieves a list of available models that can be used for chat completions or other tasks." ,
855+ "consumes" : [
856+ " application/json"
857+ ],
858+ "produces" : [
859+ " application/json"
860+ ],
861+ "tags" : [
862+ " Jan" ,
863+ " Jan-Models"
864+ ],
865+ "summary" : " List available models" ,
866+ "responses" : {
867+ "200" : {
868+ "description" : " Successful response" ,
869+ "schema" : {
870+ "$ref" : " #/definitions/app_interfaces_http_routes_jan_v1.ModelsResponse"
871+ }
872+ }
873+ }
874+ }
875+ },
809876 "/jan/v1/organizations" : {
810877 "get" : {
811878 "security" : [
24412508 }
24422509 },
24432510 "definitions" : {
2511+ "app_interfaces_http_routes_jan_v1.Model" : {
2512+ "type" : " object" ,
2513+ "properties" : {
2514+ "created" : {
2515+ "type" : " integer"
2516+ },
2517+ "id" : {
2518+ "type" : " string"
2519+ },
2520+ "object" : {
2521+ "type" : " string"
2522+ },
2523+ "owned_by" : {
2524+ "type" : " string"
2525+ }
2526+ }
2527+ },
2528+ "app_interfaces_http_routes_jan_v1.ModelsResponse" : {
2529+ "type" : " object" ,
2530+ "properties" : {
2531+ "data" : {
2532+ "type" : " array" ,
2533+ "items" : {
2534+ "$ref" : " #/definitions/app_interfaces_http_routes_jan_v1.Model"
2535+ }
2536+ },
2537+ "object" : {
2538+ "type" : " string"
2539+ }
2540+ }
2541+ },
24442542 "app_interfaces_http_routes_jan_v1_auth.GetMeResponse" : {
24452543 "type" : " object" ,
24462544 "properties" : {
You can’t perform that action at this time.
0 commit comments