Skip to content

add prompt templates to MCP server for guided security workflows#296

Open
ykd007 wants to merge 1 commit into
msoedov:mainfrom
ykd007:feat/mcp-prompts-192
Open

add prompt templates to MCP server for guided security workflows#296
ykd007 wants to merge 1 commit into
msoedov:mainfrom
ykd007:feat/mcp-prompts-192

Conversation

@ykd007
Copy link
Copy Markdown
Contributor

@ykd007 ykd007 commented May 15, 2026

Closes #192

Adds three reusable prompt templates to the MCP server using the @mcp.prompt() decorator.

What's in here:

security_scan_prompt(llm_spec, max_budget) — guides the client through a full security scan: start it, watch it, stop it.

verify_llm_prompt(llm_spec) — quick reachability check so you can confirm a spec works before committing to a full scan.

adversarial_probe_prompt(llm_spec) — sets up a multi-step adversarial run with optimization on and asks the client to surface the worst findings at the end.

All three return plain strings, which is the correct return type for FastMCP prompts. They're placed in their own section above the tools so the file stays easy to navigate. No existing tool behaviour is touched.

Closes msoedov#192

Three prompt templates via @mcp.prompt():
- security_scan_prompt: full scan with configurable probe budget
- verify_llm_prompt: quick reachability check before committing to a scan
- adversarial_probe_prompt: multi-step attack session with findings summary

Placed before the tool definitions with a clear section comment.
No existing tool behaviour changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add mcp.prompts to agentic_security/mcp/main.py

1 participant