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.
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.
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
| Tool | Description |
|---|
list_projects | List the projects you have access to in the current organization. |
list_requirements | Browse and filter a project's requirements by level, status or free-text search. The search also matches the External Key. |
get_requirement | Retrieve one requirement in full, including its description, acceptance criteria, External Key and links. |
create_requirement | Create 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_requirement | Change 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_requirement | Retire a requirement. An explanation is mandatory and is recorded in the audit trail. Only Approved or Verified requirements can be deprecated. |
delete_requirement | Permanently remove a Draft requirement or section that has no links and no child items. This is a hard delete and cannot be undone. |
create_section | Add a grouping heading to the requirements tree. |
update_section | Rename a section or move it elsewhere in the tree. |
delete_section | Remove a section that has no items left inside it. |
Traceability links
| Tool | Description |
|---|
get_traceability_matrix | Show every link attached to one risk or requirement. Use it to find untested requirements or unmitigated risks. |
export_traceability_matrix | Produce 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_link | Create 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_link | Remove a traceability link by its ID. |
list_requirement_links | List the traceability links attached to a work item, with optional direction and type filters. |
delete_risk_link | Remove a link between a risk and a requirement or test. |
Risk management
| Tool | Description |
|---|
list_risks | Browse the risk register, with filters for status, harm category, severity, probability and risk level. |
get_risk | Retrieve one risk in full, including its control measures and its ISO 14971 initial and residual risk levels. |
get_risk_scale | Read 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_scale | Preview a new risk scale without saving it, showing which risks would change level and which would get worse. Project Admin only. |
update_risk_scale | Save 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_risk | Create 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_risk | Update a risk's fields, including the residual severity and probability after mitigation. Editing a risk on a released version requires an explanation. |
create_control_measure | Add a mitigation to a risk, optionally linking it to the requirements, tests or software items that implement it. |
update_control_measure | Change or re-link an existing control measure. |
Software items
| Tool | Description |
|---|
list_software_items | Browse your software architecture as a tree or a flat list, covering systems, components, units and third-party (SOUP) dependencies. |
list_software_item_tags | List every tag in use on the project's software items, with how many items carry each. |
get_software_item | Retrieve one software item in full, including its safety classification and its linked requirements, risks and tests. |
create_software_item | Add an architecture component, unit or SOUP dependency. |
update_software_item | Change a software item's name, type, safety class or other fields. Editing an item on a released version requires an explanation. |
Design files
| Tool | Description |
|---|
list_design_files | List the design files attached to a software item. |
get_design_file_content | Read the content of a text-based design file. |
create_design_file | Attach a text-based design file to a software item. |
update_design_file_content | Replace a design file's content. The previous content is kept as a version in its history. |
delete_design_file | Delete a design file and its version history. |
list_design_file_versions | List the saved historical versions of a design file. |
get_design_file_version_content | Read the content of a specific historical version. |
restore_design_file_version | Restore a design file to a previous version. |
create_version_tag | Tag a specific version of a design file, for example as reviewed. |
delete_version_tag | Remove a tag from a design file version. |
get_design_file_history | Retrieve the audit trail of every change to a software item's design files. |
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
| Tool | Description |
|---|
download_sbom | Download the generated Software Bill of Materials, in CycloneDX format, for a completed scan of a software item. |
Test cases
| Tool | Description |
|---|
list_test_cases | Browse test cases (Unit, Integration, System or Acceptance), with filters for status, execution mode and others. |
get_test_case | Retrieve 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_case | Create 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_case | Delete a test case. Its execution history and links are kept as evidence. The assistant must confirm the deletion. |
Manual tests
| Tool | Description |
|---|
list_test_candidate_users | List the project members who can approve a manual test or execute it. |
set_test_case_status | Move a manual test through its lifecycle: submit for approval, approve, reject or deprecate. Only the named approver can decide. |
create_test_executions | Assign executions of approved manual tests to testers, one per interface, or rerun a completed execution. |
list_test_executions | List manual test executions with their progress, results and due dates. |
update_test_execution | Change the due date or the conditions of an execution that is not completed yet. |
get_next_test_execution | Find the next execution assigned to you. |
record_test_execution_step_results | Record the result of one or more steps of an execution. Only the executor can record. |
complete_test_execution | Complete an execution. The result is derived from the steps. Notes are required unless every step passed. |
upload_test_attachment | Attach a file to an execution as evidence, or to a manual test as test data. |
delete_test_attachment | Remove such a file. |
download_test_attachment | Read a file attached to an execution or to a manual test. |
Automatic test acquisition
| Tool | Description |
|---|
list_test_acquisition_sources | List the sources that bring test reports into the project from your CI provider, at every test level. |
save_test_acquisition_source | Create a source, or replace the configuration of an existing one. |
delete_test_acquisition_source | Delete a source. The reports it already produced are kept. |
set_test_acquisition_webhook | Enable, rotate or disable the delivery secret that lets a pipeline push its results. |
trigger_test_acquisition_source | Fetch the latest test report of a source now. It never starts a CI run. |
list_test_runs | List 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.
| Tool | Description |
|---|
list_document_templates | List document templates. Admins also see drafts. |
get_document_template | Read one template. |
get_template_authoring_reference | Read the template writing guide, the categories and the fields a template can use. |
save_document_template | Create a draft template, or change a draft. |
set_document_template_status | Publish a draft so every member can generate documents from it, or withdraw a published template. |
delete_document_template | Delete a draft template. |
save_template_category | Create, rename or reorder a template category. |
save_document_variable | Register a document variable or change its label. |
delete_document_registry_entry | Delete a template category or a document variable. |
list_document_generations | List generated documents with their provenance. |
generate_document | Generate a document from a published template and give you a link to download it from the Documentation Hub. |