You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
env_vars: z.record(z.string(),z.string()).nullable().optional().describe('Environment variables to set when executing the commands'),
175
176
working_dir: z.string().nullable().optional().describe('Working directory for command execution'),
176
177
auth: z.undefined().optional(),
178
+
allowed_communication_protocols: z.array(z.string()).optional().describe('Optional list of allowed communication protocol types for tools within this manual.'),
177
179
}).strict()asz.ZodType<CliCallTemplate>;
178
180
179
181
/**
@@ -200,6 +202,7 @@ export class CliCallTemplateSerializer extends Serializer<CliCallTemplate> {
console.warn(`Tool '${tool.name}' uses communication protocol '${toolProtocol}' which is not in allowed protocols [${allowedProtocols.map(p=>`'${p}'`).join(', ')}] for manual '${manualCallTemplate.name}'. Tool will not be registered.`);
thrownewError(`Tool '${toolName}' uses communication protocol '${toolProtocol}' which is not allowed by manual '${manualName}'. Allowed protocols: [${allowedProtocols.map(p=>`'${p}'`).join(', ')}]`);
thrownewError(`Tool '${toolName}' uses communication protocol '${toolProtocol}' which is not allowed by manual '${manualName}'. Allowed protocols: [${allowedProtocols.map(p=>`'${p}'`).join(', ')}]`);
callable_name: z.string().describe('The name of the callable function to invoke.'),
29
30
auth: z.undefined().optional(),
31
+
allowed_communication_protocols: z.array(z.string()).optional().describe('Optional list of allowed communication protocol types for tools within this manual.'),
30
32
}).strict()asz.ZodType<DirectCallTemplate>;
31
33
32
34
/**
@@ -42,6 +44,7 @@ export class DirectCallTemplateSerializer extends Serializer<DirectCallTemplate>
}).describe('Authentication to apply to generated tools from OpenAPI specs.'),
44
+
allowed_communication_protocols: z.array(z.string()).optional().describe('Optional list of allowed communication protocol types for tools within this manual.'),
43
45
}).strict()asz.ZodType<FileCallTemplate>;
44
46
45
47
/**
@@ -58,6 +60,7 @@ export class FileCallTemplateSerializer extends Serializer<FileCallTemplate> {
}).describe('Authentication configuration for generated tools'),
49
+
allowed_communication_protocols: z.array(z.string()).optional().describe('Optional list of allowed communication protocol types for tools within this manual.'),
48
50
})asz.ZodType<HttpCallTemplate>;
49
51
50
52
/**
@@ -64,6 +66,7 @@ export class HttpCallTemplateSerializer extends Serializer<HttpCallTemplate> {
headers: z.record(z.string(),z.string()).optional().describe('Optional static headers for the initial connection.'),
50
51
body_field: z.string().nullable().optional().describe('The name of the single input field to be sent as the request body.'),
51
52
header_fields: z.array(z.string()).nullable().optional().describe('List of input fields to be sent as request headers for the initial connection.'),
53
+
allowed_communication_protocols: z.array(z.string()).optional().describe('Optional list of allowed communication protocol types for tools within this manual.'),
52
54
})asz.ZodType<SseCallTemplate>;
53
55
54
56
/**
@@ -72,6 +74,7 @@ export class SseCallTemplateSerializer extends Serializer<SseCallTemplate> {
headers: z.record(z.string(),z.string()).optional().describe('Optional static headers to include in requests.'),
53
54
body_field: z.string().nullable().optional().describe('The name of the single input field to be sent as the request body.'),
54
55
header_fields: z.array(z.string()).nullable().optional().describe('List of input fields to be sent as request headers.'),
56
+
allowed_communication_protocols: z.array(z.string()).optional().describe('Optional list of allowed communication protocol types for tools within this manual.'),
55
57
})asz.ZodType<StreamableHttpCallTemplate>;
56
58
57
59
/**
@@ -76,6 +78,7 @@ export class StreamableHttpCallTemplateSerializer extends Serializer<StreamableH
config: McpConfigSchema.describe('Configuration object containing MCP server definitions. Follows the same format as the official MCP server configuration.'),
136
137
auth: AuthSchema.nullable().optional().describe('Optional OAuth2 authentication for HTTP-based MCP servers.'),
137
138
register_resources_as_tools: z.boolean().default(false).describe('Whether to register MCP resources as callable tools. When True, server resources are exposed as tools that can be called.'),
139
+
allowed_communication_protocols: z.array(z.string()).optional().describe('Optional list of allowed communication protocol types for tools within this manual.'),
138
140
})asz.ZodType<McpCallTemplate>;
139
141
140
142
/**
@@ -153,6 +155,7 @@ export class McpCallTemplateSerializer extends Serializer<McpCallTemplate> {
0 commit comments