Introducing a new way to review your PRs.

Read the announcement

hashgraph-online / hol-guard

Open-source antivirus and firewall for AI agents: block risky tools, secret access, prompt injection, malicious packages, MCP servers, plugins, and skills at runtime.

View on GitHub

44 documents · Updated Nov 23, 2026

docs / mcp-discovery-provider-governance-and-skills

MCP discovery, provider governance, and skills

Guard turns MCP connections and installed workspace skills into bounded, reviewable objects for operators. It finds configured local servers and MCP tools observed through agent activity, binds each result to its host and connection identity, keeps provider metadata separate from permission authority, and presents safe setup, action, workflow, skill-scan, and declared-skill views in the local dashboard.

Discovery sources

MCP discovery has two sources with different evidence levels. Configured discovery reads server registrations from supported agent harnesses without starting a server. Observed discovery reads MCP-shaped tool names from Guard receipts and pending approvals, so it can suggest a connector even when the host configuration is not visible.

SourceWhat Guard learnsWhat the result does not prove
Configured local serverA local stdio launch definition, its harness labels, server identity, and safe environment keysThat the server is running or that its tools are safe
Observed MCP toolsA harness namespace and tool names seen in Guard activityA server endpoint, a launch command, or authority over unseen tools
Public MCP registryOfficial listing metadata, HTTPS endpoints, and selected pinned package recipesPackage safety, installation, account sign-in, or tool permission

Configured discovery groups equal launch definitions across harnesses. It preserves the source labels that explain where a connection was found and stores only bounded, redacted display data. Guard's managed proxy entries are excluded from install candidates, but a verified Guard companion can be unwrapped through a bounded chain and recovered as an observation of the original server only when its stable identity matches. This prevents duplicate wrapping while keeping the connection visible.

Observed discovery keeps the harness and connector namespace in the identity. It adds only the tools that Guard has seen to the local catalog. An unseen tool stays in the normal review path because an incomplete observation cannot become an allow-all rule.

The main discovery flow is shown below.

flowchart LR
    A[Harness configuration] --> B[Configured server observation]
    C[Guard receipts and approvals] --> D[Observed tool namespace]
    B --> E[Connection identity]
    D --> E
    E --> F[Local MCP catalog]
    F --> G[Operator review and grants]
    F --> H[Provider metadata]
    I[Official MCP registry] --> J[Reviewed setup candidate]
    J --> K[Host configuration only]

References: src/…/harness_mcp_discovery.py• L37-119 src/…/mcp_servers.py• L85-109 src/…/observed_mcp_tools.py• L66-162 rust/…/mcp_registry_page.rs• L27-103 rust/…/mcp_registry_search.rs• L29-48 rust/…/harness_mcp_discovery_vectors.json• L1-55

Discovery refreshes

An operator can refresh a configured connection after giving explicit consent to start that local server for a bounded tools-list probe. A separate configured-connections refresh reads harness configuration and merges observed provider tools without starting each configured server. Guard runs these actions as cancellable jobs in a pool of up to four active jobs, reuses recent results when appropriate, and prevents rapid retries after a failure.

The job boundary keeps discovery work separate from the local API request. Operators can poll or cancel a job, and shutdown cancels active work before the pool closes. Each job exposes only its identifier, owning CLI session, state, and a narrow public error code. Provider output, launch details, and environment values stay out of polling responses. Unexpected failures map to a safe generic code while bounded diagnostics record enough type and code data for support review.

Cancellation can stop a job before it starts writing. Once a job begins its writes, the commit boundary closes cancellation so the reported state cannot say that stored results were cancelled.

The local probe exchanges MCP initialization and tools/list messages within a time and size limit. It keeps partial catalogs with a reason when pagination, transport, cache hints, or the server response is incomplete. Existing catalog entries and choices remain visible during a failed or stale refresh, but new or changed tool definitions return to review.

When live probing is not available, Guard can use a stored observation only when its command, arguments, and identity still match. This preserves continuity without treating old tool data as current proof.

References: src/…/local_cli_api.py• L311-372 src/…/mcp_discovery_jobs.py• L114-234 src/…/local_mcp_probe.py• L99-160 src/…/local_mcp_stdio.py• L54-80 src/…/local_cli_mcp_store.py• L28-123

Connection identity

