setup-env

setup-env is a command for Claude Code from vishnu2kmohan/mcp-server-langgraph. It costs 9 tokens per session (745 once invoked), scanned A, original, MIT.

A command that sets up a complete development environment from a fresh checkout, including dependencies, local services, and authentication configuration.

In plain words
What is it for?
Use it when starting the project on a new machine or rebuilding its local services, such as PostgreSQL, Redis, Keycloak, and monitoring tools.
Why use it?
It gathers many setup steps into one documented workflow and shows which environment values still need to be supplied.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/vishnu2kmohan/mcp-server-langgraph/setup-env
Clone the repo
git clone --depth 1 https://github.com/vishnu2kmohan/mcp-server-langgraph

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 setup-env

README.md
[![agentmods](https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/setup-env.svg)](https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/setup-env)
Your own site
<a href="https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/setup-env"><img src="https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/setup-env.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 745 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00009 $0.00745
Opus 5 $0.00005 $0.00373
Sonnet 5 $0.00002 $0.00149
Haiku 4.5 $0.00001 $0.00075

Measured 3d ago against content hash ba0c3bcd60c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

setup-env scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/setup-env.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Complete Environment Setup

Execute the complete development environment setup from scratch.

Setup Steps

  1. Install Dependencies

    make install-dev
    

    Installs:

    • Python dependencies via uv
    • Development tools
    • Test dependencies
  2. Start Infrastructure

    make setup-infra
    

    Starts Docker Compose services:

    • OpenFGA (authorization)
    • PostgreSQL (OpenFGA storage)
    • Keycloak (SSO/authentication)
    • Redis (session storage)
    • Jaeger (distributed tracing)
    • Prometheus (metrics)
    • Grafana (visualization)
    • Qdrant (vector database)
  3. Configure OpenFGA

    make setup-openfga
    

    Sets up:

    • Creates OpenFGA store
    • Loads authorization model
    • Displays OPENFGA_STORE_ID and OPENFGA_MODEL_ID
  4. Configure Keycloak

    make setup-keycloak
    

    Sets up:

    • Creates realm and clients
    • Configures users and roles
    • Displays KEYCLOAK_CLIENT_SECRET
  5. Environment Configuration

    cp .env.example .env
    

    Then manually update .env with:

    • OPENFGA_STORE_ID (from step 3)
    • OPENFGA_MODEL_ID (from step 3)
    • KEYCLOAK_CLIENT_SECRET (from step 4)
    • GOOGLE_API_KEY (from https://aistudio.google.com/apikey)
    • Optional: ANTHROPIC_API_KEY, OPENAI_API_KEY
  6. Restart Services

    docker-compose restart agent
    
  7. Verify Setup

    make health-check
    make test-unit
    

Quick Start Alternative

For a faster automated setup:

make dev-setup

This runs steps 1-4 automatically, but you'll still need to:

  • Update .env with IDs/secrets
  • Restart agent service

Post-Setup Verification

  1. Check Services

  2. Run Tests

    make test-unit
    

Read the full file on GitHub · 128 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. 3d ago First seen · 128 lines · 9 tokens per session scan A ba0c3bcd60c8

Subscribe to this mod's changes

setup-env is a command published in the GitHub repository vishnu2kmohan/mcp-server-langgraph (4 stars, last pushed 10d ago), licensed MIT. It adds 9 tokens to every session and 745 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.