# Agent instructions for SineFrame M3

M3 tests MCP servers and the agents that use them.

These instructions match M3 v0.3.2.

Install the matching CLI with `uv tool install sf-m3-cli==0.3.2`. In your project, run `m3 init`, `m3 setup`, and `m3 doctor`. See the [installation guide](https://m3.sineframe.com/docs/start/install) for other install options.

Use the [machine-readable site index](https://m3.sineframe.com/llms.txt) to discover the agent instructions and versioned documentation.

## Start here

- [Testing with M3 skill](https://raw.githubusercontent.com/sineframe/m3/59b4f085398f5e99e73d4dd0b1fb257662a56be6/skills/testing-with-m3/SKILL.md): the agent's task instructions.
- [M3 source and documentation](https://github.com/sineframe/m3).
- [Copyable task prompt](https://m3.sineframe.com/agent-skill-prompt.md).

## Prompt for a coding agent

Give this prompt to a coding agent from the MCP server project:

```text
Install the SineFrame M3 testing skill in this project, then read `.agents/skills/testing-with-m3/SKILL.md` and its relevant references:

npx --yes skills@1.7.0 add sineframe/m3#v0.3.2 --skill testing-with-m3 --agent universal claude-code -y

The command needs Node.js and Git. If it fails, read the skill at https://raw.githubusercontent.com/sineframe/m3/59b4f085398f5e99e73d4dd0b1fb257662a56be6/skills/testing-with-m3/SKILL.md instead.

In this project, inspect the MCP server contract and existing test conventions. If the CLI is missing, install the matching CLI with `uv tool install sf-m3-cli==0.3.2` (see the skill's Install M3 reference for alternatives). Add and run the smallest deterministic direct tests for the behavior I care about. Add separate agent tool-selection tests when the claim involves an agent. Follow the skill's setup and test commands, replace any skipped starter with a real assertion, and inspect the run feedback before reporting success. Leave the specific test command ready for CI.
```

## Expected output

- Tests based on the real MCP server contract and existing test conventions.
- Direct server checks kept separate from agent tool-selection checks.
- A test run and inspected report, with a specific command ready for CI.