A server identity describes the launch and transport meaning of an MCP server. A connection identity adds the harness, source scope, configuration boundary, server name, and server identity. Guard uses both so a grant for one configured connection cannot silently apply to another host or configuration.

The identity includes hashes for command arguments and configured environment values. It does not publish private configuration paths or secret values as display data. Stable identifiers also reduce path-like argument values to non-sensitive tokens. A changed command, package, transport, environment binding, or tool schema produces a different identity and prevents reuse of the old authority.

Identity layerScopeOperator effect
Server identityLaunch command, arguments, package, transport, and environment keys and valuesDetects a changed server definition
Connection identityHarness, source scope, configuration hash, server name, and server identitySeparates host connections that use the same server
Tool identityServer identity, tool name, input schema, and descriptionReopens review when a tool definition changes
Provider authority identityObserved harness namespace and provider action slugBinds provider choices to one observed connector

The connection identity is a boundary marker, not a verified account. Account binding is a separate requirement before Guard can support an allow decision for provider actions. Current provider governance therefore supports Ask and Deny for an observed host namespace across its accounts, while Allow is intentionally unavailable until the account and execution boundary are verified.

References: src/…/mcp_protection.py• L10-60 src/…/mcp_connection_identity.py• L10-44 src/…/store_local_mcp.py• L311-414 src/…/mcp_provider_permissions.py• L1-33 src/…/mcp_servers.py• L167-183 rust/…/managed_upstream_vectors.json• L1-44

Provider governance

Provider governance covers metadata returned by an MCP provider that exposes a larger action catalog. Guard accepts only a known discovery response shape, stores bounded action schemas and descriptions, and labels the result as a discovery subset. The metadata helps an operator understand what a provider action may do, but it does not grant permission or prove account ownership.

Guard rechecks the source tool and connection identity before it records provider metadata. Each action has a revision and an authority hash. A changed schema or completeness state changes the provider authority digest and causes the native policy publication path to refresh before new choices take effect.

Classification is advisory. Guard's native runtime examines the tool declaration and provider claims, then returns bounded evidence to the runtime. The Python bridge does not invent a description when the native classifier is unavailable or cannot carry one of the declarations. An unknown or incomplete schema stays uncertain, and the dashboard shows the available evidence and warnings so the operator can distinguish a reviewed mapping from a limited suggestion.

Provider action choices follow this path:

  1. Guard observes a provider discovery call through a known MCP namespace.
  2. Guard validates and stores the bounded action metadata for the matching connection.
  3. The operator selects Ask or Deny for exact action slugs.
  4. Guard checks the action revision and provider identity before saving the choice.
  5. The choice enters native policy only after the connection grant and provider authority match.
  6. Batch or opaque provider execution keeps the stronger Deny floor when a denied member cannot be resolved safely.

An ordinary wrapper grant cannot authorize a provider action. A remembered allow also requires a verified provider account, so provider review remains in force until both the action and account boundary are known. When Guard claims a saved approval for execution, the native policy path rechecks the current tool, arguments, configuration, provider catalog authority, and policy before it returns executable Allow. A changed or unavailable post-claim authority causes fresh reapproval instead of silently using the claimed decision.

References: src/…/composio_discovery.py• L23-80 src/…/store_mcp_provider_catalog.py• L18-119 src/…/store_mcp_provider_catalog.py• L142-205 src/…/store_mcp_provider_permissions.py• L14-74 src/…/mcp_provider_permissions.py• L36-83 src/…/mcp_classification.py• L25-35 src/…/native_mcp_classification.py• L161-208 src/…/mcp_tool_calls.py• L258-282 src/…/mcp_tool_call_evaluation.py• L1-81 src/…/mcp_tool_calls.py• L315-442

Contributed provider controls

Guard also has reviewed MCP server contributions that describe known launch forms, risk classes, safer alternatives, and per-tool default states. Contributions are external and opt-in. Guard validates their schema, launch grammar, and unique package, command, endpoint, and server-name identities before loading them. They can raise a tool to review or block, or provide a narrow allow default only for a local package-launcher recipe.

The current contribution set covers local memory, repository transfer, context handoff, secure input, device control, ledger anchoring, marketplace actions, and hosted payments. Read-only tools generally inherit normal Guard handling. Tools that write files, change devices, spend funds or credits, sign data, publish shared state, or execute commands remain under review. This classification describes a safer starting policy; it does not certify the provider.

