Skip to content

API Reference parrot.integrations.matrix.registration

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

parrot.integrations.matrix.registration

View source

Generate Matrix Application Service registration YAML.

Produces a Synapse/Conduit/Tuwunel-compatible registration file that must be placed in the homeserver data directory and referenced in homeserver.yaml under app_service_config_files.

Function generate_registration

Generate an AS registration YAML.

generate_registration(as_token: str, hs_token: str, *, bot_localpart: str = 'parrot', namespace_regex: str = 'parrot-.*', as_url: str = 'http://localhost:9090', as_id: str = 'ai-parrot', output_path: Optional[str] = None) -> dict

Parameter Type Default Description
as_token str Application Service token (AS → HS auth).
hs_token str Homeserver token (HS → AS auth).
bot_localpart str 'parrot' Localpart for the bot user.
namespace_regex str 'parrot-.*' Regex for the exclusive user namespace.
as_url str 'http://localhost:9090' URL where the AS HTTP server listens.
as_id str 'ai-parrot' Unique identifier for this AS.
output_path Optional[str] None If provided, write YAML to this path.

Returns: dict — The registration dict.

Function generate_tokens

Generate random AS and HS tokens.

generate_tokens() -> tuple[str, str]

Returns: tuple[str, 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