Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/pangea-node-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Added

- AI Guard: `mcp_tools` field.

## 5.4.0 - 2025-09-12

## Added
Expand Down
50 changes: 34 additions & 16 deletions packages/pangea-node-sdk/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -946,9 +946,9 @@ export namespace AIGuard {
debug?: boolean;
overrides?: GuardOverrides2;

/** Id of source application. */
/** Id of source application/agent */
app_id?: string;
/** User/Service account id. */
/** User/Service account id/service account */
actor_id?: string;
/** Underlying LLM. Example: 'OpenAI'. */
llm_provider?: string;
Expand All @@ -967,30 +967,48 @@ export namespace AIGuard {
/** For gateway-like integrations with multi-tenant support. */
tenant_id?: string;
/** (AIDR) Event Type. */
event_type?: "input" | "output";
/** (AIDR) sensor instance id. */
sensor_instance_id?: string;
event_type?:
| "input"
| "output"
| "tool_input"
| "tool_output"
| "tool_listing";
/** (AIDR) collector instance id. */
collector_instance_id?: string;
/** (AIDR) Logging schema. */
extra_info?: {
/** Name of source application. */
/** Name of source application/agent. */
app_name?: string;
/** The group of source application. */
/** The group of source application/agent. */
app_group?: string;
/** Version of the source application. */
/** Version of the source application/agent. */
app_version?: string;
/** Name of subject actor. */
/** Name of subject actor/service account. */
actor_name?: string;
/** The group of subject actor. */
actor_group?: string;
/** Geographic region or data center. */
source_region?: string;
/** Sensitivity level of data involved */
data_sensitivity?: string;
/** Tier of the user or organization */
customer_tier?: string;
/** Business-specific use case */
use_case?: string;
[key: string]: unknown | string | undefined;
/** Sub tenant of the user or organization */
sub_tenant?: string;
/**
* MCP tools grouped by server. Each item groups tools for a given MCP
* server.
*/
mcp_tools?: {
/** MCP server name */
server_name: string;
tools: string[];
}[];
[key: string]:
| unknown
| string
| {
/** MCP server name */
server_name: string;
tools: string[];
}[]
| undefined;
};
/** Provide input and output token count. */
count_tokens?: boolean;
Expand Down
30 changes: 24 additions & 6 deletions packages/pangea-node-sdk/tests/testdata/ai-guard.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1707,13 +1707,31 @@
},
"mcp_tools": {
"type": "array",
"title": "List of MCP tools",
"description": "Each item is <mcp_servername>:<tool_name>",
"uniqueItems": true,
"title": "MCP tools grouped by server",
"description": "Each item groups tools for a given MCP server.",
"items": {
"type": "string",
"description": "Formatted mcp service and tools name <mcp_servername>:<tool_name>"
}
"type": "object",
"additionalProperties": false,
"required": ["server_name", "tools"],
"properties": {
"server_name": {
"type": "string",
"minLength": 1,
"description": "MCP server name"
},
"tools": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"minLength": 1,
"description": "Tool name"
}
}
}
},
"uniqueItems": true
}
},
"additionalProperties": true
Expand Down
Loading