Contribution matching uses the package identity for local package launches, a safe executable name for direct local launches, and a normalized HTTPS endpoint or declared server name for remote connections. A contribution is a policy input, not proof that the provider is trusted or that a user account is authenticated. A package contribution can lower policy only when the launch uses the declared package launcher and the default package source, uses stdio, and has no package-manager override environment. Local paths and archive selectors do not qualify as registry package versions. Direct-command and remote contributions cannot provide allow defaults.

References: src/…/mcp_server_contribution.py• L19-32 src/…/mcp_server_contribution.py• L77-141 src/…/mcp_server_contribution.py• L144-168 src/…/mcp_server_catalog.py• L57-130 contributions/…/mcp.aletheia-mem.json• L1-58 contributions/…/mcp.cappz-market.json• L1-146 contributions/…/mcp.gitferry.json• L1-57 contributions/…/mcp.netatmo-energy-mcp.json• L1-134 contributions/…/mcp.rel-time.json• L1-84 contributions/…/mcp.secureinput.json• L1-71 contributions/…/mcp.vicem.json• L1-62 contributions/…/mcp.wever-labs.json• L1-370

Operator workflows

The local Guard API connects persisted MCP observations and authority to the dashboard. The dashboard reads the stable local item list first, then opens bounded views for tool catalogs, provider actions, provider workflow proposals, and public registry setup. Mutations use the local trust gate, revision checks, and native publication status.

MCP registry setup

The public registry search is a bounded, read-only search of official listing metadata. Guard sends a trimmed query to one fixed registry origin through managed network policy. It does not follow redirects or attach credentials. Queries must be 2 to 80 characters and contain no control characters.

Guard accepts a page only when it is a bounded JSON response with valid server records. It keeps only HTTPS remote endpoints with supported MCP transports. It offers a package setup option only for a pinned stdio recipe from the default npm or PyPI registry with literal arguments and no environment or runtime arguments. Every listing remains unverified, unconfigured, and uninstalled. A deprecated or unknown registry status remains visible as status data rather than becoming proof of safety.

The operator previews the exact host change before applying it.

Applying a candidate changes Codex configuration and then verifies the host's resulting connection. It does not grant Guard permissions, verify the package, authenticate a provider account, or activate tools. The operator must restart or reload the host as needed, complete provider-owned sign-in there, and then review the discovered connection in Guard.

References: rust/…/mcp_registry_search.rs• L29-115 rust/…/mcp_registry_page.rs• L27-203 src/…/mcp_registry_setup.py• L24-86 src/…/mcp_registry_setup.py• L89-138 src/…/mcp_registry_setup.py• L141-261 src/…/local_cli_api.py• L429-522 dashboard/…/mcp-registry-search.tsx• L177-212 rust/…/mcp_registry_page_tests.rs• L25-247 rust/…/mcp_registry_search_tests.rs• L28-117

Provider action review

The provider action view is a paged search over cached discovery results. It shows the toolkit, action description, schema completeness, revision, classification evidence, and current Ask or Deny state. The view states that the inventory is partial and that an observed provider account is not verified.

Saving provider choices is part of the same guarded local extension mutation as the connection state. The request includes the action revision and a digest of the proposed choices. If the catalog changed first, Guard rejects the write so an operator does not save a decision against a different action definition.

References: src/…/local_cli_api.py• L383-427 src/…/local_cli_api.py• L966-1050 dashboard/…/mcp-provider-actions.tsx• L52-114 dashboard/…/local-cli-api.ts• L475-520

Workflow proposals

Provider discovery can also return workflow proposals. A proposal names primary and supporting action slugs and records only whether provider guidance existed. It remains advisory: Guard does not retain plan text, arguments, account status, or session identifiers, and it never activates a workflow or grants its required actions.

The dashboard can show each proposal's requirements against the current action catalog. A missing action is unresolved, a saved Deny remains a saved Deny, and every proposal reports incomplete requirements and no granted permissions until a separate workflow control exists.

References: src/…/composio_workflows.py• L14-62 src/…/store_mcp_workflows.py• L12-44 src/…/store_mcp_workflows.py• L47-107 src/…/local_cli_api.py• L418-427

Policy document authoring

