@bodhiapp/ts-client 0.1.24 → 0.1.25

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;
@@ -2564,13 +2499,6 @@ export interface components {
2564
2499
  [key: string]: string;
2565
2500
  } | null;
2566
2501
  };
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
2502
  /**
2575
2503
  * @description Request to fetch available models from provider
2576
2504
  * @example {
@@ -2702,7 +2630,7 @@ export interface components {
2702
2630
  };
2703
2631
  metadata?: null | components["schemas"]["ModelMetadata"];
2704
2632
  };
2705
- /** @description User-owned MCP server instance with tool caching and filtering. */
2633
+ /** @description User-owned MCP server instance. */
2706
2634
  Mcp: {
2707
2635
  /** @description Unique instance identifier (UUID) */
2708
2636
  id: string;
@@ -2716,10 +2644,8 @@ export interface components {
2716
2644
  description?: string | null;
2717
2645
  /** @description Whether this instance is enabled */
2718
2646
  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;
2647
+ /** @description MCP proxy endpoint path for this instance */
2648
+ mcp_endpoint: string;
2723
2649
  auth_type: components["schemas"]["McpAuthType"];
2724
2650
  /** @description Reference to the auth config (mcp_auth_configs.id) */
2725
2651
  auth_config_id?: string | null;
@@ -2741,15 +2667,6 @@ export interface components {
2741
2667
  status: components["schemas"]["ApprovalStatus"];
2742
2668
  instance?: null | components["schemas"]["McpInstance"];
2743
2669
  };
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
2670
  McpAuthConfigParam: {
2754
2671
  id: string;
2755
2672
  param_type: components["schemas"]["McpAuthParamType"];
@@ -2817,13 +2734,6 @@ export interface components {
2817
2734
  McpAuthParamType: "header" | "query";
2818
2735
  /** @enum {string} */
2819
2736
  McpAuthType: "public" | "header" | "oauth";
2820
- McpExecuteRequest: {
2821
- params: unknown;
2822
- };
2823
- McpExecuteResponse: {
2824
- result?: unknown;
2825
- error?: string | null;
2826
- };
2827
2737
  McpInstance: {
2828
2738
  id: string;
2829
2739
  };
@@ -2839,10 +2749,6 @@ export interface components {
2839
2749
  description?: string | null;
2840
2750
  /** @description Whether this instance is enabled */
2841
2751
  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
2752
  /** @description Authentication type */
2847
2753
  auth_type?: components["schemas"]["McpAuthType"];
2848
2754
  /** @description Reference to auth config */
@@ -2915,18 +2821,6 @@ export interface components {
2915
2821
  /** @description User's MCP instances connected to this server URL */
2916
2822
  instances: components["schemas"]["Mcp"][];
2917
2823
  };
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
2824
  Message: {
2931
2825
  role: string;
2932
2826
  content: string;
@@ -4778,7 +4672,7 @@ export interface operations {
4778
4672
  };
4779
4673
  };
4780
4674
  };
4781
- appsRefreshMcpTools: {
4675
+ mcpProxy: {
4782
4676
  parameters: {
4783
4677
  query?: never;
4784
4678
  header?: never;
@@ -4790,87 +4684,13 @@ export interface operations {
4790
4684
  };
4791
4685
  requestBody?: never;
4792
4686
  responses: {
4793
- /** @description Refreshed list of tools */
4687
+ /** @description Upstream response forwarded */
4794
4688
  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
4689
  headers: {
4832
4690
  [name: string]: unknown;
4833
4691
  };
4834
4692
  content?: never;
4835
4693
  };
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
4694
  /** @description Invalid request parameters */
4875
4695
  400: {
4876
4696
  headers: {
@@ -4898,13 +4718,6 @@ export interface operations {
4898
4718
  "application/json": components["schemas"]["OpenAIApiError"];
4899
4719
  };
4900
4720
  };
4901
- /** @description MCP or tool not found */
4902
- 404: {
4903
- headers: {
4904
- [name: string]: unknown;
4905
- };
4906
- content?: never;
4907
- };
4908
4721
  /** @description Internal server error */
4909
4722
  500: {
4910
4723
  headers: {
@@ -5885,73 +5698,6 @@ export interface operations {
5885
5698
  };
5886
5699
  };
5887
5700
  };
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
5701
  getMcpOAuthToken: {
5956
5702
  parameters: {
5957
5703
  query?: never;
@@ -6731,144 +6477,6 @@ export interface operations {
6731
6477
  };
6732
6478
  };
6733
6479
  };
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
6480
  listAllModels: {
6873
6481
  parameters: {
6874
6482
  query?: {