check_config
Validates ChiliPiper MCP configuration by displaying current settings and testing API connectivity.
Instructions
Validate ChiliPiper MCP configuration. Shows current settings and tests API connectivity.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:212-239 (handler)The handler function for the 'check_config' tool. It displays current configuration (domain, api_key, base_url, fire_url) and tests API connectivity by sending an OPTIONS request.
async () => { const config = { domain: DOMAIN || "(not set)", api_key: API_KEY ? `${API_KEY.substring(0, 8)}...` : "(not set)", base_url: BASE_URL, fire_url: FIRE_URL, }; let connectivity = "untested"; try { const res = await fetch( `${BASE_URL}/marketing/${DOMAIN || "test"}`, { method: "OPTIONS" } ); connectivity = `reachable (HTTP ${res.status})`; } catch (err) { connectivity = `unreachable: ${err.message}`; } return { content: [ { type: "text", text: `ChiliPiper MCP Config:\n${JSON.stringify(config, null, 2)}\n\nConnectivity: ${connectivity}`, }, ], }; } - index.js:207-240 (registration)Registration of the 'check_config' tool on the MCP server via server.tool(), with the name, description, empty schema, and handler.
// --- Tool: Check config --- server.tool( "check_config", "Validate ChiliPiper MCP configuration. Shows current settings and tests API connectivity.", {}, async () => { const config = { domain: DOMAIN || "(not set)", api_key: API_KEY ? `${API_KEY.substring(0, 8)}...` : "(not set)", base_url: BASE_URL, fire_url: FIRE_URL, }; let connectivity = "untested"; try { const res = await fetch( `${BASE_URL}/marketing/${DOMAIN || "test"}`, { method: "OPTIONS" } ); connectivity = `reachable (HTTP ${res.status})`; } catch (err) { connectivity = `unreachable: ${err.message}`; } return { content: [ { type: "text", text: `ChiliPiper MCP Config:\n${JSON.stringify(config, null, 2)}\n\nConnectivity: ${connectivity}`, }, ], }; } ); - index.js:211-211 (schema)Input schema for check_config is an empty object {}, meaning this tool accepts no parameters.
{},