Guard exposes a separate MCP policy workflow for operators who need to inspect or propose policy changes. Validation is read-only and returns the candidate digest, current digest, semantic changes, and write plan. Creation stages the exact canonical document for human approval instead of writing policy state immediately.

Staged requests use a hashed idempotency key and expire after ten minutes. Guard does not persist raw idempotency keys or approval credentials. The native policy store owns request staging, reads, and status changes through compare-and-set operations, so a replay or concurrent change cannot silently replace the pending request.

The policy input boundary accepts only bounded, typed fields and known import modes. Unknown fields, malformed values, and oversized policy text fail before an unchecked argument can reach policy state. Applying a request rechecks the stored candidate, current policy digest, and policy integrity generation inside the shared transaction owner. Policy rows and the request status commit together, while a failed write rolls back policy changes and marks the request failed. Feature flags and the approval gate control whether writes can proceed. Recovery records durable non-replay metadata only; native policy and approval owners remain authoritative. The workflow returns stable bounded error codes rather than exception text, database details, paths, or credentials.

The authoring flow is shown below.

sequenceDiagram
    participant O as Operator or MCP client
    participant G as Guard policy tools
    participant A as Human approval gate
    participant S as Native policy store
    O->>G: Validate policy document
    G-->>O: Digest, diff, and write plan
    O->>G: Create candidate with expected digest
    G-->>O: Pending request and expiry
    A->>G: Approve exact request
    G->>S: Recheck candidate and current state
    S-->>G: Apply or reject
    G-->>O: Bounded status or stable error

References: src/…/policy_schemas.py• L1-74 src/…/policy_schemas.py• L98-116 src/…/policy_tools.py• L62-81 src/…/policy_tools.py• L168-286 src/…/policy_apply.py• L28-165 src/…/policy_store.py• L1-9 src/…/policy_store.py• L212-403 src/…/policy_recovery_state.py• L1-34 src/…/policy_errors.py• L1-83

Local Guard MCP interface

Guard exposes a local MCP interface for search, fetch, status, policy authoring, and context views. The stdio server uses one typed tool registry for tool listing, direct calls, and protocol registration, so a tool has one declared contract across each access path.

The local interface reads persisted MCP observations and authority through bounded response envelopes. It keeps only approved fields, applies size and text limits, removes unsafe control data, validates values through the native runtime, and returns no result when that sanitization step is unavailable. Search combines receipt and inventory views under one bound. Fetch selects only known local item kinds and safely echoes a bounded identifier when no item exists.

The policy tools use a trusted loopback origin from the native daemon locator when they build an approval link. The caller cannot supply that origin. If Guard cannot read a valid loopback locator, it keeps the policy request guarded instead of creating an untrusted approval URL.

References: src/…/server.py• L53-174 src/…/server.py• L176-242 src/…/registry.py• L178-259 src/…/tools.py• L1-121 src/…/sanitizers.py• L1-92 src/…/native_daemon_manage.py• L923-953

Declared context skills

Declared context skills are optional MCP tools that Guard exposes only after the native context service reports them for the current connection. They let an approved connection read cited context, explain a retained context or Guard decision, and propose or inspect shared context notes without granting command approval.

The connection holds a private native credential and receives a current tool list. Guard filters the protocol's tool list to that result and sends all arguments to native validation. Context is unavailable when pairing, workspace access, freshness, or the native service is not valid. A proposed note remains quarantined until an operator reviews it, while admitted evidence remains separate from executable permission.

References: src/…/server.py• L78-116 src/…/server.py• L182-211 src/…/native_context_agent.py• L27-121 src/…/context_tools.py• L12-99 src/…/context_fastmcp.py• L16-60

Workspace skill scans

The workspace skill scan reports SKILL.md files that an install places in a workspace. It compares each skill with the identity held by Guard and returns risk signals for the current files. A scan that cannot run is reported as unscanned, never as clean.

Guard saves new scan snapshots when it can. If storage fails after the scan, it still returns the findings and scans the skill again on the next request. If Guard cannot read the existing identity or the scan response is incomplete, it leaves the stored record unchanged and reports the scan as unavailable.

References: rust/…/skills_scan.rs• L1-9 rust/…/skills_scan.rs• L36-47 rust/…/skills_scan.rs• L70-143

Evidence and firewall identity

Guard carries MCP server and tool fingerprints into artifacts and receipts so later review can relate an action to the exact connection and declared surface. The firewall metadata also carries stable descriptor and publisher identifiers where available. Runtime activity records use redacted paths and bounded capability labels rather than raw provider output or secret values.

The shared MCP call projection supplies risk categories and a risk summary for a tool call. Tool-call receipts record that projection with MCP firewall evidence; receipt creation does not recompute the risk result. Display evidence is produced after the verdict, so a native evidence failure removes command text or runtime-action details without dropping the receipt, event, or already-executed tool result. This evidence supports review, change detection, and portal views. It does not turn a provider claim or a classification result into permission. The enforcement path still evaluates the live action against the matching connection grant and current policy.

References: src/…/runtime_mcp_projection.py• L1-74 src/…/mcp_tool_call_evidence.py• L1-57 src/…/mcp_tool_calls.py• L315-442

The parent page, Agent and tool integrations, explains how MCP proxies and agent adapters connect these discovery and governance paths to supported hosts. Related pages describe the broader security scanner and plugin analysis flow and the scanner security checks and rules that inform Guard's wider policy model.

References: src/…/mcp_protection.py• L10-60 src/…/local_cli_http.py• L13-48

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep configured-server extraction, Guard proxy recognition, source labels, and connection identity inputs aligned so a managed proxy is not wrapped twice and a grant does not move to a different host connection.
  • Keep server, connection, tool, and provider authority hashes aligned with the catalog and grant lookup rules. A new identity field must invalidate old authority rather than silently reuse it.
  • Keep partial-catalog merge rules aligned with changed-tool review, stale display, and the fallback for unseen tools.
  • Keep discovery job limits, cancellation, commit boundaries, reuse, retry backoff, and public failure codes aligned with API polling and refresh actions. Do not expose provider output or launch details through job status.
  • Keep provider metadata revisions, catalog tokens, provider choice revisions, and native authority publication aligned across discovery, dashboard paging, mutation, and the post-claim execution recheck.
  • Keep saved-approval claim and post-claim authority inputs aligned. A provider catalog change, tool identity change, configuration change, policy block, or failed fresh read must lead to reapproval rather than executable Allow.
  • Keep the provider account-binding state aligned across API responses, dashboard copy, and enforcement. Observed metadata must not gain an Allow path by accident.
  • Keep catalog contribution schema validation, native launch grammar, matching, package-source checks, package-manager environment checks, uniqueness checks, and the rule that only default package-launcher contributions may provide allow defaults aligned.
  • Keep MCP policy input bounds, known fields, import modes, hashed idempotency keys, request expiry, native compare-and-set status changes, candidate digests, expected current digests, integrity generations, approval bindings, recovery markers, feature flags, rollback behavior, and stable error envelopes aligned across staging and apply.
  • Keep the local MCP registry, stdio server, context-tool filtering, policy approval URL builder, response envelopes, sanitizer allowlists, native output checks, and status availability fields aligned so a new tool or output field does not bypass bounded display or trusted-origin rules.
  • Keep local MCP response envelopes, sanitizer allowlists, native output checks, and status availability fields aligned so a new output field does not bypass bounded display rules.
  • Keep registry query bounds, fixed-origin and managed-egress rules, response size and media checks, listing provenance, status handling, pinned package rules, remote URL rules, host verification, and the statement that setup grants no tool permission aligned.
  • Keep skill scan identity lookup, scan result status, snapshot writes, and the unavailable fallback aligned so a failed scan cannot appear clean or erase the last stored identity.

Important failure modes

