Skip to main content
Version: 3.10.x

MCP Server Overview

P4SaMD exposes a Model Context Protocol (MCP) server. Through it, an AI assistant such as Claude Code, Claude.ai, ChatGPT, Cursor or VS Code can read and write your project's requirements, risks, software architecture, design files, traceability links and test cases.

To connect a client, see Setup. If a connection or a tool call fails, see Troubleshooting.

What an assistant can do​

Once connected, an assistant can:

  • Browse and search your requirements, risks, software items and test cases in natural language.
  • Draft new requirements, risks or test cases for your review.
  • Inspect traceability coverage (for example which requirements are untested or which risks are unmitigated) and propose fixes.
  • Read and update text-based design files (Markdown, JSON, XML, drawio) attached to a software item.
  • Write manual tests, send them for approval, assign executions to testers and record step results.
  • Configure automatic test acquisition for integration and system testing, and trigger a pull.
  • Author, publish and generate Documentation Engine templates. The assistant can read the template authoring guide and the list of available fields and variables. New templates are created as drafts until you publish them.
  • Review and update a product's risk scale, after previewing which risks the change would affect.
  • Export the full Traceability Matrix of a project to the Documentation Hub.
  • Deprecate a requirement, add a control measure to a risk, or link two work items together.

Permissions and audit​

Every action the assistant takes is performed as you, through your own P4SaMD account and role. The MCP server applies the same role-based permissions and organization boundaries as the web application, so an assistant cannot see or change more than you can. Writes are recorded in the audit trail as if you had made them in the web application.

Access is scoped to one organization for the whole session. You choose that organization during sign-in, and within it the assistant sees only the projects you have access to.

Confirming write actions

Read actions (listing or viewing data) are safe to run automatically. Review any action that creates, changes or deletes data before it is applied. Most clients can be configured to ask for confirmation on each tool call; check your client's own settings for how to turn this on.

Tool reference​

The tables below list the tools the P4SaMD MCP server exposes, grouped by area. If a tool is not listed here, the server does not provide it.

Requirements and sections​

ToolDescription
list_projectsList the projects you have access to in the current organization.
list_requirementsBrowse and filter a project's requirements by level, status or free-text search. The search also matches the External Key.
get_requirementRetrieve one requirement in full, including its description, acceptance criteria, External Key and links.
create_requirementCreate a requirement, with title, description, level (Users, System or Software), type, priority, labels and an optional External Key. Requires the Tech Team role or higher.
update_requirementChange one or more fields of an existing requirement, including its External Key (send an empty value to clear it). Not permitted on a deprecated requirement or one belonging to a released version.
deprecate_requirementRetire a requirement. An explanation is mandatory and is recorded in the audit trail. Only Approved or Verified requirements can be deprecated.
delete_requirementPermanently remove a Draft requirement or section that has no links and no child items. This is a hard delete and cannot be undone.
create_sectionAdd a grouping heading to the requirements tree.
update_sectionRename a section or move it elsewhere in the tree.
delete_sectionRemove a section that has no items left inside it.
ToolDescription
get_traceability_matrixShow every link attached to one risk or requirement. Use it to find untested requirements or unmitigated risks.
export_traceability_matrixProduce the Traceability Matrix of the whole project as a CSV file and record it in the Documentation Hub download history. The assistant gives you a link to download it from the Hub.
create_requirement_linkCreate a typed traceability link between two work items, for example a user requirement that satisfies a software requirement, or a test that verifies a requirement.
delete_requirement_linkRemove a traceability link by its ID.
list_requirement_linksList the traceability links attached to a work item, with optional direction and type filters.
delete_risk_linkRemove a link between a risk and a requirement or test.

Risk management​

ToolDescription
list_risksBrowse the risk register, with filters for status, harm category, severity, probability and risk level.
get_riskRetrieve one risk in full, including its control measures and its ISO 14971 initial and residual risk levels.
get_risk_scaleRead a product's risk scale: its severity and probability levels, the zone of every cell and any advisory warnings. Risks must use levels of this scale.
preview_risk_scalePreview a new risk scale without saving it, showing which risks would change level and which would get worse. Project Admin only.
update_risk_scaleSave a new risk scale after its preview. The assistant must send the scale exactly as previewed and the number of affected risks the preview returned, so a scale previewed against outdated data is never saved. A rationale is required when the product has risks. Project Admin only.
create_riskCreate a risk, with hazard, harm, harm category, initial severity and initial probability, using the levels of the product's risk scale. The initial risk level is calculated automatically.
update_riskUpdate a risk's fields, including the residual severity and probability after mitigation. Editing a risk on a released version requires an explanation.
create_control_measureAdd a mitigation to a risk, optionally linking it to the requirements, tests or software items that implement it.
update_control_measureChange or re-link an existing control measure.

