# cs mcp (/docs/cli/mcp)

`cs mcp` is `tools/list` and `tools/call` on `POST /mcp` under your session, so
you can check what an agent will see before you hand it the configuration.
Because the session is a member session, the session-gated `manage__*` tools
execute here too.

## Usage \[#usage]

```bash
cs mcp list
cs mcp call <tool> [jsonArgs]
```

## list \[#list]

`cs mcp list` prints the `tools/list` result for your identity as JSON —
already filtered to your connected accounts and enabled capabilities.

```bash
cs mcp list | jq -r '.result.tools[].name'
```

## call \[#call]

`cs mcp call` invokes one tool with JSON arguments and prints the `tools/call`
result as JSON. The arguments must be a single valid JSON object.

```bash
cs mcp call memory__search_memory '{"query": "rollout window"}'
cs mcp call manage__whoami
```

A refused call still exits `0`: the refusal arrives inside the result as
`isError: true`, exactly as an agent receives it. Read
[Error handling](/docs/errors) for what to do with each code.