Skip to content

Latest commit

 

History

History
174 lines (126 loc) · 8.85 KB

tools.md

File metadata and controls

174 lines (126 loc) · 8.85 KB

MCP Tool Catalog

This document describes the MCP servers used by the sdlc-workflow plugin skills. All tool references use the generic naming convention — see your project's CLAUDE.md for concrete instance names.


Jira MCP (Atlassian)

Purpose: Task management, issue tracking, and workflow state.

Tool prefix: mcp__atlassian__

Access method: MCP-first with REST API v3 fallback

Key Operations

Operation Tool Used By
Fetch issue details mcp__atlassian__getJiraIssue plan-feature, implement-task
Create issue mcp__atlassian__createJiraIssue plan-feature
Edit issue fields mcp__atlassian__editJiraIssue implement-task
Add comment mcp__atlassian__addCommentToJiraIssue plan-feature, implement-task
Transition issue mcp__atlassian__transitionJiraIssue implement-task
Get transitions mcp__atlassian__getTransitionsForJiraIssue implement-task
Create issue link mcp__atlassian__createIssueLink plan-feature
Get current user mcp__atlassian__atlassianUserInfo implement-task
Search issues (JQL) mcp__atlassian__searchJiraIssuesUsingJql plan-feature

REST API Fallback

When Atlassian MCP is unavailable (e.g., due to organizational policies restricting localhost access), skills automatically fall back to JIRA REST API v3.

How it works:

  1. Skills always try MCP first (preferred method)
  2. If MCP fails, user is always prompted to choose: Use REST API, Skip JIRA, or Retry MCP
  3. If user chooses REST API:
    • Skills check CLAUDE.md for existing REST API credentials
    • If credentials exist: Use them (with user confirmation)
    • If credentials don't exist: Collect from user, validate, and optionally store
  4. All operations use scripts/jira-client.py (Python stdlib only, no external dependencies)

Credential storage: Credentials are stored in CLAUDE.md under ## Jira Configuration → ### REST API Credentials (MCP Fallback). Users can choose:

  • Store all in CLAUDE.md (convenient, less secure)
  • Store URL/email only, use $JIRA_API_TOKEN env var (recommended, more secure)
  • Don't store (ask each time)

Documentation:

  • Setup guide: plugins/sdlc-workflow/shared/jira-api-token-guide.md
  • Implementation guide: plugins/sdlc-workflow/shared/jira-rest-fallback.md
  • Access strategy: plugins/sdlc-workflow/shared/jira-access-strategy.md

ADF Note

Several Jira operations require Atlassian Document Format (ADF) rather than plain text. This applies to:

  • Issue descriptions (when using contentFormat: "adf")
  • Comments (when using contentFormat: "adf")
  • Custom fields (e.g., Git Pull Request custom field)

The REST API fallback automatically converts markdown to ADF when needed.

Refer to your project's CLAUDE.md for field IDs and formatting details specific to your Jira instance.


Figma MCP

Purpose: Design inspection during the planning phase.

Tool prefix: mcp__figma__

Key Operations

Operation Tool Used By
Get file structure mcp__figma__get_file plan-feature
Get specific nodes mcp__figma__get_nodes plan-feature

Usage

Figma is used exclusively during plan-feature to extract:

  • UI structure and component hierarchy
  • Components involved in the feature
  • Possible backend interactions implied by the design

Figma URLs can be provided as a skill argument or discovered from the Jira issue description.


Serena LSP MCP

Purpose: Code intelligence — symbol search, impact analysis, and symbolic editing.

Tool prefix: mcp__<instance>__ where <instance> is the Serena instance name from the Repository Registry in your project's CLAUDE.md.

Each target repository has a dedicated Serena MCP server instance. Look up the correct instance name in the Repository Registry table of your project's CLAUDE.md.

Key Operations

