Skip to content

API Reference parrot.knowledge.wiki.codex.installer

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.knowledge.wiki.codex.installer

View source

Idempotent installer for Codex WikiToolkit infrastructure.

Attribute GLOSSARY_HOOKS_PATH

Alias WikiProjectConfig

Re-exported from parrot.knowledge.wiki.project.WikiProjectConfig.

Alias WikiRemoteConfig

Re-exported from parrot.knowledge.wiki.project.WikiRemoteConfig.

Alias assets

Re-exported from parrot.knowledge.wiki.codex.assets.

Alias config_path

Re-exported from parrot.knowledge.wiki.project.config_path.

Function install_codex_integration

Install project-scoped Codex instructions, skill, MCP, and rules.

install_codex_integration(root: Path, config: Optional[WikiProjectConfig] = None, gitignore: bool = True, bookstore: bool = True, remote: Optional[WikiRemoteConfig] = None, portable: Optional[bool] = None) -> list[str]

Parameter Type Default Description
root Path Repository root.
config Optional[WikiProjectConfig] None Wiki project config; loaded from root when omitted.
gitignore bool True Add .parrot/ to .gitignore.
bookstore bool True Install the Bookstore MCP server and skill when an indexed library exists (no indexing performed).
remote Optional[WikiRemoteConfig] None Register wikitoolkit as a native HTTP MCP (FEAT-569).
portable Optional[bool] None True: bare launcher commands, False: baked absolute paths, None: keep the current form (inferred from the managed block — the stdio wikitoolkit table, else the managed parrot-* tables), or follow the managed launcher on a fresh host.

Returns: list[str] — Human-readable list of actions performed.

Function integration_status

Report whether each Codex integration artifact is installed.

integration_status(root: Path) -> dict[str, Any]

Parameter Type Default Description
root Path

Returns: dict[str, Any]

Alias load_effective_config

Re-exported from parrot.knowledge.wiki.project.load_effective_config.

Function reconcile_toolkit_tables

Regenerate ONLY the [mcp_servers.parrot-<name>] tables in .codex/config.toml.

The managed marker block also carries the wikitoolkit table; this function preserves that table's existing text verbatim and rewrites the toolkit tables around it (FEAT-570 AC5). A parrot-<name> table present OUTSIDE the managed block is foreign: it is reported as a warning and omitted, never overwritten.

Codex has no per-entry managed-shape check (unlike Claude and Google) — ownership is structural: inside the marker block means ours.

reconcile_toolkit_tables(root: Path, *, portable: Optional[bool] = None) -> tuple[list[str], list[str]]

Parameter Type Default Description
root Path Project root.
portable Optional[bool] None None infers via :func:_current_portable_mode (sticky — the parrot toolkits path via mcp/hosts.py::CodexAdapter.reconcile).

Returns: tuple[list[str], list[str]] — (actions, warnings) — human-readable strings.

Alias resolve_portable_mode

Re-exported from parrot.mcp.portability.resolve_portable_mode.

Alias save_project_config

Re-exported from parrot.knowledge.wiki.project.save_project_config.

Alias shared_state_root

Re-exported from parrot.launcher.shared_state_root.

Function uninstall_codex_integration

Remove only Codex artifacts managed by this installer.

uninstall_codex_integration(root: Path) -> list[str]

Parameter Type Default Description
root Path

Returns: list[str]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally