Guard Core
v1.7.0Guard Core security MCP: SecurityConfig validation, docs search, live threat detection.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
versions Guard versions
Report which Guard libraries this server can introspect, and at which version. Call this first, before trusting any answer about a version-specific feature. It takes no arguments. Returns guard_core_mcp (this server's version), installed (the guard-core, fastapi-guard and guard-agent versions live in this interpreter), and docs_bundled_for and knowledge_bundled_for (the versions the bundled docs and the hand-written ecosystem notes describe). A null installed version means that library is absent from the interpreter running this server, so validate_config, co…
validate_config Validate config
Check a Guard config dict against the installed library's real pydantic model. Use this to confirm a config is valid, or to find out why a setting seems to have no effect. Use config_fields instead when you do not yet know the setting's name. Returns valid (bool), package, version, model, errors (type errors, each with field, message and input), unknown_fields (each with name and did_you_mean suggestions), deprecated (field and message) and construction_warnings. Unknown keys matter: pydantic silently ignores them, so a misspelled setting does nothing at runtime a…
| Parameter | Type | Description |
|---|---|---|
config * | object | The config as a JSON object of field names to values, exactly as you would pass it to the model's constructor |
package | string | Which Guard library's installed model to validate against. One of fastapi-guard (SecurityConfig), guard-core (SecurityConfig) or guard-agent (AgentConfig). Any other value returns an error object |
config_fields Config fields lookup
Find a Guard config setting by name or by what it does, with type and default. Use this to learn what a setting means, or whether a setting for some behaviour exists at all. Use validate_config instead to check a whole config you already wrote, and search_docs for prose explanations rather than field metadata. Returns package, version, query, exact and matches. An exact field name fills exact with that field's name, type, default, required flag and description (otherwise exact is null). Every query also fills matches with each other field whose name or description…
| Parameter | Type | Description |
|---|---|---|
query * | string | Either an exact config field name or plain words describing the behaviour. Matching is case-insensitive and word order does not matter |
package | string | Which Guard library's installed model to search. One of fastapi-guard, guard-core or guard-agent. Any other value returns an error object |
search_docs Search docs
Search the bundled Guard documentation and return ranked, citable pages. Use this to answer how or why questions from documentation, and to find the page to read in full with get_doc. Use config_fields instead for a setting's type and default, and adapter_setup or wire_agent for install and wiring steps. Returns query and results. Each result has package, path, heading, snippet, url (the live documentation page to cite) and score. Pass a result's package and path straight to get_doc to read the whole page. Read-only and offline: it searches the docs shipped insid…
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to look for in the bundled documentation. Pages are ranked by how often the words occur, so use specific terms |
limit | integer | Maximum number of results to return, highest score first |
package | Restrict the search to one library, for example fastapi-guard, guard-core or guard-agent. Omit to search every bundled library. An unrecognized name silently matches nothing |
get_doc Get doc page
Return the full text of one bundled Guard documentation page. Use this after search_docs when a snippet is not enough; it does not search. The package and path come from a search_docs result. Returns package, path, url (the live page to cite) and content (the full markdown). An unknown package or a path that does not exist returns {"error": "unknown doc path"}; the two cases are not distinguished. Read-only and offline, and it cannot read files outside the bundled documentation.
| Parameter | Type | Description |
|---|---|---|
package * | string | The library the page belongs to, copied from a search_docs result or from the keys versions reports under docs_bundled_for and knowledge_bundled_for |
path * | string | The page path relative to the library's bundled docs, copied from a search_docs result. Paths outside the bundled docs are rejected |
check_payload Check payload
Run one synthetic request through guard-core's real penetration-detection engine. Use this to confirm that an attack payload is caught, or to explain why a benign request was flagged. Use validate_config instead to check a config, not a request. Returns is_threat (bool), trigger_info (the matched parameter and pattern, empty when clean), threat_categories (for example sqli or xss), threat_scores (a score per category) and elapsed_ms. Verdicts come from the same detection path a live adapter runs. Read-only and sandboxed: the request is never sent anywhere and enab…
| Parameter | Type | Description |
|---|---|---|
body | Request body as a raw string, or a JSON object or array, which is serialized for you. Omit for a bodyless request | |
config | SecurityConfig fields to override guard-core's defaults, as a JSON object, to see how a setting changes the verdict. enable_redis is always forced off | |
headers | Request headers as a JSON object of names to values. Names are matched case-insensitively | |
method | string | HTTP method of the request to test |
path | string | Request path of the request to test |
query | Query-string parameters as a JSON object of names to string values |
ecosystem Ecosystem registry
Survey the whole Guard ecosystem: every language, engine, adapter and agent. Use this to resolve a package name or compare languages. It takes no arguments. When you already know the language and framework, use adapter_setup for one adapter or wire_agent for the telemetry agent instead, which return less. Returns the full registry for five languages (python, go, typescript, php, rust). Each language entry holds its engine (name, install command, version, release_status, conformance status), every framework adapter with a verified quick-start snippet and the Python…
adapter_setup Adapter setup
Get the install command and a verified minimal integration for one Guard adapter. Use this when you know the language and web framework and want working setup code. Use ecosystem instead to survey every adapter, and wire_agent to set up telemetry. Returns language, engine (package, install command, release_status and conformance status of the engine the adapter depends on) and adapter (install command, release_status, its role in the framework, the Python adapter it mirrors, and a quick-start snippet taken verbatim from the adapter's README). Snippets reflect the…
| Parameter | Type | Description |
|---|---|---|
framework * | string | The adapter slug for that language, or the adapter package name. An unknown slug returns an error object listing the valid ones |
language * | string | The language of the adapter. One of python, go, typescript, php or rust. Any other value returns an error object |
wire_agent Wire agent
Get how to set up the Guard telemetry agent for one language. Use this to ship security events and metrics to the guard-core-app backend. Use adapter_setup instead for the request-blocking middleware itself. Returns language, agent (package, install command, release_status, quick-start snippet, and a summary of its buffer, flush, overflow and retry semantics), ingestion (the guard-core-app contract the agent ships against: endpoints, headers, HMAC signing, size limits and response semantics) and framework_note. For python the note points at the bundled guard-agent…
| Parameter | Type | Description |
|---|---|---|
language * | string | The language whose telemetry agent to set up. One of python, go, typescript, php or rust. Any other value returns an error object |
framework | Optional adapter slug of that language, to add a note on how the agent hooks into that adapter. Omit for the agent alone |