Borrowing it
Nothing to install: this file belongs to onwardplatforms/infracodebase-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/onwardplatforms/infracodebase-mcp/main/.claude/skills/connect-self-hosted-https/SKILL.mdgit clone --depth 1 https://github.com/onwardplatforms/infracodebase-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/onwardplatforms/infracodebase-mcp/connect-self-hosted-https)<a href="https://agentmods.dev/skills/onwardplatforms/infracodebase-mcp/connect-self-hosted-https"><img src="https://agentmods.dev/badge/skills/onwardplatforms/infracodebase-mcp/connect-self-hosted-https/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/onwardplatforms/infracodebase-mcp/connect-self-hosted-https"><img src="https://agentmods.dev/badge/skills/onwardplatforms/infracodebase-mcp/connect-self-hosted-https.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.01976 |
| Opus 5.5 | $0.00036 | $0.00790 |
| Sonnet 5.5 | $0.00018 | $0.00395 |
| Haiku 4.5 | $0.00009 | $0.00198 |
Grade A, and why
connect-self-hosted-https scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
> **Don't test the cert with `curl`.** On macOS `curl` trusts the system keychain, so How it starts
The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Connect the infracodebase MCP server to a self-hosted HTTPS API
The server takes all configuration from environment variables (or flags) supplied
by the MCP client — there is no init, no auth login, and no stored config file.
Connecting to a self-hosted instance means setting two (sometimes three) env vars in
the client's server definition.
The variables
| Variable | Purpose | Required |
|---|---|---|
INFRACODEBASE_TOKEN |
Personal access token (icb_pat_...) |
Yes |
INFRACODEBASE_API_URL |
Your instance's API base, e.g. https://infra.acme.com/api/v1 |
Yes for self-hosted (defaults to the SaaS) |
NODE_EXTRA_CA_CERTS |
Path to your CA cert — only for HTTPS with a private/self-signed cert | Only if TLS fails |
Step 1 — point at your instance
Use the --env flag (repeatable) on claude mcp add. The -- separates Claude's
flags from the command that launches the server.
Via npx (published package):
claude mcp add infracodebase \
--env INFRACODEBASE_TOKEN=icb_pat_xxx \
--env INFRACODEBASE_API_URL=https://infra.acme.com/api/v1 \
-- npx -y @infracodebase/mcp@2
From a local clone (after npm install && npm run build):
claude mcp add infracodebase \
--env INFRACODEBASE_TOKEN=icb_pat_xxx \
--env INFRACODEBASE_API_URL=https://localhost:3000/api/v1 \
-- node /abs/path/to/infracodebase-mcp/dist/index.js
Equivalent mcp.json (Claude Desktop / Cursor / etc.):
{
"mcpServers": {
"infracodebase": {
"command": "npx",
"args": ["-y", "@infracodebase/mcp@2"],
"env": {
"INFRACODEBASE_TOKEN": "icb_pat_xxx",
"INFRACODEBASE_API_URL": "https://infra.acme.com/api/v1"
}
}
}
}
Add --scope user (or set it in user config) to make the server available across all
projects instead of just the current one.
Step 2 — handle the certificate (HTTPS only)
Plain http:// (e.g. http://localhost:3000) needs nothing further — skip this step.
For https:// with a CA-signed cert (most public/internal hosts), it also just
works. The problem is only self-signed or private-CA certs: Node's fetch rejects
them and the server logs:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed bfc677e3ee52
- 2mo ago First seen · 169 lines · 91 tokens per session scan A e41631b65e2e
connect-self-hosted-https is a skill published in the GitHub repository onwardplatforms/infracodebase-mcp (2 stars, last pushed yesterday), licensed MIT. It adds 91 tokens to every session and 1,976 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
connect-self-hosted-https compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| connect-self-hosted-httpsonwardplatforms/infracodebase-mcp | Skill | 2 | yesterday | MIT | A | 91 | Claude Code |
| implementing-gcp-organization-policy-constraintsxalgorix/xalgorix | Skill | 1.3k | yesterday | Apache-2.0 | A | 42 | Claude Code, Codex |
| devops/deploy-railwayechoVic/boss-skill | Skill | 547 | 5d ago | MIT | A | 49 | Claude Code |
| headless-step-provision-wordpresshostinger/api-mcp-server | Skill | 170 | yesterday | MIT | A | 48 | Claude Code, Codex |
| headless-step-provision-webapphostinger/api-mcp-server | Skill | 170 | yesterday | MIT | A | 69 | Claude Code, Codex |
| pulumi-automation-apipulumi/agent-skills | Skill | 78 | 4d ago | Apache-2.0 | A | 90 | Claude Code, Codex |
| conducting-cyber-risk-assessment-with-nist-800-30adriannoes/awesome-agentic-ai | Skill | 96 | 4d ago | MIT | A | 219 | Claude Code, Codex |