TriggerConsequenceGuard
A configured server definition changes command, arguments, transport, or environment valuesThe old connection identity no longer matches and its grant cannot be reusedRe-discover the connection and review it as a new identity
More than four discovery jobs run at onceA new refresh is rejected as busy instead of adding another worker and child processWait for an active job to finish or cancel it before retrying
The same CLI session retries a failed discovery too soonThe refresh is rejected during the short backoff windowWait for the backoff to end, then start a new refresh
A discovery stage raises an unknown errorThe client receives discovery_failed and no provider or launch detailUse Guard's bounded background diagnostic and retry after fixing the host
A discovery job is cancelled before its write boundaryThe job stops without claiming that stored results existRetry the refresh when the host is ready
A local tools probe times out, changes catalog generation, or reaches a boundGuard stores a partial or stale catalog and changed or new tools return to reviewRetry with the host available and inspect the catalog freshness state
A provider action revision or catalog token is staleThe dashboard mutation is rejected rather than applied to a changed actionReload the first page and rebuild the pending choices
A provider catalog authority hash changes during tool-call evaluationThe call requires fresh review instead of using an action decision from the old inventoryRebuild the call and review the current provider action
A saved approval is claimed but fresh tool, arguments, configuration, or policy authority differsThe call requires reapproval and does not silently launch under the claimed AllowRe-read current authority and approve the exact new context
A provider action is denied inside an opaque or malformed batchThe whole provider execution remains blocked because Guard cannot prove the denied member is absentKeep the Deny floor and require a resolvable, separately reviewed action
An observed connector has an unseen toolThe tool does not inherit an allow from the observed subsetReview the exact new tool or keep the connector fallback restrictive
An ordinary wrapper grant or unverified account tries to remember a provider allowThe provider action stays in review or is rejected for remembered approvalVerify the provider account and review the exact action
A catalog contribution fails schema, grammar, or uniqueness validationThe invalid contribution is not loaded into the provider catalogCorrect the contribution and validate it before packaging or activation
A catalog contribution is inactive, mismatched, remote, direct-command, non-default package source, or uses package-manager override environmentIts default does not change the current action, and remote or direct launch cannot provide AllowEnable the reviewed contribution and use a valid default package-launcher identity
Native receipt evidence is unavailable after a tool-call verdictThe receipt keeps its decision and event, but command text or runtime-action evidence is absentReview the bounded receipt and retry evidence collection later
A policy input has an unknown field, invalid type, unsupported mode, or exceeds the size boundThe policy tool refuses the request before policy state can changeSend the bounded schema with a supported import mode
The same idempotency key is used for a different policy requestStaging is rejected instead of creating a second request with ambiguous replay behaviorUse a new idempotency key for a new candidate
A pending policy request reaches its expiry timeApply is rejected and the request becomes expiredCreate a new candidate and obtain approval again
A policy candidate, current digest, or integrity generation changes before applyThe policy write is rejected and the approved request cannot silently target new stateValidate and create a fresh candidate, then obtain approval again
A policy apply fails after policy work beginsPolicy rows roll back and the request is marked failed rather than leaving a partial writeInspect the bounded failure and stage a new request
A policy request is recovered twice or is already installedThe second recovery or unchanged installation is denied without changing native authorityInspect the request status and use the native policy owner
A policy tool receives malformed or oversized inputNo policy state changes and the client receives a stable bounded error codeCorrect the document or enable the intended guarded feature
The daemon locator is missing or its approval origin is not loopbackA pending policy request cannot receive a trusted approval URLStart or repair the local approval center, then query the request again
Local MCP output fails native sanitizationThe response is unavailable instead of returning unchecked or oversized dataRetry after the native runtime is available and keep output fields on the allowlist
A registry query is too short, too long, or contains a control characterSearch returns invalid_registry_search without contacting the registrySend a trimmed query from 2 to 80 characters
The registry returns a non-success response, another media type, or an unavailable exchangeSearch returns registry_unavailable and no setup candidateRetry when the official registry and managed network are available
A registry response exceeds the size bound or has malformed, duplicate, non-finite, or excessive dataSearch returns registry_response_too_large or registry_response_invalidSearch again and use a bounded valid registry page
A registry package is unpinned, uses a foreign source, has runtime or environment inputs, or is not a literal stdio recipeThe listing remains visible but no package setup option is offeredUse a reviewed setup path instead of treating the listing as install proof
The public registry listing changes between search, preview, and applySetup is rejected before the host configuration changesSearch again and review the exact current listing
Codex setup completes but the follow-up host rescan failsThe host connection exists but Guard's local view may remain partial or staleRetry discovery in Extensions and review permissions before use
A context service loses pairing or reports a tool outside the allowed context setContext skills disappear or return a bounded unavailable resultRe-pair the current MCP connection and use only the newly declared tools
A workspace skill scan cannot list skills, read stored identity, or return complete scan dataThe result is unscanned and existing stored skill data is not replacedRestore the native scan or store service and scan again

Key files

