# Test OCPP with an AI agent

Source: https://timetick.io/docs/ai

Let Claude, ChatGPT, Codex, Cursor or Gemini run OCPP tests on your CSMS or charger through the TimeTick MCP server, and explain what failed.

Tell an AI agent what you want to test. It creates the simulators, runs the test in TimeTick and shows you the messages behind a failure.

```text
Test whether my CSMS at wss://csms.example.com/ocpp handles a charging
session on OCPP 1.6. If something fails, show me why.
```

It works with Claude Code, Codex, Gemini CLI, Claude, ChatGPT, Cursor and other clients that support MCP.

1. [Connect TimeTick](https://timetick.io/docs/ai/connect).
2. Copy a prompt from the [recipes](https://timetick.io/docs/ai/recipes).

## Let it fix your code

![The agent runs a test, reads the log, and you fix the code until the test passes.](../../../assets/diagrams/ai-loop.svg)

Open the agent in the repository of your CSMS or firmware. It can run a test, find the cause in your code and suggest a fix. You review it, deploy it, and the agent runs the test again.

```text
My CSMS code is in this repository and runs at wss://staging.example.com/ocpp.
Run the TimeTick test "Full charge cycle" against it. If it fails, find the
cause in this code and propose a fix. Wait for me to deploy it, then rerun.
Don't change the test to make it pass.
```

## What it can do

- Create simulators and connect them to your CSMS
- Add your charger and tell you what to do next to it
- Find, build and run tests, test plans and Stress Tests
- Read results and OCPP logs

The agent works in your account. Check what it wants to delete or stop before you allow it, or use [read-only mode](https://timetick.io/docs/ai/connect#read-only-mode).

## Give it these docs

Every page has a **Copy page** button. For all pages at once, give the agent [llms.txt](https://timetick.io/docs/llms.txt).
