-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1492 lines (1419 loc) · 42.5 KB
/
Copy pathopenapi.yaml
File metadata and controls
1492 lines (1419 loc) · 42.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.1.0
info:
title: MCP TypeScript Simple API
version: 1.0.0
description: |
Production-ready Model Context Protocol (MCP) server with OAuth 2.0 authentication,
Dynamic Client Registration (RFC 7591), and multi-LLM integration.
## Features
- **Dual-mode operation**: STDIO (traditional) + Streamable HTTP with OAuth
- **Multi-LLM integration**: Claude, OpenAI, and Gemini with type-safe provider selection
- **OAuth Dynamic Client Registration (DCR)**: RFC 7591 compliant automatic client registration
- **Comprehensive discovery**: RFC 8414, RFC 9728, and OpenID Connect metadata
- **OpenTelemetry observability**: Structured logging, metrics, and tracing
## Authentication
This API uses OAuth 2.0 for authentication. Use the `/auth/{provider}/authorize` endpoint
to initiate the OAuth flow, then use the returned access token with Bearer authentication
for subsequent requests.
## MCP Protocol
The main MCP endpoint (`/mcp`) implements JSON-RPC 2.0 over Streamable HTTP transport.
All tool invocations use the JSON-RPC format with `method: tools/call`.
contact:
name: Jeff Dutton
url: https://github.com/jdutton/mcp-typescript-simple
servers:
- url: http://localhost:3000
description: Local development server
- url: https://mcp-typescript-simple.vercel.app
description: Production server (Vercel)
- url: https://{preview-id}.vercel.app
description: Preview deployment (Vercel)
variables:
preview-id:
default: preview
description: Vercel preview deployment ID
tags:
- name: Health & Status
description: Health checks and system status endpoints
- name: MCP Protocol
description: Model Context Protocol JSON-RPC endpoints
- name: OAuth Authentication
description: OAuth 2.0 authentication and authorization
- name: OAuth Discovery
description: OAuth metadata discovery endpoints (RFC 8414, 9728, OpenID Connect)
- name: Dynamic Client Registration
description: OAuth 2.0 Dynamic Client Registration (RFC 7591/7592)
- name: Admin & Monitoring
description: Administrative and monitoring endpoints
- name: Debug
description: Debug and troubleshooting endpoints
security:
- BearerAuth: []
- OAuth2: []
paths:
/health:
get:
tags:
- Health & Status
summary: Health check
description: Returns server health status, OAuth provider information, and available LLM providers
operationId: getHealth
security: []
responses:
'200':
description: Server is healthy
content:
application/json:
schema:
$ref: '#/components/schemas/HealthResponse'
examples:
healthy:
summary: Healthy server with OAuth
value:
status: "healthy"
version: "1.0.0"
environment: "development"
oauth:
enabled: true
provider: "google"
endpoints:
authorize: "/auth/google/authorize"
callback: "/auth/google/callback"
token: "/token"
logout: "/auth/google/logout"
llm:
providers: ["claude", "openai", "gemini"]
defaultProvider: "claude"
timestamp: "2025-09-30T14:00:00.000Z"
/mcp:
get:
tags:
- MCP Protocol
summary: Establish MCP connection
description: Establishes a Streamable HTTP connection for MCP protocol communication
operationId: establishMcpConnection
responses:
'200':
description: MCP connection established
content:
text/event-stream:
schema:
type: string
format: binary
description: Server-Sent Events stream for MCP messages
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
post:
tags:
- MCP Protocol
summary: Send MCP JSON-RPC request
description: |
Send JSON-RPC 2.0 requests to invoke MCP tools or call protocol methods.
## Available Tools
- `hello` - Greet users by name
- `echo` - Echo back messages
- `current-time` - Get current timestamp
- `chat` - Interactive AI assistant (requires LLM provider)
- `analyze` - Deep text analysis with AI (requires LLM provider)
- `summarize` - Text summarization (requires LLM provider)
- `explain` - Educational explanations (requires LLM provider)
## Protocol Methods
- `initialize` - Initialize MCP session
- `tools/list` - List available tools
- `tools/call` - Invoke a specific tool
operationId: sendMcpRequest
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcRequest'
examples:
listTools:
summary: List available tools
value:
jsonrpc: "2.0"
id: 1
method: "tools/list"
callHello:
summary: Call hello tool
value:
jsonrpc: "2.0"
id: 2
method: "tools/call"
params:
name: "hello"
arguments:
name: "Alice"
callSummarize:
summary: Call summarize tool with Gemini
value:
jsonrpc: "2.0"
id: 3
method: "tools/call"
params:
name: "summarize"
arguments:
text: "Long text to summarize..."
length: "brief"
provider: "gemini"
responses:
'200':
description: JSON-RPC response
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcResponse'
examples:
toolsList:
summary: Tools list response
value:
jsonrpc: "2.0"
id: 1
result:
tools:
- name: "hello"
description: "Say hello to someone"
inputSchema:
type: "object"
properties:
name:
type: "string"
description: "The name of the person to greet"
required: ["name"]
helloResponse:
summary: Hello tool response
value:
jsonrpc: "2.0"
id: 2
result:
content:
- type: "text"
text: "Hello, Alice! 👋"
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
delete:
tags:
- MCP Protocol
summary: Close MCP connection
description: Closes the active MCP connection and cleans up session
operationId: closeMcpConnection
responses:
'200':
description: Connection closed successfully
'401':
$ref: '#/components/responses/Unauthorized'
/auth:
get:
tags:
- OAuth Authentication
summary: Get OAuth provider information
description: Returns information about the configured OAuth provider
operationId: getAuthInfo
security: []
responses:
'200':
description: OAuth provider information
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthProviderInfo'
/auth/login:
get:
tags:
- OAuth Authentication
summary: Provider selection page
description: |
Displays HTML page with available OAuth providers for user selection.
Used when multiple OAuth providers are configured (Google, GitHub, Microsoft).
If only one provider is configured, automatically redirects to that provider.
operationId: oauthLogin
security: []
parameters:
- name: state
in: query
schema:
type: string
description: OAuth client state parameter (preserved through provider selection)
- name: redirect_uri
in: query
schema:
type: string
format: uri
description: OAuth client redirect URI (preserved through provider selection)
responses:
'200':
description: HTML provider selection page
content:
text/html:
schema:
type: string
'302':
description: Redirect to single provider (when only one provider configured)
'500':
$ref: '#/components/responses/InternalServerError'
/auth/authorize:
get:
tags:
- OAuth Authentication
summary: Generic OAuth authorization endpoint
description: |
Generic OAuth 2.0 authorization endpoint that redirects to provider selection.
Compatible with standard OAuth 2.0 clients that use `/authorize` endpoint.
Redirects to `/auth/login` for provider selection.
operationId: genericAuthorize
security: []
parameters:
- name: response_type
in: query
schema:
type: string
enum: [code]
description: OAuth response type (always 'code')
- name: client_id
in: query
schema:
type: string
description: OAuth client ID
- name: redirect_uri
in: query
schema:
type: string
format: uri
description: OAuth client redirect URI
- name: state
in: query
schema:
type: string
description: OAuth client state parameter
- name: scope
in: query
schema:
type: string
description: Requested OAuth scopes
- name: code_challenge
in: query
schema:
type: string
description: PKCE code challenge
- name: code_challenge_method
in: query
schema:
type: string
enum: [S256]
description: PKCE challenge method
responses:
'302':
description: Redirect to provider selection or single provider
'400':
$ref: '#/components/responses/BadRequest'
'500':
$ref: '#/components/responses/InternalServerError'
/auth/{provider}/authorize:
get:
tags:
- OAuth Authentication
summary: Initiate OAuth authorization
description: |
Redirects to the OAuth provider's authorization page to begin the OAuth flow.
Supports PKCE (RFC 7636) for public clients.
## Query Parameters for OAuth Clients (Claude Code, MCP Inspector)
- `redirect_uri` - Client's callback URI
- `state` - Client's CSRF protection state
- `code_challenge` - PKCE code challenge (S256)
- `code_challenge_method` - PKCE challenge method (S256)
operationId: authorizeOAuth
security: []
parameters:
- name: provider
in: path
required: true
schema:
type: string
enum: [google, github, microsoft]
description: OAuth provider name
- name: redirect_uri
in: query
schema:
type: string
format: uri
description: OAuth client redirect URI (for managed OAuth clients)
- name: state
in: query
schema:
type: string
description: OAuth client state parameter (for CSRF protection)
- name: code_challenge
in: query
schema:
type: string
description: PKCE code challenge (S256)
- name: code_challenge_method
in: query
schema:
type: string
enum: [S256]
description: PKCE code challenge method
responses:
'302':
description: Redirect to OAuth provider authorization page
'400':
$ref: '#/components/responses/BadRequest'
'500':
$ref: '#/components/responses/InternalServerError'
/auth/{provider}/callback:
get:
tags:
- OAuth Authentication
summary: OAuth callback handler
description: Handles OAuth provider callback with authorization code
operationId: handleOAuthCallback
security: []
parameters:
- name: provider
in: path
required: true
schema:
type: string
enum: [google, github, microsoft]
- name: code
in: query
required: true
schema:
type: string
description: Authorization code from OAuth provider
- name: state
in: query
required: true
schema:
type: string
description: State parameter for CSRF protection
responses:
'302':
description: Redirect to client or success page
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
/auth/token:
post:
tags:
- OAuth Authentication
summary: Token endpoint
description: |
Universal OAuth 2.0 token endpoint supporting:
- Authorization code exchange (grant_type=authorization_code)
- Refresh token flow (grant_type=refresh_token)
Implements RFC 6749 and RFC 7636 (PKCE).
operationId: exchangeToken
security: []
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/TokenRequest'
examples:
authorizationCode:
summary: Exchange authorization code
value:
grant_type: "authorization_code"
code: "SplxlOBeZQQYbYS6WxSbIA"
redirect_uri: "http://localhost:6274/callback"
code_verifier: "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
client_id: "client-id-123"
refreshToken:
summary: Refresh access token
value:
grant_type: "refresh_token"
refresh_token: "8xLOxBtZp8"
client_id: "client-id-123"
responses:
'200':
description: Token exchange successful
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
examples:
success:
value:
access_token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
token_type: "Bearer"
expires_in: 3600
refresh_token: "8xLOxBtZp8"
scope: "openid profile email"
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
/auth/revoke:
post:
tags:
- OAuth Authentication
summary: Token revocation endpoint
description: |
Universal OAuth 2.0 token revocation endpoint per RFC 7009.
Revokes access tokens or refresh tokens from any configured OAuth provider.
The endpoint automatically detects which provider issued the token and routes
the revocation request accordingly.
**Important**: Per RFC 7009 Section 2.2, this endpoint returns HTTP 200 even
if the token is invalid, expired, or already revoked. This prevents token
scanning attacks.
## Supported token_type_hint values
- `access_token` - Hint that the token is an access token
- `refresh_token` - Hint that the token is a refresh token
operationId: revokeToken
security: []
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- token
properties:
token:
type: string
description: The token to revoke (access token or refresh token)
example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
token_type_hint:
type: string
description: Hint about the type of token being revoked
enum: [access_token, refresh_token]
example: "access_token"
examples:
revokeAccessToken:
summary: Revoke access token
value:
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
token_type_hint: "access_token"
revokeRefreshToken:
summary: Revoke refresh token
value:
token: "8xLOxBtZp8"
token_type_hint: "refresh_token"
responses:
'200':
description: |
Token revocation successful or token was already invalid.
Per RFC 7009, returns 200 even if token was invalid/expired.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
examples:
success:
value:
success: true
'400':
description: Invalid request (missing token parameter)
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: "invalid_request"
error_description:
type: string
example: "Missing or invalid token parameter"
'500':
$ref: '#/components/responses/InternalServerError'
/auth/{provider}/logout:
post:
tags:
- OAuth Authentication
summary: User logout
description: Revokes OAuth tokens and ends user session
operationId: logoutUser
parameters:
- name: provider
in: path
required: true
schema:
type: string
enum: [google, github, microsoft]
responses:
'200':
description: Logout successful
'401':
$ref: '#/components/responses/Unauthorized'
/.well-known/oauth-authorization-server:
get:
tags:
- OAuth Discovery
summary: OAuth Authorization Server Metadata
description: |
Returns OAuth 2.0 Authorization Server Metadata per RFC 8414.
Used by OAuth clients to discover endpoint URLs and capabilities.
operationId: getAuthServerMetadata
security: []
responses:
'200':
description: Authorization server metadata
content:
application/json:
schema:
$ref: '#/components/schemas/AuthServerMetadata'
/.well-known/oauth-protected-resource:
get:
tags:
- OAuth Discovery
summary: OAuth Protected Resource Metadata
description: |
Returns OAuth 2.0 Protected Resource Metadata per RFC 9728.
Used by clients to discover resource server capabilities.
operationId: getProtectedResourceMetadata
security: []
responses:
'200':
description: Protected resource metadata
content:
application/json:
schema:
$ref: '#/components/schemas/ProtectedResourceMetadata'
/.well-known/oauth-protected-resource/mcp:
get:
tags:
- OAuth Discovery
summary: MCP-specific OAuth metadata
description: Returns MCP-specific OAuth protected resource metadata
operationId: getMcpResourceMetadata
security: []
responses:
'200':
description: MCP resource metadata
content:
application/json:
schema:
$ref: '#/components/schemas/McpResourceMetadata'
/.well-known/openid-configuration:
get:
tags:
- OAuth Discovery
summary: OpenID Connect Discovery
description: Returns OpenID Connect Discovery metadata for compatibility
operationId: getOpenIdConfiguration
security: []
responses:
'200':
description: OpenID Connect configuration
content:
application/json:
schema:
$ref: '#/components/schemas/OpenIdConfiguration'
/register:
post:
tags:
- Dynamic Client Registration
summary: Register OAuth client
description: |
Dynamic Client Registration per RFC 7591.
Automatically registers OAuth clients (like Claude Code, MCP Inspector)
without manual configuration. Returns client credentials that can be
used immediately for OAuth flows.
operationId: registerClient
security: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ClientRegistrationRequest'
examples:
mcpInspector:
summary: MCP Inspector registration
value:
client_name: "MCP Inspector"
redirect_uris:
- "http://localhost:6274/oauth/callback"
grant_types:
- "authorization_code"
- "refresh_token"
response_types:
- "code"
token_endpoint_auth_method: "none"
claudeCode:
summary: Claude Code registration
value:
client_name: "Claude Code (mcp-typescript-simple)"
redirect_uris:
- "http://localhost:50151/callback"
grant_types:
- "authorization_code"
- "refresh_token"
response_types:
- "code"
token_endpoint_auth_method: "none"
scope: "openid profile email"
responses:
'201':
description: Client registered successfully
content:
application/json:
schema:
$ref: '#/components/schemas/ClientRegistrationResponse'
examples:
success:
value:
client_id: "4b7799ac-8ee9-4d39-85df-67d47cd46779"
client_secret: "TC5xjjwK3KV_GYZUPfTXb_GylaDV9SJB6qrKdepYGi8"
client_id_issued_at: 1759234192
client_secret_expires_at: 1761826192
client_name: "MCP Inspector"
redirect_uris:
- "http://localhost:6274/oauth/callback"
grant_types:
- "authorization_code"
- "refresh_token"
response_types:
- "code"
token_endpoint_auth_method: "none"
'400':
$ref: '#/components/responses/BadRequest'
/register/{client_id}:
get:
tags:
- Dynamic Client Registration
summary: Retrieve client configuration
description: Retrieves OAuth client configuration per RFC 7592
operationId: getClientConfiguration
security:
- ClientAuth: []
parameters:
- name: client_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Client configuration
content:
application/json:
schema:
$ref: '#/components/schemas/ClientRegistrationResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
delete:
tags:
- Dynamic Client Registration
summary: Delete registered client
description: Deletes OAuth client registration per RFC 7592
operationId: deleteClient
security:
- ClientAuth: []
parameters:
- name: client_id
in: path
required: true
schema:
type: string
format: uuid
responses:
'204':
description: Client deleted successfully
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
/admin/sessions:
get:
tags:
- Admin & Monitoring
summary: List active sessions
description: Returns list of active MCP sessions
operationId: listSessions
responses:
'200':
description: Active sessions list
content:
application/json:
schema:
$ref: '#/components/schemas/SessionList'
'401':
$ref: '#/components/responses/Unauthorized'
/admin/sessions/{sessionId}:
delete:
tags:
- Admin & Monitoring
summary: Close specific session
description: Forcefully closes a specific MCP session
operationId: closeSession
parameters:
- name: sessionId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Session closed successfully
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
/admin/info:
get:
tags:
- Admin & Monitoring
summary: Get deployment information
description: Returns deployment configuration and environment details
operationId: getDeploymentInfo
responses:
'200':
description: Deployment information
content:
application/json:
schema:
$ref: '#/components/schemas/DeploymentInfo'
'401':
$ref: '#/components/responses/Unauthorized'
/admin/metrics:
get:
tags:
- Admin & Monitoring
summary: Get system metrics
description: Returns system metrics and performance data
operationId: getMetrics
responses:
'200':
description: System metrics
content:
application/json:
schema:
$ref: '#/components/schemas/SystemMetrics'
'401':
$ref: '#/components/responses/Unauthorized'
/debug/github-oauth:
get:
tags:
- Debug
summary: GitHub OAuth troubleshooting
description: Debug endpoint for GitHub OAuth configuration issues
operationId: debugGitHubOAuth
security: []
responses:
'200':
description: Debug information
content:
application/json:
schema:
type: object
properties:
configured:
type: boolean
clientId:
type: string
redirectUri:
type: string
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Bearer token authentication using OAuth 2.0 access tokens
OAuth2:
type: oauth2
description: OAuth 2.0 authorization code flow with PKCE
flows:
authorizationCode:
authorizationUrl: /auth/google/authorize
tokenUrl: /token
refreshUrl: /token
scopes:
openid: OpenID Connect scope
profile: User profile information
email: User email address
ClientAuth:
type: http
scheme: bearer
description: Client authentication using client_secret as bearer token
schemas:
HealthResponse:
type: object
properties:
status:
type: string
enum: [healthy, degraded, unhealthy]
version:
type: string
example: "1.0.0"
environment:
type: string
enum: [development, production, test]
oauth:
type: object
properties:
enabled:
type: boolean
provider:
type: string
enum: [google, github, microsoft, generic]
endpoints:
type: object
properties:
authorize:
type: string
callback:
type: string
token:
type: string
logout:
type: string
llm:
type: object
properties:
providers:
type: array
items:
type: string
enum: [claude, openai, gemini]
defaultProvider:
type: string
timestamp:
type: string
format: date-time
JsonRpcRequest:
type: object
required:
- jsonrpc
- method
properties:
jsonrpc:
type: string
const: "2.0"
id:
oneOf:
- type: string
- type: number
method:
type: string
enum:
- initialize
- tools/list
- tools/call
params:
type: object
JsonRpcResponse:
type: object
required:
- jsonrpc
properties:
jsonrpc:
type: string
const: "2.0"
id:
oneOf:
- type: string
- type: number
result:
type: object
error:
$ref: '#/components/schemas/JsonRpcError'
JsonRpcError:
type: object
required:
- code
- message
properties:
code:
type: integer
message:
type: string
data:
type: object
ToolContent:
type: object
required: