> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chkk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code + Chkk SHARC in 5 minutes

> Install and run the Chkk SHARC Skill from Claude Code.

## Prerequisites

1. [Install Docker](https://docs.docker.com/get-docker/): Required to run the Chkk-Upgrade-Context-MCP Server.

2. [Install Claude Code](https://docs.chkk.io/resources/installation-guides/claude-code.md): Required to begin generating environment-aware pull requests.

3. A [Claude.ai](https://claude.ai/) (recommended) or [Anthropic Console](https://console.anthropic.com/) account

> [!NOTE]
>
> Agent Responses on this page are illustrative. Exact phrasing from your AI
> model may vary depending on the model, settings, and repository context.

> [!NOTE]
>
> Recommended: use Anthropic's latest Claude Sonnet or Claude Opus model with the Chkk-Upgrade-Context-MCP Server, especially for multi-file IaC changes or SHARC validation runs. Avoid lightweight or fast models.

You'll also need `kubectl` configured for the target cluster, plus the Chkk-supported Cloud Native Project name, namespace, and release name for the project you want to validate.

**1. Retrieve your Chkk Access Token**

1. In the **Chkk Dashboard**, expand **Configure** on the left menu and click **Settings**.
2. Select the **Tokens** tab. Here you'll see a list of all your active tokens (if any), along with options to create new ones or revoke existing ones.
3. Click on the **clipboard** icon next to a token to copy it.

   ![Tokens Tab](https://mintcdn.com/chkk/ErQAF5e5P7IkmW9z/images/features/chkk-access-token.gif?s=f0f979e1e97c8531d96868a9db175c25)

**2. Install in Claude Code**

Install the `Chkk-Upgrade-Context-MCP` using the Claude Code CLI:

```bash theme={"dark"}
claude mcp add Chkk-Upgrade-Context-MCP --env CHKK_ACCESS_TOKEN="<CHKK_TOKEN>"  -- docker run -i --rm -e CHKK_ACCESS_TOKEN public.ecr.aws/chkk/chkk-mcp-upgrade-context:latest
```

Replace `<CHKK_TOKEN>` with your Chkk Access Token.

**3. Verify Chkk-Upgrade-Context-MCP Server is installed**

Verify via CLI that the server is registered:

```bash theme={"dark"}
claude mcp get Chkk-Upgrade-Context-MCP
```

The command should return server details indicating it is installed and enabled.

![Claude Code Chkk MCP Server](https://mintcdn.com/chkk/jVz5fXAMivd3Hr6E/images/ai/claude-code-mcp-setup.png?fit=max\&auto=format\&n=jVz5fXAMivd3Hr6E\&q=85\&s=8c9d625d12d42a5fdc2db59701a14677)

**4. Fetch and install the Chkk SHARC Skill**

With the Chkk MCP server installed, ask Claude Code to fetch and install the skill:

Fetch and install "chkk-sharc-skill" from Chkk MCP. After installation, tell me how to run it by name or with /chkk-sharc-skill.

Claude Code uses Chkk MCP to fetch the latest SHARC skill and install it locally. When a new version is released, the skill notifies you and asks before updating.

**5. Run SHARC validation**

Invoke the skill from Claude Code by name or with the slash command:

/chkk-sharc-skill Run SHARC validation for PROJECT\_NAME in the NAMESPACE namespace with release name RELEASE\_NAME. Ask me for the target kube context before running anything.

Or use natural language:

Use chkk-sharc-skill to validate PROJECT\_NAME in the NAMESPACE namespace with release name RELEASE\_NAME on my Kubernetes cluster.

Replace `PROJECT_NAME`, `NAMESPACE`, and `RELEASE_NAME` with the Chkk-supported Cloud Native Project you want to validate, plus the namespace and release name used by that installed project.

For example, to validate cert-manager:

/chkk-sharc-skill Run SHARC validation for cert-manager in the cert-manager namespace with release name cert-manager. Ask me for the target kube context before running anything.

The skill asks for the kubeconfig path or kube context, the Chkk-supported Cloud Native Project name, the project namespace, the project release name, the environment type, and the cluster's runtime pull behavior. It then surfaces the namespace, service account, and RBAC manifests for you to apply, and confirms with you before running the SHARC Job.

## What happens during a run

The `chkk_get_sharc_skill_instructions` Chkk MCP tool loads or refreshes the SHARC skill. During a run, the skill creates a local run log under `.chkk`, asks for your target cluster details and the specific Cloud Native Project to validate, and shows the namespace, service account, and RBAC manifests to apply. Once you confirm the manifests are applied, it runs the SHARC catalog preflight and validation Job for that project.

> [!NOTE]
>
> Learn more in the [Chkk SHARC Skill guide](https://docs.chkk.io/ai/sharc-skill.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.