# Connect CodeSonar to Your AI Agent (Universal MCP)

> Use your AI to track issues, audit security, and build software in CodeSonar — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http codesonar https://api.universalmcp.app/mcp/codesonar`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/codesonar` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "codesonar", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: CodeSonar | Category: Other B2B Software (CodeSecure) | Auth: Guided workspace authorization
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Analysis Report Access, Ticket Draft Approval, Source Code Visibility; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=codesonar | Guide: https://universalmcp.app/mcp/codesonar
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 0 Read, 3 Write)
Perform 3 actions across analysis report access, ticket draft approval, and source code visibility. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Analysis Report Access (1):** Analysis Report Access (write)
- **Ticket Draft Approval (1):** Ticket Draft Approval (write)
- **Source Code Visibility (1):** Source Code Visibility (write)

## Example Prompts for CodeSonar
- **Read findings:** "List all CodeSonar warnings from the last payments-api build, grouped by file and severity level."
- **Rank by severity:** "Rank CodeSonar high-severity findings by exploitability and show which ones lack a linked ticket."
- **Trend check:** "Compare this week's CodeSonar warning count against the previous release to show new versus fixed defects."
- **Draft tickets:** "Draft tickets for the two unowned CodeSonar defects and hold them until a lead approves assignment."
