Coverity MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Coverity MCP Server List all Coverity projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Coverity MCP Server
A TypeScript Model Context Protocol (MCP) server that connects AI agents to Black Duck Coverity Connect for static analysis defect management.
Give your AI coding assistant direct access to Coverity projects, streams, and defect data — so it can find issues, understand their root cause via event traces, and fix them in your codebase.
Features
List projects — browse all Coverity projects you have access to
List streams — view analysis streams, optionally filtered by project
Search issues — find defects by stream with filters for checker, impact, status, and pagination
Get issue details — retrieve full defect info including the event trace (code path leading to the defect) and triage data
Two transport modes — stdio for Claude Desktop / CLI, HTTP for web-based integrations
Related MCP server: Polarion MCP Server
Prerequisites
Node.js >= 20.11.0
Access to a Coverity Connect instance with REST API enabled
A Coverity authentication key (generated from your Coverity Connect user settings)
Quick Start
git clone https://github.com/baxishrey/Coverity-MCP-Server-Typescript.git
cd Coverity-MCP-Server-Typescript
npm install
npm run buildCreate a .env file from the example:
cp .env.example .envEdit .env with your Coverity Connect credentials:
COVERITY_HOST=coverity.example.com
COVERITY_PORT=8443
COVERITY_SSL=true
COVERITY_USER=your_username
COVERITY_AUTH_KEY=your_auth_keyRun the server:
npm start # stdio transport (default)
npm run start:http # HTTP transport on port 3000Claude Desktop Configuration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"coverity": {
"command": "node",
"args": ["/path/to/Coverity-MCP-Server-Typescript/build/index.js"],
"env": {
"COVERITY_HOST": "coverity.example.com",
"COVERITY_PORT": "8443",
"COVERITY_SSL": "true",
"COVERITY_USER": "your_username",
"COVERITY_AUTH_KEY": "your_auth_key"
}
}
}
}For HTTP transport mode, use the MCP endpoint URL instead:
{
"mcpServers": {
"coverity": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}Tools
list_projects
List all Coverity projects the authenticated user can access.
Parameters: none
Returns: project name, key, description, and associated streams.
list_streams
List Coverity streams, optionally filtered by project name.
Parameter | Type | Required | Description |
| string | no | Filter streams by project name |
Returns: stream name, language, description, and parent project.
search_issues
Search for static analysis defects in a Coverity stream.
Parameter | Type | Required | Description |
| string | yes | Stream name or ID to search in |
| string | no | Filter by checker (e.g. |
| string | no | Filter by impact: |
| string | no | Filter by status: |
| number | no | Max results, 1–200 (default 25) |
| number | no | Pagination offset (default 0) |
Returns: CID, checker, type, impact, status, file, and function for each defect.
get_issue_details
Get full details for a specific defect, including the event trace that shows the code path leading to the issue.
Parameter | Type | Required | Description |
| number | yes | Coverity Issue ID |
| string | yes | Stream name or ID containing the issue |
Returns: complete defect information with triage data (action, classification, severity, owner) and event chain (step-by-step code path with file and line numbers).
Resources
coverity://server-info
Read-only resource showing the current Coverity server connection configuration (host, port, SSL, user). Does not expose the authentication key.
Typical Workflow
A code agent using this server would typically:
list_projects— discover available projectslist_streams— find the relevant stream for the codebasesearch_issues— find defects (filter byimpact: "High"for critical ones)get_issue_details— get the event trace for a specific defectRead the source file at the reported location and apply a fix based on the event trace
Environment Variables
Variable | Required | Default | Description |
| yes | — | Coverity Connect server hostname |
| no |
| Server port |
| no |
| Use HTTPS |
| yes | — | Username |
| yes | — | Authentication key |
| no |
| Transport mode: |
| no |
| HTTP server port (only with |
Development
npm run dev # run from source without compiling
npm run build # compile TypeScript → build/
npm test # run tests
npm run lint # type-check without emittingProject Structure
src/
├── index.ts # Entry point
├── server/boot.ts # MCP server init, transport selection
├── registry/ # Auto-discovers modules in tools/resources/prompts
├── client/coverity-client.ts # Coverity REST API client
├── tools/ # MCP tool implementations
│ ├── list-projects.ts
│ ├── list-streams.ts
│ ├── search-issues.ts
│ └── get-issue-details.ts
└── resources/
└── server-info.ts # Server connection info resourceAdding a New Tool
Create a file in src/tools/ — it will be auto-discovered at startup:
import { z } from "zod";
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import type { RegisterableModule } from "../registry/types.js";
export default {
type: "tool",
name: "my-tool",
description: "Does something useful",
register(server: McpServer) {
server.tool("my_tool", "Description", {
param: z.string().describe("A parameter"),
}, async ({ param }) => {
return { content: [{ type: "text", text: `Result: ${param}` }] };
});
},
} satisfies RegisterableModule;License
MIT
Available Tools
4 toolsget_issue_detailsA
Get full details for a Coverity defect by CID, including the event trace (code path that leads to the defect), triage information, and file/line details useful for resolving the issue.
Inputs: cid (required), streamId (required).
list_projectsA
List all Coverity projects the authenticated user can access
Inputs: no named parameters.
list_streamsA
List Coverity streams for the configured project.
Inputs: no named parameters.
search_issuesA
Search for static analysis defects in the configured Coverity project. Returns CID, checker, file, function, impact, and status for each issue.
Inputs: cid, limit, impact, offset, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinctly different resource or level of detail: projects vs streams vs issue summaries vs full issue detail. There is no meaningful overlap between the tools.
All tool names use a consistent lowercase snake_case verb_noun pattern: list_projects, list_streams, get_issue_details, search_issues. The verbs map predictably to the action being performed.
Four tools is a reasonable, focused set for a read-only Coverity query server. Each tool serves a necessary step in navigating from projects and streams down to specific defect details.
The tool set covers the core read-only workflow: identify project, identify stream, search defects, and view full issue details. Minor gaps exist, such as no triage update or project/stream detail endpoints, but they do not block the primary use case.
Maintenance
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
An MCP server that provides agents access to the KeldynAI platform
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceA TypeScript-aware MCP server that provides coding agents with repository discovery, code intelligence, and web project context for local codebases. It enables deep symbol navigation, diagnostic reporting, and structural analysis of monorepos without requiring full IDE integration.711 npm1MIT
- AlicenseAqualityBmaintenanceA TypeScript MCP server that turns the Polarion ALM REST API into a tool-based interface for AI assistants.2692 npm7MIT
- AlicenseBqualityDmaintenanceA lightweight TypeScript MCP server that provides AI assistants with seamless access to SonarCloud data, enabling code quality metrics, issues, and project queries.12102 npmMIT
- FlicenseNot gradedqualityCmaintenanceA TypeScript/Node.js MCP server that wraps the Metabase REST API, enabling AI agents to execute queries, explore schemas, and build dashboards through structured tool calls.-