Skip to content

Commit 97e23c0

Browse files
Update auditlogs.ts (#124)
Updated the schema to include newer fields not yet in the public schema and update the root README to include audit logs information Co-authored-by: Maximo Guk <[email protected]>
1 parent 30a9452 commit 97e23c0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The following servers are included in this repository:
1212
| [**Workers Bindings server**](/apps/bindings) | Build Workers applications with storage, AI, and compute primitives | `https://bindings.mcp.cloudflare.com/sse` |
1313
| [**Observability server**](/apps/observability) | Debug and get insight into your application’s logs and analytics | `https://observability.mcp.cloudflare.com/sse` |
1414
| [**Radar server**](/apps/radar) | Get global Internet traffic insights, trends, URL scans, and other utilities | `https://radar.mcp.cloudflare.com/sse` |
15+
| [**Audit Logs server**](/apps/auditlogs) | Get the history of changes made within your Cloudflare account | `https://auditlogs.mcp.cloudflare.com/sse` |
1516

1617
## Access the remote MCP server from any MCP client
1718

apps/auditlogs/src/tools/auditlogs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { fetchCloudflareApi } from '@repo/mcp-common/src/cloudflare-api'
55
import type { AuditlogMCP } from '../index'
66

77
export const actionResults = z.enum(['success', 'failure', ''])
8-
export const actionTypes = z.enum(['create', 'delete', 'view', 'update'])
8+
export const actionTypes = z.enum(['create', 'delete', 'view', 'update', 'login'])
99
export const actorContexts = z.enum(['api_key', 'api_token', 'dash', 'oauth', 'origin_ca_key'])
10-
export const actorTypes = z.enum(['cloudflare_admin', 'account', 'user'])
11-
export const resourceScopes = z.enum(['accounts', 'user', 'zones'])
10+
export const actorTypes = z.enum(['cloudflare_admin', 'account', 'user', 'system'])
11+
export const resourceScopes = z.enum(['memberships', 'accounts', 'user', 'zones'])
1212
export const sortDirections = z.enum(['desc', 'asc'])
1313

1414
export const auditLogsQuerySchema = z.object({

0 commit comments

Comments
 (0)