Configuration¶
pcp_mcp.config
¶
Configuration for the PCP MCP server.
PCPMCPSettings
¶
Bases: BaseSettings
Configuration for the PCP MCP server.
Attributes:
| Name | Type | Description |
|---|---|---|
host |
str
|
pmproxy host. |
port |
int
|
pmproxy port. |
use_tls |
bool
|
Use HTTPS for pmproxy connection. |
timeout |
float
|
Request timeout in seconds. |
target_host |
str
|
Target pmcd host to monitor (can be remote hostname). |
username |
str | None
|
HTTP basic auth user. |
password |
str | None
|
HTTP basic auth password. |
verify
property
¶
TLS verification setting for httpx.
Returns:
| Type | Description |
|---|---|
bool | str
|
False if verification disabled, path to CA bundle if specified, |
bool | str
|
or True for default system verification. |
is_host_allowed
¶
Check if a host is allowed by the allowlist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
host
|
str
|
The hostspec to validate. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the host is allowed, False otherwise. |