Skip to content

feat(mcp): guide agents to the Code Security skills (K9CODESEC-9593) - #52

Merged
robertohuertasm-datadog merged 1 commit into
mainfrom
feat/guide-agents-to-skills
Nov 16, 2026
Merged

robertohuertasm-datadog merged 1 commit into
mainfrom
feat/guide-agents-to-skills

Conversation

@robertohuertasm-datadog

@robertohuertasm-datadog robertohuertasm-datadog commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Agents that see this server's scan tools tend to call them directly and skip the Datadog Code Security skills, which carry the rules for when to scan, how to read results and how to fix findings.

What

  • The server sends instructions on initialize: load the skill that fits the task (dd-codesec-scan-and-fix, dd-codesec-verify-findings, dd-codesec-find-security-variants, or their Datadog MCP server equivalents) before calling a tool, and call the tools directly when the skills are not installed.
  • Every tool description starts with the skill it belongs to, from a single tool-to-skill map, because every MCP client shows tool descriptions to the model while not all of them forward server instructions.
  • Tests check the initialize instructions, the prefix wording, and that every registered tool maps to an embedded skill.
  • README note on this behaviour; start --help now lists all nine tools.

Testing

  • make test, make lint, go vet, make build; initialize and tools/list checked over STDIO.
  • Measured with an agent harness on several models: with the skills installed, agents now load the skill before canning; without them, agents still scan.

🤖 Generated with Claude Code

K9CODESEC-9593
K9CODESEC-7417

Send MCP server instructions on initialize and prefix every tool
description with the skill that owns it, so agents load the Datadog Code
Security skill before calling a scan tool and fall back to calling the
tool directly when the skills are not installed. Tests pin the texts and
check that every tool maps to an embedded skill. The start help now lists
all nine tools.

Environment: Datadog workspace

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@robertohuertasm-datadog robertohuertasm-datadog changed the title feat(mcp): guide agents to the Code Security skills feat(mcp): guide agents to the Code Security skills (K9CODESEC-9593) Nov 16, 2026
@robertohuertasm-datadog
robertohuertasm-datadog merged commit 6e4757a into main Nov 16, 2026
13 checks passed
@robertohuertasm-datadog
robertohuertasm-datadog deleted the feat/guide-agents-to-skills branch November 16, 2026 14:21
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.

2 participants