owner: gmikcon status: active last_reviewed: 2026-05-11 review_interval: 30d confidence: high
This document explains what the Gnexus Book MCP server is for and how an AI agent should use it.
Gnexus Book is the canonical knowledge base for the owner's digital and server infrastructure.
The MCP server is the agent-facing interface to that knowledge base. It lets an agent read and maintain documentation without knowing the repository layout, raw REST API, or Git workflow.
The MCP server is valuable because it gives agents:
Agents should not wait for the user to explicitly say "look in the knowledge base".
If a task mentions or depends on the owner's infrastructure, the agent should consult Gnexus Book proactively before giving a confident answer or making changes.
Use MCP proactively for questions about:
At the beginning of an infrastructure-related task, agents should call get_agent_usage_guide() if they are not already familiar with this workflow.
Do not use MCP for unrelated general knowledge.
Do not use MCP to store secrets. Raw passwords, access tokens, private keys, recovery codes, session cookies, and secret config values must not be written to documentation or pending changes.
It is acceptable to document non-secret operational identifiers:
owner-managed or ssh-key;auth required or read-only SSH key.Start broad, then narrow.
search_docs(query) for natural-language lookup.read_doc(path) for canonical narrative context.list_inventory(inventory_type) for structured records.get_inventory_item(inventory_type, item_id) when the id is known.get_relationships() when dependencies, routes, upstreams, domains, or unresolved references matter.check_freshness() when deciding whether documentation may be stale.validate_repository() before trusting the repository state for maintenance work.Examples:
git.gnexus.space, search docs for git.gnexus.space, then inspect domains, services, endpoints, and relationships.smart-home-server, read the server and automation docs, then inspect hosts, hardware, services, databases, and backups.Documentation writes should be factual, focused, and committed.
The default stance is: if the agent learns a durable, non-secret infrastructure fact that will be useful later, the agent should update Gnexus Book during the same task.
Durable facts include:
Do not update the canonical docs for purely temporary observations unless they are useful as discovery notes. Use 90-maintenance/discovery-observations/ for scans, uncertain findings, or facts that should not yet become canonical inventory.
For non-trivial changes:
propose_doc_change or propose_inventory_item_change.apply_pending_change.validate_repository.commit_changes.For simple full-document changes, update_doc can create the pending change, apply it, validate it, and commit it in one operation.
Every write should include:
summary;reason;last_reviewed updates only when the agent actually verified the fact.If the agent decides not to update Gnexus Book after learning a relevant fact, it should state why. Acceptable reasons include:
Use this decision table:
| Situation | Tool |
|---|---|
| Agent is unsure how to use this MCP server | get_agent_usage_guide() |
| Broad lookup by phrase or object name | search_docs(query) |
| Read canonical narrative docs | read_doc(path) |
| See available structured inventory types | list_inventory() |
| Read all records of one inventory type | list_inventory(inventory_type) |
| Read one known record | get_inventory_item(inventory_type, item_id) |
| Understand dependencies/routes/upstreams | get_relationships() |
| Check staleness | check_freshness() |
| Check repository safety before/after changes | validate_repository() |
| Create/update a Markdown page | propose_doc_change() then apply_pending_change() |
| Create/update structured YAML inventory | propose_inventory_item_change() then apply_pending_change() |
| Review local changes | git_status() and git_diff() |
| Commit validated changes | commit_changes() |
| Simple full-document replacement | update_doc() |
Before finishing an infrastructure-related task, the agent should check:
For GitBucket repositories, last commit date matters.
Default interpretation:
Do not call a repository active only because it exists in GitBucket.
If live observations and documentation disagree:
confidence, notes, or discovery-observation docs.When this MCP server is listed in an agent's available tools, the agent should treat it as infrastructure memory.
A good system prompt rule is:
Before answering infrastructure-specific questions or making infrastructure-related changes, consult Gnexus Book MCP proactively. Use it to verify documented facts, discover relationships, and update documentation after new facts are found.