Software items​

ToolDescription
list_software_itemsBrowse your software architecture as a tree or a flat list, covering systems, components, units and third-party (SOUP) dependencies.
list_software_item_tagsList every tag in use on the project's software items, with how many items carry each.
get_software_itemRetrieve one software item in full, including its safety classification and its linked requirements, risks and tests.
create_software_itemAdd an architecture component, unit or SOUP dependency.
update_software_itemChange a software item's name, type, safety class or other fields. Editing an item on a released version requires an explanation.

Design files​

ToolDescription
list_design_filesList the design files attached to a software item.
get_design_file_contentRead the content of a text-based design file.
create_design_fileAttach a text-based design file to a software item.
update_design_file_contentReplace a design file's content. The previous content is kept as a version in its history.
delete_design_fileDelete a design file and its version history.
list_design_file_versionsList the saved historical versions of a design file.
get_design_file_version_contentRead the content of a specific historical version.
restore_design_file_versionRestore a design file to a previous version.
create_version_tagTag a specific version of a design file, for example as reviewed.
delete_version_tagRemove a tag from a design file version.
get_design_file_historyRetrieve the audit trail of every change to a software item's design files.
Text files only

Only text-based design files (.md, .txt, .json, .xml, .drawio) can be read or written through an AI assistant. Binary files such as PDFs and images must be managed from the P4SaMD web application.

SBOM​

ToolDescription
download_sbomDownload the generated Software Bill of Materials, in CycloneDX format, for a completed scan of a software item.

Test cases​

ToolDescription
list_test_casesBrowse test cases (Unit, Integration, System or Acceptance), with filters for status, execution mode and others.
get_test_caseRetrieve one test case in full, including its execution history and traceability links. For a manual test, this includes its steps, test data and files.
save_test_caseCreate a test case, or update one. Links to requirements or risks can be created in the same call. A manual test can carry up to 50 interfaces by default.
delete_test_caseDelete a test case. Its execution history and links are kept as evidence. The assistant must confirm the deletion.

Manual tests​

ToolDescription
list_test_candidate_usersList the project members who can approve a manual test or execute it.
set_test_case_statusMove a manual test through its lifecycle: submit for approval, approve, reject or deprecate. Only the named approver can decide.
create_test_executionsAssign executions of approved manual tests to testers, one per interface, or rerun a completed execution.
list_test_executionsList manual test executions with their progress, results and due dates.
update_test_executionChange the due date or the conditions of an execution that is not completed yet.
get_next_test_executionFind the next execution assigned to you.
record_test_execution_step_resultsRecord the result of one or more steps of an execution. Only the executor can record.
complete_test_executionComplete an execution. The result is derived from the steps. Notes are required unless every step passed.
upload_test_attachmentAttach a file to an execution as evidence, or to a manual test as test data.
delete_test_attachmentRemove such a file.
download_test_attachmentRead a file attached to an execution or to a manual test.

Automatic test acquisition​

ToolDescription
list_test_acquisition_sourcesList the sources that bring test reports into the project from your CI provider, at every test level.
save_test_acquisition_sourceCreate a source, or replace the configuration of an existing one.
delete_test_acquisition_sourceDelete a source. The reports it already produced are kept.
set_test_acquisition_webhookEnable, rotate or disable the delivery secret that lets a pipeline push its results.
trigger_test_acquisition_sourceFetch the latest test report of a source now. It never starts a CI run.
list_test_runsList the acquisition attempts of the project, newest first, to check that a delivery arrived.

Document templates​

Template tools that change data need the organization Admin role.

ToolDescription
list_document_templatesList document templates. Admins also see drafts.
get_document_templateRead one template.
get_template_authoring_referenceRead the template writing guide, the categories and the fields a template can use.
save_document_templateCreate a draft template, or change a draft.
set_document_template_statusPublish a draft so every member can generate documents from it, or withdraw a published template.
delete_document_templateDelete a draft template.
save_template_categoryCreate, rename or reorder a template category.
save_document_variableRegister a document variable or change its label.
delete_document_registry_entryDelete a template category or a document variable.
list_document_generationsList generated documents with their provenance.
generate_documentGenerate a document from a published template and give you a link to download it from the Documentation Hub.