Repository navigation
API Reference parrot.mcp.integration
Re-exported from parrot.tools.abstract.AbstractTool.
Re-exported from parrot.auth.exceptions.AuthorizationRequired.
Re-exported from parrot.mcp.chrome.ChromeManager.
Re-exported from parrot.mcp.oauth.InMemoryTokenStore.
Complete MCP client with stdio and HTTP transport support.
| Parameter | Type | Default | Description |
|---|---|---|---|
config |
MCPServerConfig |
||
tool_name_prefix |
Optional[str] |
None |
Connect to MCP server using appropriate transport.
connect()
Call an MCP tool.
Rate-limit responses (-32429) are retried with the server-suggested
retryAfter delay (or an exponential fallback), up to
rate_limit_max_retries. A suggested wait longer than
rate_limit_max_wait fails fast instead of blocking the agent loop —
the error is surfaced so the caller can move on rather than hammering a
throttled server.
call_tool(tool_name: str, arguments: Dict[str, Any], headers: Optional[Dict[str, str]] = None)
| Parameter | Type | Default | Description |
|---|---|---|---|
tool_name |
str |
||
arguments |
Dict[str, Any] |
||
headers |
Optional[Dict[str, str]] |
None |
Get raw available tools from server.
get_available_tools() -> List[Dict[str, Any]]
Returns: List[Dict[str, Any]]
Get tools, filtered by context.
If a context is provided, tools will be filtered based on the context's scopes and roles. Tools may specify required scopes in their metadata.
get_tools_for_context(context: Optional[ReadonlyContext] = None) -> List[Dict[str, Any]]
| Parameter | Type | Default | Description |
|---|---|---|---|
context |
Optional[ReadonlyContext] |
None |
Optional ReadonlyContext for filtering |
Returns: List[Dict[str, Any]] — List of tool dictionaries accessible to the context
Get tools filtered by configuration and context.
Filtering precedence:
- tool_filter (new dynamic filtering) - highest priority
- allowed_tools / blocked_tools (legacy) - fallback
- No filter - all tools
get_tools(context: Optional[ReadonlyContext] = None) -> List[MCPToolProxy]
| Parameter | Type | Default | Description |
|---|---|---|---|
context |
Optional[ReadonlyContext] |
None |
Optional ReadonlyContext for context-aware decisions |
Returns: List[MCPToolProxy] — List of MCPToolProxy objects that are available
Disconnect from MCP server.
disconnect()
Re-exported from parrot.mcp.client.MCPConnectionError.
Mixin to add complete MCP capabilities to agents.
| Parameter | Type | Default | Description |
|---|---|---|---|
*args |
() |
||
**kwargs |
{} |
Add an MCP server with full feature support.
add_mcp_server(config: MCPServerConfig) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
config |
MCPServerConfig |
Returns: List[str]
Add a local stdio MCP server.
add_local_mcp_server(name: str, script_path: Union[str, Path], interpreter: str = 'python', **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
script_path |
Union[str, Path] |
||
interpreter |
str |
'python' |
|
**kwargs |
{} |
Returns: List[str]
Add an HTTP MCP server.
add_http_mcp_server(name: str, url: str, auth_type: Optional[str] = None, auth_config: Optional[Dict[str, Any]] = None, headers: Optional[Dict[str, str]] = None, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
url |
str |
||
auth_type |
Optional[str] |
None |
|
auth_config |
Optional[Dict[str, Any]] |
None |
|
headers |
Optional[Dict[str, str]] |
None |
|
**kwargs |
{} |
Returns: List[str]
Add an MCP server with API key auth.
add_api_key_mcp_server(name: str, url: str, api_key: str, header_name: str = 'X-API-Key', **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
url |
str |
||
api_key |
str |
||
header_name |
str |
'X-API-Key' |
|
**kwargs |
{} |
Returns: List[str]
Add an MCP server with OAuth2 authorization code support.
Accepts either a ready-built :class:~parrot.mcp.oauth2_config.MCPOAuth2Config
(via the oauth2 parameter) or individual parameters for backward
compatibility.
add_oauth_mcp_server(name: str, url: str, user_id: Optional[str] = None, oauth2: Optional[MCPOAuth2Config] = None, credential_provider: Optional[str] = None, client_id: Optional[str] = None, auth_url: Optional[str] = None, token_url: Optional[str] = None, scopes: Optional[List[str]] = None, client_secret: Optional[str] = None, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
Server name / registry key. | |
url |
str |
MCP server base URL. | |
user_id |
Optional[str] |
None |
User identifier for token storage scoping. |
oauth2 |
Optional[MCPOAuth2Config] |
None |
Pre-built OAuth2 configuration. |
credential_provider |
Optional[str] |
None |
|
client_id |
Optional[str] |
None |
OAuth2 client ID (legacy). |
auth_url |
Optional[str] |
None |
Authorization endpoint (legacy). |
token_url |
Optional[str] |
None |
Token endpoint (legacy). |
scopes |
Optional[List[str]] |
None |
OAuth2 scopes (legacy). |
client_secret |
Optional[str] |
None |
OAuth2 client secret (legacy). |
**kwargs |
{} |
Extra :class:~parrot.mcp.client.MCPClientConfig fields. |
Returns: List[str] — List of registered MCP tool names.
Add a Perplexity MCP server capability.
add_perplexity_mcp_server(api_key: str, name: str = 'perplexity', **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str |
||
name |
str |
'perplexity' |
|
**kwargs |
{} |
Returns: List[str]
Add Fireflies.ai MCP server capability.
add_fireflies_mcp_server(api_key: Optional[str] = None, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
Optional[str] |
None |
Fireflies API key (optional; falls back to FIREFLIES_API_KEY env var) |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: List[str] — List of registered tool names
Add Chrome DevTools MCP server capability.
add_chrome_devtools_mcp_server(browser_url: str = 'http://127.0.0.1:9222', name: str = 'chrome-devtools', headless: bool = False, user_data_dir: Optional[str] = None, channel: Optional[str] = None, viewport: Optional[str] = None, executable_path: Optional[str] = None, isolated: bool = False, no_usage_statistics: bool = True, auto_connect: bool = False, ensure_running: bool = True, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
browser_url |
str |
'http://127.0.0.1:9222' |
URL where Chrome is listening for devtools protocol. |
name |
str |
'chrome-devtools' |
Server name. |
headless |
bool |
False |
Run Chrome without UI. |
user_data_dir |
Optional[str] |
None |
Path to Chrome profile directory. |
channel |
Optional[str] |
None |
Chrome channel (stable/beta/dev/canary). |
viewport |
Optional[str] |
None |
Initial viewport size, e.g. "1280x720". |
executable_path |
Optional[str] |
None |
Path to custom Chrome executable. |
isolated |
bool |
False |
Use temporary profile. |
no_usage_statistics |
bool |
True |
Opt out of Google telemetry. |
auto_connect |
bool |
False |
Auto-connect to local Chrome (144+). |
ensure_running |
bool |
True |
Start (or reuse) a managed local Chrome behind browser_url before connecting, via :func:ensure_chrome_running. Only applies to loopback hosts and is skipped when auto_connect is set. Pass False when the browser is managed externally. |
**kwargs |
{} |
Additional MCPServerConfig parameters. |
Returns: List[str] — List of registered tool names.
Add the native Obscura MCP server capability.
Registers Obscura's own obscura mcp stdio tool schema — a
separate capability from Chrome DevTools MCP
(:meth:add_chrome_devtools_mcp_server), which remains available
and unaffected.
add_obscura_mcp_server(binary_path: Optional[str] = None, name: str = 'obscura', port: int = 9222, stealth: bool = False, allow_private_network: bool = False, env: Optional[Dict[str, str]] = None, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
binary_path |
Optional[str] |
None |
Path to (or PATH-resolvable name of) the Obscura binary. |
name |
str |
'obscura' |
Server name. |
port |
int |
9222 |
CDP port Obscura's native MCP mode should use internally. |
stealth |
bool |
False |
Enable Obscura's stealth mode. |
allow_private_network |
bool |
False |
Enable --allow-private-network. |
env |
Optional[Dict[str, str]] |
None |
Additional environment variables for the stdio subprocess. |
**kwargs |
{} |
Additional MCPServerConfig parameters. |
Returns: List[str] — List of registered tool names.
Add Google Maps MCP server capability.
add_google_maps_mcp_server(name: str = 'google-maps', **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
'google-maps' |
Server name |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: List[str] — List of registered tool names
Add a QUIC/HTTP3 MCP server connection.
add_quic_mcp_server(name: str, host: str, port: int, cert_path: Optional[str] = None, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
host |
str |
||
port |
int |
||
cert_path |
Optional[str] |
None |
|
**kwargs |
{} |
Returns: List[str]
Add a WebSocket MCP server connection.
add_websocket_mcp_server(name: str, url: str, auth_type: Optional[str] = None, auth_config: Optional[Dict[str, Any]] = None, headers: Optional[Dict[str, str]] = None, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
Server name | |
url |
str |
WebSocket URL (ws:// or wss://) | |
auth_type |
Optional[str] |
None |
Authentication type ("bearer", "api_key", "oauth") |
auth_config |
Optional[Dict[str, Any]] |
None |
Authentication configuration |
headers |
Optional[Dict[str, str]] |
None |
Additional headers for WebSocket upgrade |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: List[str] — List of registered tool names
remove_mcp_server(server_name: str)
| Parameter | Type | Default | Description |
|---|---|---|---|
server_name |
str |
Reconfigure an existing MCP server with new configuration.
reconfigure_mcp_server(config: MCPServerConfig) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
config |
MCPServerConfig |
New MCPServerConfig with updated parameters |
Returns: List[str] — List of registered tool names
Reconfigure Fireflies MCP server with a new API key.
This is useful in multi-user scenarios where each user provides their own Fireflies API key. The method will disconnect the existing connection and reconnect with the new credentials.
reconfigure_fireflies_mcp_server(api_key: str, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str |
New Fireflies API key | |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: List[str] — List of registered tool names
Reconfigure Perplexity MCP server with a new API key.
Useful for updating the API key without restarting the agent.
reconfigure_perplexity_mcp_server(api_key: str, name: str = 'perplexity', **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str |
New Perplexity API key | |
name |
str |
'perplexity' |
Server name (default: "perplexity") |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: List[str] — List of registered tool names
list_mcp_servers() -> List[str]
Returns: List[str]
Get OpenAI-compatible MCP definitions for registered servers.
get_openai_mcp_tools(server_names: Optional[List[str]] = None) -> List[Dict[str, Any]]
| Parameter | Type | Default | Description |
|---|---|---|---|
server_names |
Optional[List[str]] |
None |
Optional list of server names to filter by |
Returns: List[Dict[str, Any]] — List of tool definitions in valid OpenAI MCP format
Add AlphaVantage MCP server capability.
add_alphavantage_mcp_server(api_key: Optional[str] = None, name: str = 'alphavantage', **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
Optional[str] |
None |
AlphaVantage API key |
name |
str |
'alphavantage' |
Server name (default: "alphavantage") |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: List[str] — List of registered tool names
Add NetSuite MCP server capability via OAuth2 Authorization Code + PKCE.
Constructs the NetSuite MCP configuration from the given credentials and
registers it with this agent. Scope is fixed to ["mcp"].
add_netsuite_mcp_server(account_id: str, client_id: str, user_id: Optional[str] = None, credential_provider: Optional[str] = None, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
account_id |
str |
NetSuite account ID (e.g. "4984231"). |
|
client_id |
str |
OAuth2 client ID from the NetSuite integration record. | |
user_id |
Optional[str] |
None |
Caller's user identifier for token storage scoping. |
credential_provider |
Optional[str] |
None |
|
**kwargs |
{} |
Additional keyword arguments forwarded to :func:create_netsuite_mcp_server (e.g. token_store, redirect_host, redirect_port). |
Returns: List[str] — List of registered tool names from the NetSuite MCP server.
Add NetSuite MCP server via OAuth2 Client Credentials (M2M) with certificate.
No browser login is needed — the agent authenticates using a JWT signed with the provided private key.
add_netsuite_m2m_mcp_server(account_id: str, client_id: str, certificate_id: str, private_key_path: str, **kwargs) -> List[str]
| Parameter | Type | Default | Description |
|---|---|---|---|
account_id |
str |
NetSuite account ID (e.g. "4984231"). |
|
client_id |
str |
OAuth2 client ID from the NetSuite integration record. | |
certificate_id |
str |
Mapping Key from the uploaded certificate in NetSuite. | |
private_key_path |
str |
Path to a PEM-encoded RSA private key file. | |
**kwargs |
{} |
Forwarded to :func:create_netsuite_m2m_mcp_server. |
Returns: List[str] — List of registered tool names.
Add all Google GenMedia MCP servers.
Available servers:
- mcp-avtool-go
- mcp-chirp3-go
- mcp-gemini-go
- mcp-imagen-go
- mcp-lyria-go
- mcp-veo-go
add_genmedia_mcp_servers(**kwargs) -> Dict[str, List[str]]
| Parameter | Type | Default | Description |
|---|---|---|---|
**kwargs |
{} |
Returns: Dict[str, List[str]]
Setup multiple MCP servers during initialization.
This is useful for configuring an agent with multiple MCP servers at once, typically during agent creation or from configuration files.
setup_mcp_servers(configurations: List[MCPServerConfig]) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
configurations |
List[MCPServerConfig] |
List of MCPServerConfig objects |
shutdown(**kwargs)
| Parameter | Type | Default | Description |
|---|---|---|---|
**kwargs |
{} |
Re-exported from parrot.mcp.oauth2_config.MCPOAuth2Config.
Re-exported from parrot.mcp.client.MCPRateLimitError.
Re-exported from parrot.mcp.client.MCPClientConfig.
Proxy tool that wraps an individual MCP tool.
| Parameter | Type | Default | Description |
|---|---|---|---|
mcp_tool_def |
Dict[str, Any] |
||
mcp_client |
MCPClient |
||
server_name |
str |
||
require_confirmation |
Union[bool, Callable[[str, Dict], bool]] |
False |
|
**kwargs |
{} |
Bypass Pydantic validation for MCP tools. Return raw kwargs so AbstractTool.execute uses original arguments.
validate_args(**kwargs) -> Dict[str, Any]
| Parameter | Type | Default | Description |
|---|---|---|---|
**kwargs |
{} |
Returns: Dict[str, Any]
Override to return the MCP tool schema directly. MCP provides the full schema in inputSchema, which corresponds to the 'parameters' field.
get_tool_schema() -> Dict[str, Any]
Returns: Dict[str, Any]
Raised when an MCP HTTP server fails the handshake validation check.
Re-exported from parrot.mcp.context.ReadonlyContext.
Re-exported from parrot.mcp.oauth.RedisTokenStore.
Re-exported from parrot.mcp.oauth.TokenStore.
Re-exported from parrot.tools.abstract.ToolResult.
Re-exported from parrot.mcp.oauth.VaultTokenStore.
Create configuration for AlphaVantage MCP server.
create_alphavantage_mcp_server(api_key: Optional[str] = None, name: str = 'alphavantage', **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
Optional[str] |
None |
AlphaVantage API key (defaults to ALPHAVANTAGE_API_KEY env var) |
name |
str |
'alphavantage' |
Server name |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: MCPServerConfig — MCPServerConfig for AlphaVantage
Create configuration for API key authenticated MCP server.
create_api_key_mcp_server(name: str, url: str, api_key: str, header_name: str = 'X-API-Key', use_bearer_prefix: bool = False, **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
Unique name for the MCP server | |
url |
str |
Base URL of the MCP server | |
api_key |
str |
API key for authentication | |
header_name |
str |
'X-API-Key' |
Header name for the API key (default: "X-API-Key") |
use_bearer_prefix |
bool |
False |
If True, prepend "Bearer " to the API key value (default: False) |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: MCPServerConfig — MCPServerConfig instance
Create configuration for Chrome DevTools MCP server.
This MCP server connects to a Chrome instance running with known remote debugging port. It automatically installs the chrome-devtools-mcp package using npx.
This factory is a pure config builder: it does not start Chrome.
To start (or reuse) a managed local Chrome behind browser_url, use
:func:ensure_chrome_running or
MCPEnabledMixin.add_chrome_devtools_mcp_server(ensure_running=True).
create_chrome_devtools_mcp_server(browser_url: str = 'http://127.0.0.1:9222', name: str = 'chrome-devtools', headless: bool = False, user_data_dir: Optional[str] = None, channel: Optional[str] = None, viewport: Optional[str] = None, executable_path: Optional[str] = None, isolated: bool = False, no_usage_statistics: bool = True, auto_connect: bool = False, **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
browser_url |
str |
'http://127.0.0.1:9222' |
URL where Chrome is listening for devtools protocol. |
name |
str |
'chrome-devtools' |
Server name. |
headless |
bool |
False |
Run Chrome without UI (default: False — visible). |
user_data_dir |
Optional[str] |
None |
Path to Chrome user data directory (profile). |
channel |
Optional[str] |
None |
Chrome channel — "stable", "beta", "dev", "canary". |
viewport |
Optional[str] |
None |
Initial viewport size, e.g. "1280x720". |
executable_path |
Optional[str] |
None |
Path to custom Chrome executable. |
isolated |
bool |
False |
Use temporary user-data-dir, cleaned up on close. |
no_usage_statistics |
bool |
True |
Opt out of Google usage statistics. |
auto_connect |
bool |
False |
Auto-connect to locally running Chrome (144+). |
**kwargs |
{} |
Additional MCPServerConfig parameters. |
Returns: MCPServerConfig — MCPServerConfig configured for Chrome DevTools.
Create configuration for Fireflies MCP server using stdio transport.
Fireflies MCP requires using npx mcp-remote as a command-line proxy.
create_fireflies_mcp_server(*, api_key: Optional[str] = None, api_base: str = 'https://api.fireflies.ai/mcp', **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
Optional[str] |
None |
Fireflies API key (optional; falls back to FIREFLIES_API_KEY env var) |
api_base |
str |
'https://api.fireflies.ai/mcp' |
Base URL of the Fireflies MCP endpoint |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: MCPServerConfig — MCPServerConfig instance configured for stdio transport
Raises:
-
ValueError— When no API key is available from argument or environment.
Create configuration for Google Maps MCP server.
This MCP server connects to Google Maps Platform. It automatically installs the @googlemaps/code-assist-mcp package using npx.
create_google_maps_mcp_server(name: str = 'google-maps', **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
'google-maps' |
Server name |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: MCPServerConfig — MCPServerConfig configured for Google Maps
Create configuration for HTTP MCP server.
create_http_mcp_server(name: str, url: str, auth_type: Optional[str] = None, auth_config: Optional[Dict[str, Any]] = None, headers: Optional[Dict[str, str]] = None, **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
url |
str |
||
auth_type |
Optional[str] |
None |
|
auth_config |
Optional[Dict[str, Any]] |
None |
|
headers |
Optional[Dict[str, str]] |
None |
|
**kwargs |
{} |
Returns: MCPServerConfig
Create configuration for local stdio MCP server.
create_local_mcp_server(name: str, script_path: Union[str, Path], interpreter: str = 'python', **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
script_path |
Union[str, Path] |
||
interpreter |
str |
'python' |
|
**kwargs |
{} |
Returns: MCPServerConfig
Create a NetSuite MCP server using OAuth2 Client Credentials (M2M) with certificate.
This is the machine-to-machine variant — no browser login required.
Authentication uses a JWT client_assertion signed with the private key
whose matching X.509 certificate was uploaded to the NetSuite Integration Record.
create_netsuite_m2m_mcp_server(*, account_id: str, client_id: str, certificate_id: str, private_key_path: str, name: str = 'netsuite', token_store: Optional[TokenStore] = None, headers: Optional[Dict[str, Any]] = None) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
account_id |
str |
NetSuite account ID (e.g. "4984231"). |
|
client_id |
str |
OAuth2 client ID from the NetSuite integration record. | |
certificate_id |
str |
Certificate ID shown in NetSuite after uploading the public certificate (Mapping Key field). | |
private_key_path |
str |
Path to a PEM-encoded RSA private key file. | |
name |
str |
'netsuite' |
Server name (default "netsuite"). |
token_store |
Optional[TokenStore] |
None |
Optional :class:~parrot.mcp.oauth.TokenStore. |
headers |
Optional[Dict[str, Any]] |
None |
Extra HTTP headers. |
Returns: MCPServerConfig — class:MCPServerConfig configured for NetSuite M2M.
Create a NetSuite MCP server configuration using OAuth2 Authorization Code + PKCE.
Constructs NetSuite-specific auth/token URLs from the given account_id
and uses the NetSuite preset from :mod:parrot.mcp.oauth2_config for the
full OAuth2 flow. Scope is fixed to ["mcp"] as required by the
NetSuite AI Connector.
create_netsuite_mcp_server(*, account_id: str, client_id: str, user_id: Optional[str] = None, name: str = 'netsuite', headers: Optional[Dict[str, Any]] = None, credential_provider: Optional[str] = None) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
account_id |
str |
NetSuite account ID (e.g. "4984231"). |
|
client_id |
str |
OAuth2 client ID from the NetSuite integration record. | |
user_id |
Optional[str] |
None |
Caller's user identifier used to scope token storage. |
name |
str |
'netsuite' |
Server name used as the registry key (default "netsuite"). Override when connecting two NetSuite accounts simultaneously (e.g. "netsuite-sandbox"). |
headers |
Optional[Dict[str, Any]] |
None |
Extra HTTP headers to include with every MCP request. |
credential_provider |
Optional[str] |
None |
Returns: MCPServerConfig — class:~parrot.mcp.client.MCPClientConfig configured for NetSuite.
Create an MCP server configuration with OAuth2 authorization code flow.
Accepts either a ready-built :class:~parrot.mcp.oauth2_config.MCPOAuth2Config
or individual legacy parameters for backward compatibility.
create_oauth_mcp_server(*, name: str, url: str, user_id: Optional[str] = None, oauth2: Optional[MCPOAuth2Config] = None, credential_provider: Optional[str] = None, client_id: Optional[str] = None, auth_url: Optional[str] = None, token_url: Optional[str] = None, scopes: Optional[list] = None, client_secret: Optional[str] = None, headers: Optional[dict] = None, **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
Server name / registry key. | |
url |
str |
MCP server base URL. | |
user_id |
Optional[str] |
None |
Optional user identifier. None selects delegated mode: the per-call broker credential is injected and credential_provider is required. |
oauth2 |
Optional[MCPOAuth2Config] |
None |
Pre-built OAuth2 configuration. When None, a config is constructed from the legacy client_id / auth_url / etc. params. |
credential_provider |
Optional[str] |
None |
Broker provider for delegated mode. |
client_id |
Optional[str] |
None |
OAuth2 client ID (used when oauth2 is None). |
auth_url |
Optional[str] |
None |
Authorization endpoint (used when oauth2 is None). |
token_url |
Optional[str] |
None |
Token endpoint (used when oauth2 is None). |
scopes |
Optional[list] |
None |
OAuth2 scopes (used when oauth2 is None). |
client_secret |
Optional[str] |
None |
OAuth2 client secret (used when oauth2 is None). |
headers |
Optional[dict] |
None |
Extra HTTP headers for every MCP request. |
**kwargs |
{} |
Additional :class:~parrot.mcp.client.MCPClientConfig fields. |
Returns: MCPServerConfig — class:~parrot.mcp.client.MCPClientConfig ready for use with class:~parrot.mcp.transports.http.HttpMCPSession.
Create configuration for the native Obscura MCP server.
This is Obscura's own obscura mcp stdio server exposing its
native browser tool schema — a separate capability from Chrome
DevTools MCP (:func:create_chrome_devtools_mcp_server), which
remains available and unaffected.
Unlike Chrome DevTools MCP (which attaches to a separately
launched Chrome via --browser-url), Obscura's native MCP mode is
self-contained: the obscura mcp subprocess manages its own
browser engine directly and is spawned/supervised by the MCP
transport layer (StdioMCPSession) itself. This factory is
therefore a pure config builder — like
:func:create_chrome_devtools_mcp_server, it does not start or
supervise anything. Process supervision for the separate CDP
(obscura serve) mode used by :class:PlaywrightDriver is
:class:parrot.mcp.obscura.ObscuraProcessManager's job and is
unrelated to this native MCP configuration.
create_obscura_mcp_server(*, binary_path: Optional[str] = None, name: str = 'obscura', port: int = 9222, stealth: bool = False, allow_private_network: bool = False, env: Optional[Dict[str, str]] = None, **kwargs: Any) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
binary_path |
Optional[str] |
None |
Path to (or PATH-resolvable name of) the Obscura binary. Defaults to "obscura" (resolved via PATH by the stdio transport at connect time). |
name |
str |
'obscura' |
Server name. |
port |
int |
9222 |
CDP port Obscura's native MCP mode should use internally. |
stealth |
bool |
False |
Enable Obscura's stealth mode. |
allow_private_network |
bool |
False |
Enable --allow-private-network. Must not be enabled silently in general deployments. |
env |
Optional[Dict[str, str]] |
None |
Additional environment variables for the stdio subprocess. |
**kwargs |
Any |
{} |
Additional MCPServerConfig parameters. |
Returns: MCPServerConfig — MCPServerConfig configured for the native Obscura MCP server.
Create configuration for Perplexity MCP server.
The Perplexity MCP server provides 4 tools:
- perplexity_search: Direct web search via Search API
- perplexity_ask: Conversational AI with sonar-pro model
- perplexity_research: Deep research with sonar-deep-research
- perplexity_reason: Advanced reasoning with sonar-reasoning-pro
create_perplexity_mcp_server(api_key: str, *, name: str = 'perplexity', timeout_ms: int = 600000, **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str |
Perplexity API key (get from perplexity.ai/account/api) | |
name |
str |
'perplexity' |
Server name for tool prefixing |
timeout_ms |
int |
600000 |
Request timeout (default 600000ms for deep research) |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: MCPServerConfig — MCPServerConfig configured for Perplexity
Create configuration for QUIC MCP server.
create_quic_mcp_server(name: str, host: str, port: int, cert_path: Optional[str] = None, serialization: str = 'msgpack', **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
Server name | |
host |
str |
Server hostname | |
port |
int |
Server port | |
cert_path |
Optional[str] |
None |
Path to TLS certificate (optional for client if trusted) |
serialization |
str |
'msgpack' |
Serialization format ("msgpack" or "json") |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: MCPServerConfig — MCPServerConfig configured for QUIC transport
Create a Unix socket MCP server configuration.
create_unix_mcp_server(name: str, socket_path: str, **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
Server name | |
socket_path |
str |
Path to Unix socket | |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: MCPServerConfig — MCPServerConfig configured for Unix socket transport
Create a WebSocket MCP server configuration.
create_websocket_mcp_server(name: str, url: str, auth_type: Optional[str] = None, auth_config: Optional[Dict[str, Any]] = None, headers: Optional[Dict[str, str]] = None, **kwargs) -> MCPServerConfig
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
Server name | |
url |
str |
WebSocket URL (ws:// or wss://) | |
auth_type |
Optional[str] |
None |
Authentication type ("bearer", "api_key", "oauth", or None) |
auth_config |
Optional[Dict[str, Any]] |
None |
Authentication configuration dict |
headers |
Optional[Dict[str, str]] |
None |
Additional HTTP headers for WebSocket upgrade |
**kwargs |
{} |
Additional MCPServerConfig parameters |
Returns: MCPServerConfig — MCPServerConfig configured for WebSocket transport
Start (or reuse) the managed local Chrome behind browser_url.
Only loopback hosts are managed. For a remote browser_url the caller
is expected to run the browser itself and None is returned without
touching the registry. Managers are cached per port in
_chrome_managers so repeated calls reuse the same process and
MCPEnabledMixin.shutdown() can stop it.
A Chrome that fails to become ready is logged as a warning, not raised: the MCP connection that follows will surface the failure.
ensure_chrome_running(browser_url: str, headless: bool = False) -> Optional[ChromeManager]
| Parameter | Type | Default | Description |
|---|---|---|---|
browser_url |
str |
URL where Chrome is (or should be) listening for the DevTools protocol, e.g. http://127.0.0.1:9222. |
|
headless |
bool |
False |
Launch Chrome without a visible window when it has to be started. |
Returns: Optional[ChromeManager] — The ChromeManager for the port, or None when the host is not local.
Re-exported from parrot.mcp.oauth2_config.get_mcp_oauth2_preset.
Re-exported from parrot.mcp._quic.quic_attr.
Validate that an MCP HTTP server is reachable and lists its tools.
Connects to the MCP server described by config, retrieves the tool listing once, then disconnects. On any failure the client is always disconnected before the exception propagates.
validate_mcp_http(config: MCPServerConfig) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
config |
MCPServerConfig |
An :class:MCPServerConfig (MCPClientConfig) instance describing the target MCP HTTP server (URL, auth, etc.). |
Raises:
-
MCPValidationError— When the server is unreachable, times out, or returns an unexpected tool-listing response.
- 1. MCP Server — exposing tools as a service
- 2. A2A — exposing agents and orchestrators as services
- 3. Toolkits for third party services and Cloud Security composition
- 4. Interaction surface — WebSockets, audio, integrations
- 5. Hardening — anti prompt injection, PBAC and tool gating
- 6. Cross cutting concerns and reference deployment
- 7. AgentCrew — Sequential, Parallel, Flow and Loop execution
- 8. AgentsFlow — DAG first orchestration with per node FSM
- 9. Ontologic RAG — graph first retrieval, intent routing & multi tenant knowledge
- 10. Observability — OpenLIT + OpenTelemetry
- Class Catalog by Module
- Module level Functions Catalog
- AI Parrot — Exposure, Interoperability & Hardening Architecture
- Agent Mesh
- AgentService — Standalone Runtime for Autonomous Agents
- AbstractClient: The Provider Client Family
- Anthropic client
- Bedrock Mantle Client
- TypeSafe System One Client (
JevClient) - Meta Model API Client (Muse Spark)
- OpenAI Compatible Client Base (
OpenAIBaseClient) - Per Loop LLM Client Cache
- Question Token Budgets (Bedrock Converse, Nova text, Bedrock Mantle)
- Agent Configure Lifecycle
- AgentTalk Integration Guide
- Agent Configuration via
agents.yaml - AgentFactory HTTP API
- Agent Studio — API Reference
- Agent CLI Daemon (agentd)
- FirefliesInsightsAgent
- Follow up Suggestion Chips (FEAT 752)
- Agents and Chatbots: The Bot Class Hierarchy
- Agent Studio — database storage (host guide)
- Ephemeral User Agents — Frontend Integration Handoff
parrot agent— Agent Terminal Workspace- Crew Handler
- Database Agent
- Running the CVE Experts
- Domain Experts (FEAT 778)
- FEAT 437
- Technical Voice Guide (AgentTalk Voice) for Frontend
- AgentDashboard — A2UI v1.0 Technical Reference for
navigator frontend next - Semantic UI Model → Adaptive Cards (FEAT 303)
- Exposing an AI Parrot Agent as an MCP Server
- AgentCrew User Guide
- AgentsFlow User Guide
- Crew Definition Storage
- A2UI Agent Functions Runtime — the v1.0 RPC leg (FEAT 469)
- Capabilities of an AI Parrot Analytical Agent (PandasAgent)
- Agent Security Guardrails (FEAT 761)
- SpawnSubAgentTool
- Testagent
- Agentic End to End Testing (FEAT 581)
- Uiagent
- WebAgent — Browser Interaction via Chrome DevTools
- WebNavigatorAgent — Catalogued Web Navigation on Your Chrome Profile
- ExecutionMemory Integration Guide
- Agent Brain
- Agent Memory
- Conversation History Ownership
- Conversation Memory Subsystem Overview
- Dream Cycle — episodic → wiki brain consolidation
- Durable Conversation Memory
- Memory Dynamics
- Per Turn Conversation Compaction
- Recoverable Task Memory (FEAT 538)
- Task Memory — Phase 0 Integration Map (FEAT 538 / TASK 2970)
- User Memory
- Bookstore Agentic Retrieval
- Bookstore in Codex
- Bookstore Conceptual Relations — the book graph (FEAT 533)
- Bookstore notebooks
- Contracts catalog performance (FEAT 539, AC14)
- Contracts pilot acceptance — Bob's twelve cases (FEAT 539, AC15)
- Contracts Card & Ontology (FEAT 539)
- Luau parser resource policy (FEAT 532 TASK 2896)
- Glossary of Terms (FEAT 917)
- GraphIndex core seams (FEAT 540)
- GraphIndex — Structured Knowledge Graph Indexing
- Local Knowledge Base
- Procedure Graph — Assembly Manuals (FEAT 601)
- Ontology backend programme
- Ontology vocabulary store
- PageIndex Agentic Retrieval and Citations
- PageIndex Generation Publication
- PageIndex Layout Structure Builder
- PageIndex Local MCP Toolkit
- PageIndex Segment Store
- PageIndex Tree Optimizer
- PageIndex — Tree Based RAG for Document Retrieval
- ArxivTool for AI Parrot
- Accounting metrics layer
- Tool Result Compression Pipeline (FEAT 380)
- DatasetManager Implementation Walkthrough
- FredAPITool Documentation
- EmployeesTool Employee Hierarchy Tool for AI Parrot
- HoobaToolkit
- Jira text templates (JiraToolkit)
- Expose Toolkits as Local MCP (
parrot mcp local) - MultiStoreSearch Toolkit — Multi Origin Retrieval for Agents
- Supervised Obscura Browser Integration
- OdooHelpdeskToolkit — Softhealer helpdesk on Odoo 19
- OdooToolkit Capabilities
- QuerysourceToolkit
- ReadOnlyRepoToolkit (FEAT 484)
- PythonREPLTool Sandbox: Worker Process Execution Model
- Research Tools for Agents
- gVisor Installation Guide for AI Parrot Secure Sandbox
- SDD Sandbox — OS Setup
- Governed semantic layer
- Tool optimizations for Claude Code and Codex (FEAT 543)
- AbstractTool Clone Method
- Toolbar API Documentation
- AudioNoteCaptureToolkit
- ExecutionPlanToolkit — Reference
- Host toolkits for Agent Studio
- Infographic Authoring for Data Agents (FEAT 326)
- InfographicToolkit — Reference
- Tool System Internals: Tools, Toolkits and ToolManager
- AI Parrot Tools Documentation
- What If Scenario Analysis
- Workday worker history
- DecisionFlowNode Usage Guide
- Multi Agent Orchestration: AgentCrew and AgentsFlow
- Docker Tool Executor & Execution Policy
- Generic Gate Host
- HeartbeatManager — Per Agent Autonomous Heartbeat Loop
- JobManager
- Node Types Reference
- OrchestratorAgent — Multi Party Conferencing (
confer) - Planogram compliance cycle (perceive → identify → compare)
- Planogram compliance — migrating configurations to the new cycle (FEAT 574, FEAT 612)
- Planogram perception spike — FEAT 574
- Scheduler backends in multi worker deployments
- Thales User Guide
- Per tenant skills (FEAT 707)
- Skill routing and trigger caching
- Skills system: discovery, toolkits and mixin
- Contextual Embedding Headers
- DocumentDB Usage Patterns
- DocumentDB Interface Guide
- DynamoDB Local (docker compose)
- Fully offline local agent with LanceDB (FEAT 542)
- LanceDB vector, full text and hybrid store (FEAT 542)
- Loader Metadata Standard
- Document Loaders for RAG
- Matryoshka Embedding Truncation
- Parent Child Retrieval (Small to Big)
- Storage Backends Guide
- User stores (Redis by default)
- Vector Stores and Embeddings Reference
- Vector Store Handler — API Reference
- A2A Secure Communication Demo
- Agent as a Local MCP Server (parrot toolkits install agent)
- add repository:
- GitHub MCP Installation and Usage
- MCP integration: client, server and agent tools
- Create and configure agent
- Roost — local inter agent sub protocol
- Roost carriers
- Roost performatives, protocols and obligations
- Simple Mcp Server
- SimpleMCPServer Configuration
- API Endpoints Reference
- Admin UI (FEAT 468)
- Infographic Render Endpoint — Reference
- EventBus v2 Configuration Reference (
[bus]/[bus.alerts]) - EventBus v2 Migration Notes (FEAT 310)
- EventBus v2 — Unified Event Fabric (FEAT 310)
- Session file store
- A2UI Dashboard + Widget Renderer — Frontend Build Guide
- Avatar Technical Guide (LiveAvatar Phase A) for Frontend
- Frontend Guide for SvelteKit: LiveAvatar FULL Mode and VoiceBot (FEAT 248)
- DEPRECATED: Native Voice Avatar (LiveAvatar Phase C) Technical Guide for Frontend
- Technical Guide to Structured Artifacts for Frontend
- VoiceBot · VoiceChatHandler · FEAT 245 — Frontend Guide for Realtime Conversation with Agents
- Server Layer: BotManager and HTTP Handlers
- Infographic Handler — Frontend API Contract
- Interactive Artifacts — Frontend API Contract
- Google Drive file manager
- SharePoint & OneDrive file managers
- WhatsApp Integration Implementation Summary
- WhatsApp Integration for AI Parrot
- P3 — parrot admin ui inventory (canvases / A2UI / infographic / builders)
- WhatsApp + AutonomousOrchestrator Integration
- Audio Form Voice Modes — Developer Guide
- Who owns an OAuth2 (3LO) credential
- CommCenter — Bulk Notification Sender (FEAT 417)
- FormDesigner → MS Teams: Adaptive Card renderer and bot submit path (FEAT 551)
- GitHub reviewer
- Google OAuth 2.0 — AI Parrot Integration
- Fireflies Agent Examples
- HITL Tool Call Confirmation (FEAT 235)
- Teams HITL Channel Setup Guide (FEAT 205)
- JiraSpecialist Prompt Layer Stack
- JiraSpecialist — Daily Standup Lanes
- Jira Transition Actions — Activating
TRIGGER_AGENTDispatch - Jupyter Output Mode Documentation
- Knowledge upload from chat (FEAT 647)
- LiveAvatar over your own LiveKit (Cloud or self hosted)
- Matrix Bridges for the AI Parrot Swarm (FEAT 463)
- Matrix Clients for the AI Parrot Swarm (FEAT 463)
- Migration Guide: FEAT 202 — ai parrot integrations
- Connections on Microsoft Teams
- MS Teams Toolkit for AI Parrot
- Nova Sonic Voice Protocol Reference
- Office 365 OAuth 2.0 (Delegated) — AI Parrot Integration
- PR Review Command — Setup Guide
- Queued chat commands
- Runbook — the
issuesnamespace (Jira ticket corpus) - Dev loop kick off from Slack (FEAT 555)
- Telegram Auth Open Mode (webview | browser)
- Telegram connections
- Telegram Bot Integration Guide
- FEAT 536 — VoiceBot Nova Dual Output + LiveAvatar: Real Live Operational Acceptance
- FEAT 537 — Nova VoiceBot avatar broadcast: operational acceptance
- FEAT 537 — Nova PCM → LiveAvatar LITE → LiveKit multi subscriber live gate
- speech_report TTS backends
- Nova VoiceBot avatar broadcast for multiple browsers (FEAT 537)
- 🦜 AI Parrot Voice Chat
- WhisperX Setup Guide for AI Parrot
- A2UI Linked Surfaces (FEAT 598)
- A2UI v1.0 Wire (FEAT 470)
- === D3.js ===
- Backend HTML Design System (FEAT 493)
- FEAT 488
- FormDesigner Audio Renderer
- Form Designer — Autonomous FormSchema Persistence (Standalone Forms)
- Form Designer — Conditional Sections: Pre/Post Dependencies
- FormBuilder — LLM answer plausibility enforcement
- FormDesigner — orphan upload cleanup (FEAT 731)
- FormDesigner — public response controls
- Form Designer — Relational Fields
- Serving FormDesigner forms from a Teams agent
- Form Designer — Unknown Field Capture Policy for Form Submissions
- FormDesigner — validation audit trail
- Infographic Recipes (FEAT 324)
- Inline A2UI Component Routing (FEAT 755)
- Metric Definition Registry (FEAT 756)
- Smart OutputFormatter Documentation
- N4 — navigator api backend inventory (dashboards / widgets / templates / modules / programs)
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens)
- P2 — ai parrot (Python) UI components, models, renderers, persistence — inventory for a REPORT BUILDER
- P4 — ai parrot prior art for a Report Builder (SDD inventory)
- ai parrot server — Admin / Bots / Studio / misc endpoint inventory
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens) ( core)
- parrot formdesigner — HTTP/WS endpoint inventory
- Report Builder — ai parrot inventory and analysis
- WeasyPrint 69.0 CSS Support — Empirical Findings
- Identity Capability User Guide
- Layers Reference
- Output Language (FEAT 638)
- PromptBuilder — User Modifiable Variables
- PromptBuilder User Guide
- Delegated OAuth2 connections
- Delegated OAuth2 connections on the web channel — deployment recipe and live harness
- Deterministic Groundedness Scoring
- ONNX Backend for the Prompt Injection Guardrail (FEAT 439)
- PBAC Guardrails — Policy Driven Tool Call Denial (FEAT 406)
- SecurityAdvisor — SOC2 Oriented Read Only Advisory Agent
- User Profile Management
- AI Parrot MCP Server AWS Deployment Guide
- Bot Cleanup Lifecycle
- Business Automation — Operator Runbook
parrot loginand connections- CompanyInfoToolkit
- Per component and per agent LLM defaults (FEAT 796, FEAT 882)
- Answer Accuracy Metrics for the Evaluation Harness (FEAT 652)
- Infographic CSP and Signed URLs — Operations Guide
- Global install: the parrot managed runtime (reference)
- Runbook — the Fireflies Meeting Registry
- Wiki standup briefs — runbook
parrot.finance— the finance satellite- Migration — FEAT 201: ai parrot embeddings
- Migration — FEAT 203: ai parrot server
- FEAT 223 — Structured Artifact Contract: Migration Guide
- FEAT 273 — Legacy output mode deprecations → A2UI
- Migration — FEAT 315: Unified NovaClient for all Amazon Nova models
- Migration — FEAT 421: Client declared tenant in the forms URL
- Migration — FEAT 446: SaaS Auth Hardening (S0 of Parrot Research Cloud)
- Migration — FEAT 473: A2UI v1.0 for STRUCTURED_CHART / STRUCTURED_TABLE / STRUCTURED_MAP
- Migration — FEAT 523: PEP 420 LLM Client Extraction
- Gemini 2.5 retirement (FEAT 798)
- Migration — FEAT 564: Reliable video reels with Gemini Omni and Veo 3.1
- Native Claude sandbox for SDD sessions (FEAT 768)
- Complementary (collaborative) research partner (FEAT 482)
- Dev flow per seat LLM configuration (
DevFlowModelPlan) - Dev loop
novabackend (AWS Bedrock) - sdd worker as orchestrator of parallel sdd coder seats (FEAT 549)
- SDD compaction capability record
- SDD execution optimization — operation and rollout
- Proposals to Reduce SDD Execution Time
- Dev flow / dev loop telemetry accounting
- Language Agnostic Validation Runners (FEAT 709)
- Spec Driven Development in Google Gemini / Antigravity CLI
- Guide to using the SDD slash commands
- AI Parrot Spec Driven Development (SDD) Platform
- SDD on Google Antigravity (agy)
/sdd donecloseout hooks- Decision Audit (FEAT 784)
- SDD experience memory
- SDD Expert Consult
- Ledger outbox (FEAT 758)
- FEAT 580 LSP Pilot — Live Evaluation Results
- SDD LSP research pilot (FEAT 580)
- Necessity Ladder (FEAT 908)
- Procedure Graph
- Test selection in the SDD flow — the Validation Contract (FEAT 699)
- wikitoolkit Cheatsheet
- wikitoolkit inbox
- wikitoolkit lint
- LLM Wiki — an agent maintained knowledge repository
- Schema Plane — Operator Guide (FEAT 600)
- SQLite concurrency for wiki and ledger
- wikitoolkit standup
- WikiToolkit as Claude Code infrastructure
- Authentication uses Navigator Auth
- AbstractClient base changes require a decision
- Clients are memory less
- Configuration uses NavConfig
- Graph backends — retire ArangoDB for PostgreSQL + SurrealDB
- Conversation history has one writer
- HTTP stack uses aiohttp
- LangChain is not part of the stack
- Async code remains non blocking
- Concrete tools live in ai parrot tools