Skip to content

API Reference parrot.integrations.mcp.fireflies_a2a

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

parrot.integrations.mcp.fireflies_a2a

View source

Fireflies.ai MCP credential adapter for the A2A per-user credential bridge.

OQ#6 resolved (2026-06-27 — FEAT-263 / TASK-1648): Fireflies.ai accepts exclusively a static API key from the user. No OAuth flow is involved. The API key is captured out-of-band (OOB) by directing the user to a capture page, then stored per-user in vault under fireflies:api_key via :class:~parrot.services.vault_token_sync.VaultTokenSync.

Architecture:

  • :class:FirefliesCredentialResolver: per-user static-key resolver backed by vault (VaultTokenSync). First use (key absent) → returns None and surfaces an OOB capture link. After the user submits their key (via :meth:FirefliesCredentialResolver.store_key), subsequent calls return the key.
  • The resolver integrates with :class:~parrot.a2a.server.A2AServer via :meth:~parrot.a2a.server.A2AServer.wire_fireflies_resolver.

Vault key layout::

fireflies:api_key   → the user's Fireflies.ai API key

Usage::

from parrot.integrations.mcp.fireflies_a2a import FirefliesCredentialResolver
from parrot.services.vault_token_sync import VaultTokenSync

vault = VaultTokenSync(db_pool=app["authdb"], redis=app["redis"])
resolver = FirefliesCredentialResolver(
    vault_token_sync=vault,
    oob_capture_url="https://your-app.example.com/auth/fireflies/capture",
)
a2a_server.wire_fireflies_resolver(resolver)

Alias CredentialResolver

Re-exported from parrot.auth.credentials.CredentialResolver.

Attribute FIREFLIES_API_KEY_FIELD

Type: str

Attribute FIREFLIES_PROVIDER

Type: str

Class FirefliesCredentialResolver

Per-user static API key resolver for the Fireflies.ai MCP server.

Fireflies.ai exposes its data via an MCP server authenticated with a per-user static API key (no OAuth). This resolver stores and retrieves the API key from the user vault using :class:VaultTokenSync.

On first use (no key in vault) the resolver returns None and provides an OOB capture URL via :meth:get_auth_url. Once the operator calls :meth:store_key (e.g. from an API endpoint where the user submits their key), subsequent :meth:resolve calls return the key.

Vault layout::

fireflies:api_key   → str (the user's Fireflies.ai API key)

Example::

vault = VaultTokenSync(db_pool=app["authdb"], redis=app["redis"])
resolver = FirefliesCredentialResolver(
    vault_token_sync=vault,
    oob_capture_url="https://app.example.com/auth/fireflies/capture",
)
a2a_server.wire_fireflies_resolver(resolver)
Parameter Type Default Description
vault_token_sync Any A configured :class:~parrot.services.vault_token_sync.VaultTokenSync instance.
oob_capture_url str URL to which the A2A bridge directs the user to submit their Fireflies API key when none is stored.

Attributes:

Attribute Type Description
PROVIDER str
KEY_FIELD str

Method FirefliesCredentialResolver.resolve

Return the per-user Fireflies API key from vault, or None.

Reads fireflies:api_key from the vault entry for user_id. Returns None if the key is absent (user must complete OOB capture).

resolve(channel: str, user_id: str) -> Optional[str]

Parameter Type Default Description
channel str A2A channel string (e.g. "a2a:copilot"); not used for key lookup but accepted for interface consistency.
user_id str Canonical per-user identity (email / OID).

Returns: Optional[str] — The Fireflies API key as a plain string, or None if not set.

Method FirefliesCredentialResolver.get_auth_url

Return the OOB capture URL where the user can submit their API key.

The URL is the same for all users (no per-user state is embedded). The A2A bridge appends ?a2a_state=<interaction_id> when building the consent link, so the capture endpoint can correlate the callback.

get_auth_url(channel: str, user_id: str) -> str

Parameter Type Default Description
channel str A2A channel string (not used here).
user_id str Canonical per-user identity (not used here).

Returns: str — The OOB capture URL as configured at construction time.

Method FirefliesCredentialResolver.store_key

Persist the Fireflies API key for user_id in the vault.

Called by the OOB capture endpoint after the user submits their key. Subsequent :meth:resolve calls will return the stored key.

Secrets MUST NOT be logged. Only the fact that a key was stored is logged at DEBUG level.

store_key(user_id: str, api_key: str) -> None

Parameter Type Default Description
user_id str Canonical per-user identity (email / OID).
api_key str The Fireflies API key provided by the user. Stored as fireflies:api_key in the vault; never echoed in logs.

Attribute logger

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