codesafe-audit-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODESAFE_BASE_URL | Yes | CodeSafe base URL | |
| CODESAFE_INSECURE | No | Set to 'true' to disable SSL verification (for isolated environments only) | |
| CODESAFE_PASSWORD | Yes | CodeSafe password | |
| CODESAFE_USERNAME | Yes | CodeSafe username | |
| CODESAFE_CA_BUNDLE | No | Path to CA bundle for self-signed certificates | |
| CODESAFE_ENABLE_WRITE | No | Set to 'true' to enable write operations |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| codesafe_list_tasksA | List quick-check scan tasks. Returns totalCount and quickVOS (each carries taskVO.pkTask / taskName / taskStatus / language, plus owner and time). Use a pkTask as taskId below. |
| codesafe_task_summaryA | Get a task's metadata and code statistics (file/line counts, template, times). |
| codesafe_bug_summaryA | Aggregate defects by rule (from bugType). Use this to pick a rule to audit. Returns per-rule: ruleCode, ruleName, category, severity level, and total. IDs are omitted by default; set include_ids=true to include a bounded sample. |
| codesafe_list_bugsA | Page through defect instances. NOTE: the server endpoint ignores level/ruleCode filtering, so when those are supplied the filter is applied client-side to this single page only (returned count may be < page_size). For a complete filtered set, use codesafe_bug_summary + codesafe_audit_by_rule. |
| codesafe_audit_statusB | Summarize a report's audit progress from the platform auditState field. |
| codesafe_bug_detailA | Get full defect detail: rule definition (desc/solution/CWE), the taint dataflow trace (bugTraces), exact location, and existing audit state. |
| codesafe_bug_codeA | Fetch a range of source lines (1-based, inclusive) for the file behind a bug. The platform ignores the line range and returns the whole file, so we slice the requested [begin_line, end_line] window client-side with line numbers. |
| codesafe_audit_bugA | Assemble a judgment-ready audit context for one defect. Pulls the rule definition + taint dataflow trace + sink code context in one call, reconstructs the source→sink path, and returns it together with the judging criteria and output schema. The verdict itself is produced by the calling LLM (design §8 option A) — nothing is written to the platform. Respond with a judgment following |
| codesafe_audit_by_ruleA | Batch-assemble audit contexts for up to max_n defects of one rule. Resolves the rule's bugIds via codesafe_bug_summary, then builds an audit_bug context for each (capped at max_n and CODESAFE_AUDIT_BATCH_LIMIT). Returns contexts + a summary table skeleton the calling LLM can fill with verdicts. Read-only. |
| codesafe_submit_auditA | Write audit verdicts back to the platform (POST /codesafeapi/result/audit), so the Web UI shows 误报/确认 markers and PDF exports include them.
⚠️ This is the only tool that mutates the platform. Prefer dry_run first, and write in small batches. Each write is verified — if the bug's auditState does not actually change (e.g. ID not resolved), the tool raises instead of silently leaving only a comment. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/windhxy/codesafe-audit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server