@@ -4645,11 +4645,6 @@ export namespace Tool {
4645
4645
*/
4646
4646
server_label : string ;
4647
4647
4648
- /**
4649
- * The URL for the MCP server.
4650
- */
4651
- server_url : string ;
4652
-
4653
4648
/**
4654
4649
* The type of the MCP tool. Always `mcp`.
4655
4650
*/
@@ -4658,7 +4653,41 @@ export namespace Tool {
4658
4653
/**
4659
4654
* List of allowed tool names or a filter object.
4660
4655
*/
4661
- allowed_tools ?: Array < string > | Mcp . McpAllowedToolsFilter | null ;
4656
+ allowed_tools ?: Array < string > | Mcp . McpToolFilter | null ;
4657
+
4658
+ /**
4659
+ * An OAuth access token that can be used with a remote MCP server, either with a
4660
+ * custom MCP server URL or a service connector. Your application must handle the
4661
+ * OAuth authorization flow and provide the token here.
4662
+ */
4663
+ authorization ?: string ;
4664
+
4665
+ /**
4666
+ * Identifier for service connectors, like those available in ChatGPT. One of
4667
+ * `server_url` or `connector_id` must be provided. Learn more about service
4668
+ * connectors
4669
+ * [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
4670
+ *
4671
+ * Currently supported `connector_id` values are:
4672
+ *
4673
+ * - Dropbox: `connector_dropbox`
4674
+ * - Gmail: `connector_gmail`
4675
+ * - Google Calendar: `connector_googlecalendar`
4676
+ * - Google Drive: `connector_googledrive`
4677
+ * - Microsoft Teams: `connector_microsoftteams`
4678
+ * - Outlook Calendar: `connector_outlookcalendar`
4679
+ * - Outlook Email: `connector_outlookemail`
4680
+ * - SharePoint: `connector_sharepoint`
4681
+ */
4682
+ connector_id ?:
4683
+ | 'connector_dropbox'
4684
+ | 'connector_gmail'
4685
+ | 'connector_googlecalendar'
4686
+ | 'connector_googledrive'
4687
+ | 'connector_microsoftteams'
4688
+ | 'connector_outlookcalendar'
4689
+ | 'connector_outlookemail'
4690
+ | 'connector_sharepoint' ;
4662
4691
4663
4692
/**
4664
4693
* Optional HTTP headers to send to the MCP server. Use for authentication or other
@@ -4675,48 +4704,82 @@ export namespace Tool {
4675
4704
* Optional description of the MCP server, used to provide more context.
4676
4705
*/
4677
4706
server_description ?: string ;
4707
+
4708
+ /**
4709
+ * The URL for the MCP server. One of `server_url` or `connector_id` must be
4710
+ * provided.
4711
+ */
4712
+ server_url ?: string ;
4678
4713
}
4679
4714
4680
4715
export namespace Mcp {
4681
4716
/**
4682
4717
* A filter object to specify which tools are allowed.
4683
4718
*/
4684
- export interface McpAllowedToolsFilter {
4719
+ export interface McpToolFilter {
4720
+ /**
4721
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
4722
+ * is
4723
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
4724
+ * it will match this filter.
4725
+ */
4726
+ read_only ?: boolean ;
4727
+
4685
4728
/**
4686
4729
* List of allowed tool names.
4687
4730
*/
4688
4731
tool_names ?: Array < string > ;
4689
4732
}
4690
4733
4734
+ /**
4735
+ * Specify which of the MCP server's tools require approval. Can be `always`,
4736
+ * `never`, or a filter object associated with tools that require approval.
4737
+ */
4691
4738
export interface McpToolApprovalFilter {
4692
4739
/**
4693
- * A list of tools that always require approval .
4740
+ * A filter object to specify which tools are allowed .
4694
4741
*/
4695
4742
always ?: McpToolApprovalFilter . Always ;
4696
4743
4697
4744
/**
4698
- * A list of tools that never require approval .
4745
+ * A filter object to specify which tools are allowed .
4699
4746
*/
4700
4747
never ?: McpToolApprovalFilter . Never ;
4701
4748
}
4702
4749
4703
4750
export namespace McpToolApprovalFilter {
4704
4751
/**
4705
- * A list of tools that always require approval .
4752
+ * A filter object to specify which tools are allowed .
4706
4753
*/
4707
4754
export interface Always {
4708
4755
/**
4709
- * List of tools that require approval.
4756
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
4757
+ * is
4758
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
4759
+ * it will match this filter.
4760
+ */
4761
+ read_only ?: boolean ;
4762
+
4763
+ /**
4764
+ * List of allowed tool names.
4710
4765
*/
4711
4766
tool_names ?: Array < string > ;
4712
4767
}
4713
4768
4714
4769
/**
4715
- * A list of tools that never require approval .
4770
+ * A filter object to specify which tools are allowed .
4716
4771
*/
4717
4772
export interface Never {
4718
4773
/**
4719
- * List of tools that do not require approval.
4774
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
4775
+ * is
4776
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
4777
+ * it will match this filter.
4778
+ */
4779
+ read_only ?: boolean ;
4780
+
4781
+ /**
4782
+ * List of allowed tool names.
4720
4783
*/
4721
4784
tool_names ?: Array < string > ;
4722
4785
}
0 commit comments