infracodebase-mcp: Skill for Claude Code

.claude/skills/connect-self-hosted-https/SKILL.md

connect-self-hosted-https is a skill for Claude Code from onwardplatforms/infracodebase-mcp. It costs 91 tokens per session (1,976 once invoked), scanned A, original, MIT.

Instructions for connecting the infracodebase MCP server to an API you host yourself over HTTPS. They cover access tokens, API addresses, and certificates for private or self-signed HTTPS connections.

In plain words
What is it for?
Use it to connect Claude Code to an internal infracodebase instance, including one running locally or with a private certificate.
Why use it?
It explains the configuration needed when the server is not using its hosted service or when normal certificate checks fail.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is onwardplatforms/infracodebase-mcp's own configuration. It tells Claude Code how to work on infracodebase-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything infracodebase-mcp configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/onwardplatforms/infracodebase-mcp/main/.claude/skills/connect-self-hosted-https/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/onwardplatforms/infracodebase-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for connect-self-hosted-https

README.md
[![agentmods](https://agentmods.dev/badge/skills/onwardplatforms/infracodebase-mcp/connect-self-hosted-https/github.svg)](https://agentmods.dev/skills/onwardplatforms/infracodebase-mcp/connect-self-hosted-https)
Your own site
<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.

agentmods 80×15 button for connect-self-hosted-https

Your own site · 80×15
<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>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,976 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash bfc677e3ee52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
.claude/skills/connect-self-hosted-https/SKILL.md · 169 lines

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:

Read the full file on GitHub · 169 lines

Changes

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.

  1. 1mo ago Changed bfc677e3ee52
  2. 2mo ago First seen · 169 lines · 91 tokens per session scan A e41631b65e2e

Subscribe to this mod's changes

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.

Related

connect-self-hosted-https compared with skills from other repositories

connect-self-hosted-https next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
connect-self-hosted-httpsonwardplatforms/infracodebase-mcpSkill2yesterdayMITA91Claude Code
implementing-gcp-organization-policy-constraintsxalgorix/xalgorixSkill1.3kyesterdayApache-2.0A42Claude Code, Codex
devops/deploy-railwayechoVic/boss-skillSkill5475d agoMITA49Claude Code
headless-step-provision-wordpresshostinger/api-mcp-serverSkill170yesterdayMITA48Claude Code, Codex
headless-step-provision-webapphostinger/api-mcp-serverSkill170yesterdayMITA69Claude Code, Codex
pulumi-automation-apipulumi/agent-skillsSkill784d agoApache-2.0A90Claude Code, Codex
conducting-cyber-risk-assessment-with-nist-800-30adriannoes/awesome-agentic-aiSkill964d agoMITA219Claude Code, Codex