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
{{ message }}
Repository navigation
Commit e697d38
Browse filesBrowse the repository at this point in the historyBrowse files
The action is shown as a colored badge by the [Enum Badge](../03-Customization/02-customFieldRendering.md#enum-badge) renderer. The `enum` of the `action` column must list every action which gets logged: a log record with an action out of the `enum` fails validation and is not saved. Add the ids of your [custom actions](#logging-custom-actions), and `import` and `export` if you use the [Import Export](./08-import-export.md) plugin.
131
+
116
132
Then you need to import `./resources/auditLogs`:
117
133
118
134
```tstitle="./index.ts"
@@ -186,10 +202,12 @@ plugins: [
186
202
187
203
`@adminforth/agent` records `af-agent`. `@adminforth/mcp` records the detected client, its version, and the auth secret name, for example `codex@1.2.3 | Production Codex`. Regular user actions leave the column empty. Existing configurations without `resourceExecutedByColumnName` keep their current behavior.
188
204
205
+
The list and the show page render the column with the logo of the agent: Claude Code, Codex or Gemini, or a bot icon for `af-agent` and other MCP clients, e.g. `codex@1.2.3 · Production Codex` with the Codex logo. Set your own `components` on the column to render it differently.
206
+
189
207
190
208
## Logging custom actions
191
209
192
-
Audit log is able to catch only standard actions like `create`, `update`, `delete` or custom bulk actions.
210
+
Audit log is able to catch only standard actions like `create`, `edit`, `delete` or custom bulk actions.
193
211
194
212
If you have a custom, self coded actions in your API, you can log them by calling `logCustomAction` method of `AuditLogPlugin` instance:
Copy file name to clipboardExpand all lines: documentation/docs/tutorial/09-Plugins/30-mcp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -363,4 +363,4 @@ new AuditLogPlugin({
363
363
});
364
364
```
365
365
366
-
MCP actions store the agent, version, and auth secret name, for example `codex@1.2.3 | Production Codex`. Actions from `@adminforth/agent` store `af-agent`. Regular user actions leave the field empty. If the mapping is omitted, Audit Log behavior remains unchanged.
366
+
MCP actions store the agent, version, and auth secret name, for example `codex@1.2.3 | Production Codex`. Actions from `@adminforth/agent` store `af-agent`. Regular user actions leave the field empty. If the mapping is omitted, Audit Log behavior remains unchanged. Audit Log shows the value with the logo of the agent, see [Logging actions executed by agents](./04-AuditLog.md#logging-actions-executed-by-agents).
0 commit comments