Skip to main content
Glama
Policy.ts785 B
export interface Policy { id: string; name: string; description: string; rules: PolicyRule[]; createdAt: Date; updatedAt: Date; } export interface PolicyRule { id: string; type: 'fileAccess' | 'commandExecution' | 'networkAccess' | 'rateLimit'; action: 'allow' | 'deny'; resource: string; // File path pattern, command name, etc. conditions?: PolicyCondition[]; } export interface PolicyCondition { type: 'ipAddress' | 'sessionId' | 'timeRange' | 'rateLimit'; operator: 'equals' | 'notEquals' | 'contains' | 'startsWith' | 'endsWith' | 'greaterThan' | 'lessThan' | 'limit' | 'window'; value: string | number; } export interface PolicyEvaluationContext { sessionId: string; ipAddress: string; resource: string; action: string; timestamp: Date; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nom-nom-hub/fullstack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server