# =============================================================================
# AgentCloak — Demo Cheatsheet
# =============================================================================
# Copy and run each block step by step.
# =============================================================================


# --- [0] Export env vars in every new terminal tab --------------------------

export INC_MCP_URL="https://us-restapi-mt-01.api.incountry.io/mcp"
export INC_MCP_API_KEY="51a33be9-34e4-40e9-bb36-4349634c1e36:DfxMUWLfFCeUZ9nE6DCewEqFjis-h6yo-mGj6KS_h8c"
export JIRA_API_TOKEN="<your token here>"


# --- [1] Create a fresh working directory ------------------------------------

mkdir ~/acme-crm && cd ~/acme-crm


# --- [2] Install AgentCloak skills for the AI agent -------------------------

npx incountry-agentcloak-skills-dev


# --- [3] Set up the demo app -------------------------------------------------

npx jira-agentcloak-demo


# --- [4] Run — shows REAL assignee names -------------------------------------

npm start


# --- [5] Open opencode and give the agent its task ---------------------------

opencode

# Prompt to paste:

Cloak the assignee names in jira-reporter.ts using the AgentCloak MCP server before printing them. Then run the app.

# The agent will:
#   1. Read jira-reporter.ts
#   2. Read the AgentCloak skill (.agents/skills/agentcloak/SKILL.md)
#   3. Add a cloakName() function calling INC_MCP_URL with INC_MCP_API_KEY
#   4. Wrap each assignee through MCP before printing
#   5. Run: npm start


# --- [6] Run again — shows CLOAKED assignee names ----------------------------

npm start
