costhawk 1.5.20 → 1.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2889,12 +2889,14 @@ function getProviderProxyUrl(provider) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
function formatIntegrationsMarkdown(integrations) {
|
|
2891
2891
|
if (integrations.length === 0) {
|
|
2892
|
-
let output = `#
|
|
2893
|
-
output += `
|
|
2894
|
-
output += `
|
|
2892
|
+
let output = `# Wrapped Proxy Keys\n\n`;
|
|
2893
|
+
output += `CostHawk MCP is connected and authenticated.\n\n`;
|
|
2894
|
+
output += `No wrapped proxy keys are configured yet. This is normal if you only set up Codex Desktop, Claude Code, Cursor, or another MCP/local-tool integration.\n\n`;
|
|
2895
|
+
output += `Wrapped proxy keys are optional and only needed when you want application/provider API calls to route through CostHawk's proxy. To add one, go to ${API_BASE_URL}/dashboard/wrapped-keys.\n\n`;
|
|
2896
|
+
output += `Use \`costhawk_get_proxy_guide\` with \`topic: "quickstart"\` only if you want proxy setup instructions.\n`;
|
|
2895
2897
|
return output;
|
|
2896
2898
|
}
|
|
2897
|
-
let output = `#
|
|
2899
|
+
let output = `# Wrapped Proxy Keys\n\n`;
|
|
2898
2900
|
output += `**${integrations.length} active wrapped key(s)**\n\n`;
|
|
2899
2901
|
output += `| Provider | Alias | Key Prefix | Env | 30d Cost | 30d Calls | Proxy URL |\n`;
|
|
2900
2902
|
output += `|----------|-------|------------|-----|----------|-----------|----------|\n`;
|
|
@@ -4988,7 +4990,7 @@ server.registerTool("costhawk_get_proxy_guide", {
|
|
|
4988
4990
|
};
|
|
4989
4991
|
});
|
|
4990
4992
|
server.registerTool("costhawk_list_integrations", {
|
|
4991
|
-
description: `List
|
|
4993
|
+
description: `List active CostHawk wrapped proxy keys only. This tool is for provider API proxy integrations, not for verifying Codex Desktop, Claude Code, Cursor, or MCP/local-tool setup. If it returns no wrapped proxy keys, explain that the MCP connection can still be working and that wrapped keys are an optional next step for routing application/provider API calls through CostHawk.\n\nIMPORTANT: Always display the COMPLETE output in your response using markdown tables. Never summarize or truncate.`,
|
|
4992
4994
|
inputSchema: ListIntegrationsSchema,
|
|
4993
4995
|
annotations: READ_ONLY_ANNOTATIONS,
|
|
4994
4996
|
}, async (args, _extra) => {
|
|
@@ -5384,4 +5386,4 @@ run().catch((error) => {
|
|
|
5384
5386
|
console.error("Fatal error:", error);
|
|
5385
5387
|
process.exit(1);
|
|
5386
5388
|
});
|
|
5387
|
-
//# sourceMappingURL=index.js.map
|
|
5389
|
+
//# sourceMappingURL=index.js.map
|