> For the complete documentation index, see [llms.txt](https://learning.contextqa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learning.contextqa.com/packaged-application-testing/packaged-app-testing/agentic-asset-workflow.md). Agents can also search and read this documentation through its [MCP server](https://learning.contextqa.com/~gitbook/mcp).

# Claude and MCP Asset Creation

Use Claude and ContextQA MCP to draft, configure, execute, investigate, and document reusable Salesforce, SAP, and Oracle test packs.

> **Documentation owner:** [Deep Barot](https://contextqa.com/academy/) · **Last updated:** November 12, 2026

## Quick answer

Connect an approved AI client to ContextQA MCP, inspect the authenticated tool manifest, and use a bounded business-process contract to create and execute tests. Let the agent draft cases and collect evidence while reviewers control assertions, environment scope, and promotion. Reuse credential-free instructions across Salesforce, SAP, and Oracle packs.

## Key takeaways

* Use the tools actually available in the connected workspace.
* Separate proposed tests, executed results, and validated outcomes.
* Keep reusable skills free of credentials and tenant-specific data.

## Set up the reusable agent workflow

1. Follow [MCP installation and setup](https://learning.contextqa.com/contextqa-mcp/overview/installation-and-setup.md). Use the supported client configuration and authorized sign-in method. Complete a read-only workspace verification.
2. Inspect the tool manifest for test authoring, execution, results, and evidence operations. Record unsupported actions instead of inventing tool names or request fields.
3. Select the platform pack and supply its business outcome, actual interface, roles, input schema, expected assertions, test environment, and permitted operations.
4. Ask the agent to identify existing reusable tests and prerequisites before creating duplicates.
5. Generate a proposed positive, negative, boundary, and role matrix. Review assertions and data before authoring or running changes.
6. Use available tools to create or update the selected tests, execute them within the approved scope, and collect terminal results. Preserve job/run identifiers across asynchronous operations.
7. Investigate failures using screenshots, logs, and persisted-state evidence. Propose a repair with its reason; rerun after review.
8. Draft the how-to, troubleshooting note, demo script, and catalog update from observed results. Keep failed, blocked, skipped, and unexecuted scope explicit.
9. Promote using the [validation standard](https://learning.contextqa.com/packaged-application-testing/packaged-app-testing/asset-validation.md), not the agent’s confidence statement.

## Reusable prompt contract

```
Goal: Validate [business outcome] for [product/module/interface].
Scope: Use only [authorized test workspace and environment].
Inputs: [synthetic schema, roles, actual service contract, setup/reset].
Expected invariants: [exact values, relationships, permitted transitions].
Negative cases: [rejection and unchanged-state assertions].
Before changes: inspect available tools and existing reusable assets.
Execute only within the approved scope; preserve run and record IDs.
Return: proposed/created cases, terminal results, evidence references,
failed/blocked/not-executed scope, changes made, and reset outcome.
Do not infer a pass from test creation, request submission, or a summary.
```

This is a prompt template, not a guarantee that every action is available to every MCP account. The connected manifest is authoritative.

## Package Claude skills and API collections

Use the credential-free ContextQA skill available from the supported connection workflow as a starting point. Keep process-specific instructions small: prerequisites, input/output contract, approved tool selection, assertions, failure handling, reset, and evidence format. Version instructions with the pack and test them in the approved client before reuse.

Create API collections from the actual reviewed service specification. Parameterize hosts and synthetic values; bind authentication through protected configuration. Include contract assertions, negative responses, correlation handling, and asynchronous completion checks. A collection template without environment binding and a run is not a validated integration.

## Close the issue-to-release loop

Use configured [Slack and Linear workflows](https://learning.contextqa.com/ai-software-factory/ship/slack-linear-to-release.md) or [ticket-driven testing](https://learning.contextqa.com/ai-software-factory/ship/ticket-driven-testing.md) to collect a reproducible issue. Give the coding agent sanitized expected/actual results and reproduction evidence. Review its proposed fix, then run the failed scenario and affected regression against the new candidate. Update the reusable pack and product-gap record from the verified result.

Customer engagement sources need a reuse review. Extract the generic scenario and recreate it with synthetic data; do not automatically publish a conversation, customer configuration, or recording.

## Frequently asked questions

### Does MCP mean the entire process runs unattended?

No. Available tools, permissions, application behavior, and configured execution all matter. Use automation for repeatable work and explicit review for acceptance criteria and scope changes. MCP access is not release approval.

### How do we prevent agent-generated documentation from overstating coverage?

Require a run reference for every execution claim and a status for every asset. Separate proposed coverage from observed results, and preserve interface exclusions and unresolved gaps in the generated output.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://learning.contextqa.com/packaged-application-testing/packaged-app-testing/agentic-asset-workflow.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
