# Reference

Use this section when you already know what you're looking for: exact `swy` command syntax and flags, the MCP tool-to-CLI mapping, exit codes and error strings, and config file schemas. For task-oriented walkthroughs - installing the CLI, connecting an editor, writing your first policy - see the CLI and Policies sections instead.

## Reference areas

- [CLI command reference](https://docs.swytchcode.com/reference/commands/) - Every swy subcommand and flag, grouped by setup, discovery, execution, account, and system commands.
- [exec reference](https://docs.swytchcode.com/cli/exec/) - Execute tools, pass inputs, preview requests with --dry-run, and read exit codes.
- [MCP tool reference](https://docs.swytchcode.com/reference/mcp-reference/) - Every MCP tool exposed by swy mcp serve, mapped to its equivalent CLI command, by profile (agent vs. full).
- [MCP server setup](https://docs.swytchcode.com/cli/mcp/) - Connect Cursor, Claude Code, and other MCP-compatible AI clients.
- [Troubleshooting](https://docs.swytchcode.com/reference/troubleshooting/) - Exit codes, common failure modes, and the diagnostic commands to run first.
- [Runtime SDK overview](https://docs.swytchcode.com/runtime-sdk/) - JavaScript and Python SDKs for tool execution.
- [Configuration reference](https://docs.swytchcode.com/configuration/manifest-json/) - manifest.json, tooling.json, and policies.json schemas.