FileWhy to read it
src/…/harness_mcp_discovery.pyShows how configured harness MCP servers become bounded observations with source labels.
src/…/mcp_servers.pyShows which local stdio servers Guard can manage, how Guard proxy entries are recognized, and how original servers are recovered for observation.
src/…/observed_mcp_tools.pyShows how observed MCP tool names become connector namespaces without inventing endpoints or authority.
src/…/mcp_protection.pyDefines server and tool identity inputs used by discovery and permission matching.
src/…/mcp_connection_identity.pyDefines the host and configuration boundary for a configured connection.
src/…/local_mcp_probe.py and src/…/local_mcp_stdio.pyShow the bounded local tools-list discovery contract and partial-catalog behavior.
src/…/mcp_discovery_jobs.pyShows the bounded, cancellable job boundary for refresh work and its safe public status contract.
src/…/store_mcp_catalog.pyShows catalog revisions, changed-tool review, and authority hashes.
src/…/store_mcp_provider_catalog.pyShows provider action evidence, discovery-subset coverage, and catalog tokens.
src/…/store_mcp_provider_permissions.pyShows identity- and revision-bound provider choices.
src/…/mcp_provider_permissions.pyShows the conservative Ask and Deny provider contract and opaque-execution floor.
src/…/mcp_classification.py and src/…/native_mcp_classification.pyShow the bounded native classification boundary and the rule that unavailable evidence is not recreated locally.
src/…/mcp_server_contribution.py and src/…/mcp_server_catalog.pyShow reviewed contribution validation, launch matching, and command-extension catalog entries.
contributions/…/mcp.aletheia-mem.json, mcp.cappz-market.json, and mcp.wever-labs.jsonIllustrate how local, network, payment, and shared-state risk is expressed as opt-in tool defaults and safer alternatives.
rust/…/mcp_registry_search.rs and rust/…/mcp_registry_page.rsShow the fixed-origin registry search and the bounded, unverified listing and package-option rules.
src/…/mcp_registry_setup.pyShows the reviewed Codex host setup boundary after registry search.
src/…/server.py and src/…/registry.pyShow the local stdio MCP surface and its single tool-definition contract.
src/…/native_context_agent.py, src/…/context_tools.py, and src/…/context_fastmcp.pyShow how connection-scoped declared context skills are paired, filtered, and kept separate from command approval.
rust/…/skills_scan.rsShows the workspace skill inventory, risk scan, identity comparison, and unscanned fallback exposed to operators.
src/…/native_daemon_manage.pyShows the native approval-center locator used to build trusted local approval links.
src/…/policy_schemas.pyShows the bounded native input contract for MCP policy authoring.
src/…/policy_store.py and src/…/policy_apply.pyShow request expiry, idempotent staging, authoritative rechecks, transaction boundaries, and safe policy apply results.
src/…/sanitizers.py and src/…/tools.pyShow the local MCP response envelope, status view, and default-deny output boundary.
src/…/runtime_mcp_projection.pyShows the shared MCP call projection that supplies safe call display data and risk evidence.
src/…/mcp_tool_call_evidence.pyShows how post-verdict receipt evidence degrades safely when native evidence is unavailable.
src/…/mcp_tool_calls.py and src/…/mcp_tool_call_evaluation.pyShow native MCP evaluation results becoming receipts and runtime evidence, including provider action floors and approval claim revalidation.
src/…/policy_tools.py, src/…/policy_apply.py, and src/…/policy_errors.pyShow the bounded policy validation, approval-bound apply path, and stable MCP error contract.
src/…/policy_recovery_state.pyShows how recovery prevents replay without becoming a source of policy authority.
src/…/local_cli_api.pyConnects discovery jobs, provider pages, registry setup, policy authoring, and guarded mutations to the local API.
rust/…/harness_mcp_discovery_vectors.json and managed_upstream_vectors.jsonCapture the discovery grouping, identity matching, redaction, and managed-proxy recognition contracts.
rust/…/mcp_registry_page_tests.rs and rust/…/mcp_registry_search_tests.rsCapture registry query, response validation, endpoint filtering, and safe package-option contracts.
dashboard/…/mcp-provider-actions.tsxShows the operator view for provider action choices.
dashboard/…/mcp-registry-search.tsxShows the search, preview, approval, and host-setup workflow for public MCP listings.