MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / PluginConfig

Class PluginConfig

config.ts:1–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export class PluginConfig {
2 llm: {
3 provider: string;
4 model: string;
5 api: string;
6 baseUrl: string;
7 apiKeyEnv: string;
8 };
9 layers: {
10 foundationScan: {
11 enableFoundationScanDetection: boolean;
12 enableIntervention: boolean;
13 blockToolCallOnFoundationScanWarning: boolean;
14 detectMaliciousSkills: {
15 enable: boolean;
16 ruleBasedDetection: boolean;
17 semanticDetection: boolean;
18 maxContentLength: number;
19 maxConcurrency: number;
20 };
21 detectMisConfiguration: {
22 enable: boolean;
23 };
24 };
25 inputSanitization: {
26 enableInputDetection: boolean;
27 enableIntervention: boolean;
28 temporaryBlockToolCall: boolean;
29 blockHarmfulInput: boolean;
30 coverContaminatedResponse: boolean;
31 };
32 cognitionProtection: {
33 enableMemWriteDetection: boolean;
34 enableIntervention: boolean;
35 };
36 decisionAlignment: {
37 enableDecisionAlignmentDetection: boolean;
38 enableIntervention: boolean;
39 };
40 execControl: {
41 enableToolCallDetection: boolean;
42 enableIntervention: boolean;
43 };
44 };
45 logging: {
46 enableFileLog: boolean;
47 };
48 notifications: {
49 enableProactiveNotifications: boolean;
50 };
51 approvals: {
52 enableUserApproval: boolean;
53 /**
54 * Approval timeout in milliseconds.
55 * - null: "infinite" (best-effort; upstream gateway may cap this value)
56 */
57 timeoutMs: number | null;
58 };
59 worker: {
60 timeout: number;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected