@bodhiapp/ts-client 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -241,7 +241,7 @@ export interface paths {
241
241
  patch?: never;
242
242
  trace?: never;
243
243
  };
244
- "/bodhi/v1/apps/mcps/{id}/tools/refresh": {
244
+ "/bodhi/v1/apps/mcps/{id}/mcp": {
245
245
  parameters: {
246
246
  query?: never;
247
247
  header?: never;
@@ -250,25 +250,11 @@ export interface paths {
250
250
  };
251
251
  get?: never;
252
252
  put?: never;
253
- /** Refresh tools for an MCP instance via external app */
254
- post: operations["appsRefreshMcpTools"];
255
- delete?: never;
256
- options?: never;
257
- head?: never;
258
- patch?: never;
259
- trace?: never;
260
- };
261
- "/bodhi/v1/apps/mcps/{id}/tools/{tool_name}/execute": {
262
- parameters: {
263
- query?: never;
264
- header?: never;
265
- path?: never;
266
- cookie?: never;
267
- };
268
- get?: never;
269
- put?: never;
270
- /** Execute a tool on an MCP server via external app */
271
- post: operations["appsExecuteMcpTool"];
253
+ /**
254
+ * Transparent MCP proxy endpoint
255
+ * @description Forwards MCP Streamable HTTP requests (POST/GET/DELETE) to upstream MCP server with auth injection
256
+ */
257
+ post: operations["mcpProxy"];
272
258
  delete?: never;
273
259
  options?: never;
274
260
  head?: never;
@@ -503,23 +489,6 @@ export interface paths {
503
489
  patch?: never;
504
490
  trace?: never;
505
491
  };
506
- "/bodhi/v1/mcps/fetch-tools": {
507
- parameters: {
508
- query?: never;
509
- header?: never;
510
- path?: never;
511
- cookie?: never;
512
- };
513
- get?: never;
514
- put?: never;
515
- /** Fetch tools from an MCP server without creating an MCP instance */
516
- post: operations["fetchMcpTools"];
517
- delete?: never;
518
- options?: never;
519
- head?: never;
520
- patch?: never;
521
- trace?: never;
522
- };
523
492
  "/bodhi/v1/mcps/oauth-tokens/{token_id}": {
524
493
  parameters: {
525
494
  query?: never;
@@ -644,40 +613,6 @@ export interface paths {
644
613
  patch?: never;
645
614
  trace?: never;
646
615
  };
647
- "/bodhi/v1/mcps/{id}/tools/refresh": {
648
- parameters: {
649
- query?: never;
650
- header?: never;
651
- path?: never;
652
- cookie?: never;
653
- };
654
- get?: never;
655
- put?: never;
656
- /** Refresh tools by connecting to the MCP server */
657
- post: operations["refreshMcpTools"];
658
- delete?: never;
659
- options?: never;
660
- head?: never;
661
- patch?: never;
662
- trace?: never;
663
- };
664
- "/bodhi/v1/mcps/{id}/tools/{tool_name}/execute": {
665
- parameters: {
666
- query?: never;
667
- header?: never;
668
- path?: never;
669
- cookie?: never;
670
- };
671
- get?: never;
672
- put?: never;
673
- /** Execute a tool on an MCP server */
674
- post: operations["executeMcpTool"];
675
- delete?: never;
676
- options?: never;
677
- head?: never;
678
- patch?: never;
679
- trace?: never;
680
- };
681
616
  "/bodhi/v1/models": {
682
617
  parameters: {
683
618
  query?: never;
@@ -1605,7 +1540,8 @@ export interface components {
1605
1540
  * "mcps": [
1606
1541
  * {
1607
1542
  * "instance": {
1608
- * "id": "instance-uuid"
1543
+ * "id": "instance-uuid",
1544
+ * "path": "/bodhi/v1/apps/mcps/instance-uuid/mcp"
1609
1545
  * },
1610
1546
  * "status": "approved",
1611
1547
  * "url": "https://mcp.deepwiki.com/mcp"
@@ -2564,13 +2500,6 @@ export interface components {
2564
2500
  [key: string]: string;
2565
2501
  } | null;
2566
2502
  };
2567
- FetchMcpToolsRequest: {
2568
- mcp_server_id: string;
2569
- auth?: null | components["schemas"]["McpAuth"];
2570
- credentials?: components["schemas"]["McpAuthParamInput"][] | null;
2571
- auth_config_id?: string | null;
2572
- oauth_token_id?: string | null;
2573
- };
2574
2503
  /**
2575
2504
  * @description Request to fetch available models from provider
2576
2505
  * @example {
@@ -2702,7 +2631,7 @@ export interface components {
2702
2631
  };
2703
2632
  metadata?: null | components["schemas"]["ModelMetadata"];
2704
2633
  };
2705
- /** @description User-owned MCP server instance with tool caching and filtering. */
2634
+ /** @description User-owned MCP server instance. */
2706
2635
  Mcp: {
2707
2636
  /** @description Unique instance identifier (UUID) */
2708
2637
  id: string;
@@ -2716,10 +2645,8 @@ export interface components {
2716
2645
  description?: string | null;
2717
2646
  /** @description Whether this instance is enabled */
2718
2647
  enabled: boolean;
2719
- /** @description Cached tool schemas from the MCP server (JSON array) */
2720
- tools_cache?: components["schemas"]["McpTool"][] | null;
2721
- /** @description Whitelisted tool names (empty = block all) */
2722
- tools_filter?: string[] | null;
2648
+ /** @description MCP proxy path for this instance */
2649
+ path: string;
2723
2650
  auth_type: components["schemas"]["McpAuthType"];
2724
2651
  /** @description Reference to the auth config (mcp_auth_configs.id) */
2725
2652
  auth_config_id?: string | null;
@@ -2741,15 +2668,6 @@ export interface components {
2741
2668
  status: components["schemas"]["ApprovalStatus"];
2742
2669
  instance?: null | components["schemas"]["McpInstance"];
2743
2670
  };
2744
- McpAuth: {
2745
- /** @enum {string} */
2746
- type: "public";
2747
- } | {
2748
- header_key: string;
2749
- header_value: string;
2750
- /** @enum {string} */
2751
- type: "header";
2752
- };
2753
2671
  McpAuthConfigParam: {
2754
2672
  id: string;
2755
2673
  param_type: components["schemas"]["McpAuthParamType"];
@@ -2817,15 +2735,10 @@ export interface components {
2817
2735
  McpAuthParamType: "header" | "query";
2818
2736
  /** @enum {string} */
2819
2737
  McpAuthType: "public" | "header" | "oauth";
2820
- McpExecuteRequest: {
2821
- params: unknown;
2822
- };
2823
- McpExecuteResponse: {
2824
- result?: unknown;
2825
- error?: string | null;
2826
- };
2827
2738
  McpInstance: {
2828
2739
  id: string;
2740
+ /** @description MCP proxy path for this instance (e.g. `/bodhi/v1/apps/mcps/{id}/mcp`) */
2741
+ path: string;
2829
2742
  };
2830
2743
  /** @description Input for creating or updating an MCP instance. */
2831
2744
  McpRequest: {
@@ -2839,10 +2752,6 @@ export interface components {
2839
2752
  description?: string | null;
2840
2753
  /** @description Whether this instance is enabled */
2841
2754
  enabled: boolean;
2842
- /** @description Cached tool schemas from the MCP server (JSON array) */
2843
- tools_cache?: components["schemas"]["McpTool"][] | null;
2844
- /** @description Whitelisted tool names */
2845
- tools_filter?: string[] | null;
2846
2755
  /** @description Authentication type */
2847
2756
  auth_type?: components["schemas"]["McpAuthType"];
2848
2757
  /** @description Reference to auth config */
@@ -2915,18 +2824,6 @@ export interface components {
2915
2824
  /** @description User's MCP instances connected to this server URL */
2916
2825
  instances: components["schemas"]["Mcp"][];
2917
2826
  };
2918
- /** @description Tool schema cached from an MCP server's tools/list response. */
2919
- McpTool: {
2920
- /** @description Tool name as declared by the MCP server */
2921
- name: string;
2922
- /** @description Human-readable description of the tool */
2923
- description?: string | null;
2924
- /** @description JSON Schema for tool input parameters */
2925
- input_schema?: unknown;
2926
- };
2927
- McpToolsResponse: {
2928
- tools: components["schemas"]["McpTool"][];
2929
- };
2930
2827
  Message: {
2931
2828
  role: string;
2932
2829
  content: string;
@@ -4778,7 +4675,7 @@ export interface operations {
4778
4675
  };
4779
4676
  };
4780
4677
  };
4781
- appsRefreshMcpTools: {
4678
+ mcpProxy: {
4782
4679
  parameters: {
4783
4680
  query?: never;
4784
4681
  header?: never;
@@ -4790,87 +4687,13 @@ export interface operations {
4790
4687
  };
4791
4688
  requestBody?: never;
4792
4689
  responses: {
4793
- /** @description Refreshed list of tools */
4690
+ /** @description Upstream response forwarded */
4794
4691
  200: {
4795
- headers: {
4796
- [name: string]: unknown;
4797
- };
4798
- content: {
4799
- "application/json": components["schemas"]["McpToolsResponse"];
4800
- };
4801
- };
4802
- /** @description Invalid request parameters */
4803
- 400: {
4804
- headers: {
4805
- [name: string]: unknown;
4806
- };
4807
- content: {
4808
- "application/json": components["schemas"]["OpenAIApiError"];
4809
- };
4810
- };
4811
- /** @description Not authenticated */
4812
- 401: {
4813
- headers: {
4814
- [name: string]: unknown;
4815
- };
4816
- content: {
4817
- "application/json": components["schemas"]["OpenAIApiError"];
4818
- };
4819
- };
4820
- /** @description Insufficient permissions */
4821
- 403: {
4822
- headers: {
4823
- [name: string]: unknown;
4824
- };
4825
- content: {
4826
- "application/json": components["schemas"]["OpenAIApiError"];
4827
- };
4828
- };
4829
- /** @description MCP not found */
4830
- 404: {
4831
4692
  headers: {
4832
4693
  [name: string]: unknown;
4833
4694
  };
4834
4695
  content?: never;
4835
4696
  };
4836
- /** @description Internal server error */
4837
- 500: {
4838
- headers: {
4839
- [name: string]: unknown;
4840
- };
4841
- content: {
4842
- "application/json": components["schemas"]["OpenAIApiError"];
4843
- };
4844
- };
4845
- };
4846
- };
4847
- appsExecuteMcpTool: {
4848
- parameters: {
4849
- query?: never;
4850
- header?: never;
4851
- path: {
4852
- /** @description MCP instance UUID */
4853
- id: string;
4854
- /** @description Tool name to execute */
4855
- tool_name: string;
4856
- };
4857
- cookie?: never;
4858
- };
4859
- requestBody: {
4860
- content: {
4861
- "application/json": components["schemas"]["McpExecuteRequest"];
4862
- };
4863
- };
4864
- responses: {
4865
- /** @description Tool execution result */
4866
- 200: {
4867
- headers: {
4868
- [name: string]: unknown;
4869
- };
4870
- content: {
4871
- "application/json": components["schemas"]["McpExecuteResponse"];
4872
- };
4873
- };
4874
4697
  /** @description Invalid request parameters */
4875
4698
  400: {
4876
4699
  headers: {
@@ -4898,13 +4721,6 @@ export interface operations {
4898
4721
  "application/json": components["schemas"]["OpenAIApiError"];
4899
4722
  };
4900
4723
  };
4901
- /** @description MCP or tool not found */
4902
- 404: {
4903
- headers: {
4904
- [name: string]: unknown;
4905
- };
4906
- content?: never;
4907
- };
4908
4724
  /** @description Internal server error */
4909
4725
  500: {
4910
4726
  headers: {
@@ -5885,73 +5701,6 @@ export interface operations {
5885
5701
  };
5886
5702
  };
5887
5703
  };
5888
- fetchMcpTools: {
5889
- parameters: {
5890
- query?: never;
5891
- header?: never;
5892
- path?: never;
5893
- cookie?: never;
5894
- };
5895
- requestBody: {
5896
- content: {
5897
- "application/json": components["schemas"]["FetchMcpToolsRequest"];
5898
- };
5899
- };
5900
- responses: {
5901
- /** @description List of tools from MCP server */
5902
- 200: {
5903
- headers: {
5904
- [name: string]: unknown;
5905
- };
5906
- content: {
5907
- "application/json": components["schemas"]["McpToolsResponse"];
5908
- };
5909
- };
5910
- /** @description Invalid request parameters */
5911
- 400: {
5912
- headers: {
5913
- [name: string]: unknown;
5914
- };
5915
- content: {
5916
- "application/json": components["schemas"]["OpenAIApiError"];
5917
- };
5918
- };
5919
- /** @description Not authenticated */
5920
- 401: {
5921
- headers: {
5922
- [name: string]: unknown;
5923
- };
5924
- content: {
5925
- "application/json": components["schemas"]["OpenAIApiError"];
5926
- };
5927
- };
5928
- /** @description Insufficient permissions */
5929
- 403: {
5930
- headers: {
5931
- [name: string]: unknown;
5932
- };
5933
- content: {
5934
- "application/json": components["schemas"]["OpenAIApiError"];
5935
- };
5936
- };
5937
- /** @description MCP server not found */
5938
- 404: {
5939
- headers: {
5940
- [name: string]: unknown;
5941
- };
5942
- content?: never;
5943
- };
5944
- /** @description Internal server error */
5945
- 500: {
5946
- headers: {
5947
- [name: string]: unknown;
5948
- };
5949
- content: {
5950
- "application/json": components["schemas"]["OpenAIApiError"];
5951
- };
5952
- };
5953
- };
5954
- };
5955
5704
  getMcpOAuthToken: {
5956
5705
  parameters: {
5957
5706
  query?: never;
@@ -6731,144 +6480,6 @@ export interface operations {
6731
6480
  };
6732
6481
  };
6733
6482
  };
6734
- refreshMcpTools: {
6735
- parameters: {
6736
- query?: never;
6737
- header?: never;
6738
- path: {
6739
- /** @description MCP instance UUID */
6740
- id: string;
6741
- };
6742
- cookie?: never;
6743
- };
6744
- requestBody?: never;
6745
- responses: {
6746
- /** @description Refreshed list of tools */
6747
- 200: {
6748
- headers: {
6749
- [name: string]: unknown;
6750
- };
6751
- content: {
6752
- "application/json": components["schemas"]["McpToolsResponse"];
6753
- };
6754
- };
6755
- /** @description Invalid request parameters */
6756
- 400: {
6757
- headers: {
6758
- [name: string]: unknown;
6759
- };
6760
- content: {
6761
- "application/json": components["schemas"]["OpenAIApiError"];
6762
- };
6763
- };
6764
- /** @description Not authenticated */
6765
- 401: {
6766
- headers: {
6767
- [name: string]: unknown;
6768
- };
6769
- content: {
6770
- "application/json": components["schemas"]["OpenAIApiError"];
6771
- };
6772
- };
6773
- /** @description Insufficient permissions */
6774
- 403: {
6775
- headers: {
6776
- [name: string]: unknown;
6777
- };
6778
- content: {
6779
- "application/json": components["schemas"]["OpenAIApiError"];
6780
- };
6781
- };
6782
- /** @description MCP not found */
6783
- 404: {
6784
- headers: {
6785
- [name: string]: unknown;
6786
- };
6787
- content?: never;
6788
- };
6789
- /** @description Internal server error */
6790
- 500: {
6791
- headers: {
6792
- [name: string]: unknown;
6793
- };
6794
- content: {
6795
- "application/json": components["schemas"]["OpenAIApiError"];
6796
- };
6797
- };
6798
- };
6799
- };
6800
- executeMcpTool: {
6801
- parameters: {
6802
- query?: never;
6803
- header?: never;
6804
- path: {
6805
- /** @description MCP instance UUID */
6806
- id: string;
6807
- /** @description Tool name to execute */
6808
- tool_name: string;
6809
- };
6810
- cookie?: never;
6811
- };
6812
- requestBody: {
6813
- content: {
6814
- "application/json": components["schemas"]["McpExecuteRequest"];
6815
- };
6816
- };
6817
- responses: {
6818
- /** @description Tool execution result */
6819
- 200: {
6820
- headers: {
6821
- [name: string]: unknown;
6822
- };
6823
- content: {
6824
- "application/json": components["schemas"]["McpExecuteResponse"];
6825
- };
6826
- };
6827
- /** @description Invalid request parameters */
6828
- 400: {
6829
- headers: {
6830
- [name: string]: unknown;
6831
- };
6832
- content: {
6833
- "application/json": components["schemas"]["OpenAIApiError"];
6834
- };
6835
- };
6836
- /** @description Not authenticated */
6837
- 401: {
6838
- headers: {
6839
- [name: string]: unknown;
6840
- };
6841
- content: {
6842
- "application/json": components["schemas"]["OpenAIApiError"];
6843
- };
6844
- };
6845
- /** @description Insufficient permissions */
6846
- 403: {
6847
- headers: {
6848
- [name: string]: unknown;
6849
- };
6850
- content: {
6851
- "application/json": components["schemas"]["OpenAIApiError"];
6852
- };
6853
- };
6854
- /** @description MCP or tool not found */
6855
- 404: {
6856
- headers: {
6857
- [name: string]: unknown;
6858
- };
6859
- content?: never;
6860
- };
6861
- /** @description Internal server error */
6862
- 500: {
6863
- headers: {
6864
- [name: string]: unknown;
6865
- };
6866
- content: {
6867
- "application/json": components["schemas"]["OpenAIApiError"];
6868
- };
6869
- };
6870
- };
6871
- };
6872
6483
  listAllModels: {
6873
6484
  parameters: {
6874
6485
  query?: {