Operation Tool Used By
File/module structure overview mcp__<instance>__get_symbols_overview plan-feature, implement-task
Find symbols by name mcp__<instance>__find_symbol plan-feature, implement-task
Find callers/references mcp__<instance>__find_referencing_symbols plan-feature, implement-task
Search for patterns mcp__<instance>__search_for_pattern plan-feature, implement-task
Replace symbol body mcp__<instance>__replace_symbol_body implement-task
Insert code after symbol mcp__<instance>__insert_after_symbol implement-task
Insert code before symbol mcp__<instance>__insert_before_symbol implement-task
Rename symbol mcp__<instance>__rename_symbol implement-task
Get diagnostics mcp__<instance>__get_diagnostics setup

Workflow

During planning (read-only):

  1. get_symbols_overview — understand module structure without reading entire files
  2. find_symbol — locate types, functions, endpoints by name
  3. find_referencing_symbols — discover callers and integration points
  4. search_for_pattern — find string literals, config keys, route definitions

During implementation (read + write):

  1. Use the same read operations to understand code before modifying
  2. replace_symbol_body — rewrite functions, methods, structs, or components
  3. insert_after_symbol / insert_before_symbol — add new code relative to existing symbols
  4. rename_symbol — rename and automatically update all references

Fallback

If no Serena instance is available for a repository, skills fall back to Read, Grep, and Glob tools for code inspection, and Edit/Write tools for modification.

Limitations

Check the Code Intelligence > Limitations section in your project's CLAUDE.md for per-instance limitations (e.g., language server features that are not supported).


Fullsend triage-security runner artifacts

triage-security has a file-based Fullsend contract for non-interactive execution. The trusted runner and sandbox are deliberately separate: the sandbox plans work from prefetched evidence, and only the trusted runner can execute Jira mutations.

Artifact Responsibility
.fullsend/harness/triage-security.yaml (repo root) Defines the branch-independent Fullsend harness and its trusted pre/post phases.
scripts/pre-triage-security.sh / scripts/pre_triage_security.py Fetch, normalize, and validate trusted Jira, remote-link, configuration, external, matrix/source, metadata, and idempotency evidence into triage-security-input.json; the shipped collector sets authorization.mutation_authorized to false.
scripts/triage-security-input.schema.json Requires issue data, remote links, configuration, external evidence, matrix/source evidence, Jira metadata, idempotency context, and authorization.
agents/triage-security.md Constrains the sandbox to mounted evidence and directs it to write agent-result.json to FULLSEND_OUTPUT_DIR.
schemas/triage-security-result.schema.json Defines report-only and mutation-authorized results and the supported action schema.
policies/triage-security.yaml Supplies the runner policy used by the harness.
scripts/post-triage-security.sh Selects the result Fullsend validated (FULLSEND_VALIDATED_ITERATION_DIR, else the last iteration in its working directory) and the bundle under FULLSEND_RUN_DIR, verifies their paths and JSON, and invokes the executor.
scripts/execute-triage-security-actions.py Independently validates authorization, resolves references, deduplicates retry actions, and performs trusted Jira writes.

The sandbox uses the mounted triage-security-input.json plus the delivered triage-security skill and schema artifacts. It must not call Jira, GitHub, web, Git, or other credentialed evidence sources, and it cannot write a matrix. It returns a schema-valid agent-result.json after successful validated analysis, with one of these modes:

  • report-only — exactly report-only actions; it reports withheld or blocked work without mutation.
  • mutation-authorized — permits only schema-defined actions when a trusted prefetch implementation sets authorization.mutation_authorized to true. The shipped collector does not provision this authorization.

The result schema supports these action types: report-only, field-edit, status-transition, comment, link, resolve-reference, and remediation-task. resolve-reference and remediation-task references are resolved by the trusted executor before dependent Jira calls; unresolved placeholders are execution errors. The executor uses triage-security: markers and the prefetched Jira snapshot to make comments, labels, links, transitions, and remediation tasks idempotent across retries.

When evidence is missing, malformed, or contradictory, the prefetch/validation path fails closed before mutation. Operators should repair the trusted bundle or its matrix and lock-file evidence, not grant the sandbox new access or use an interactive fallback.