eng/common/instructions/azsdk-tools/local-sdk-workflow.instructions.md
Help the user generate and build SDKs locally from TypeSpec API specifications using the azure-sdk-mcp tools.
High level steps involved:
Goal: Ensure the user understands the overall SDK generation and build process before starting.
Actions:
azsdk_package_generate_code MCP toolazsdk_package_build_code MCP toolGoal: Confirm the target language for SDK generation.
Actions:
Goal: Ensure the correct Azure SDK language repository is available locally. Actions:
azure-sdk-for-net (.NET)azure-sdk-for-java (Java)azure-sdk-for-js (JavaScript)azure-sdk-for-python (Python)azure-sdk-for-go (Go)Actions:
Goal: Determine the correct path to the TypeSpec configuration file based on the working context.
Actions:
Scenario A: Working in a repository cloned from azure-rest-api-specs
tspconfig.yaml (local path or HTTPS URL).azure-rest-api-specs repository./home/usr/azure-rest-api-specs/specification/contosowidgetmanager/Contoso.Management/tspconfig.yamlhttps://github.com/Azure/azure-rest-api-specs/blob/4af373fc5826cf5a2365a20dde01c4b2efde48f0/specification/contosowidgetmanager/Contoso.Management/tspconfig.yamlScenario B: Working in one of the official Azure SDK language repositories
(i.e., originally cloned from azure-sdk-for-net, azure-sdk-for-java, azure-sdk-for-js, azure-sdk-for-python, azure-sdk-for-go)
tsp-location.yaml./home/usr/azure-sdk-for-net/sdk/contoso/Azure.ResourceManager.Contoso/tsp-location.yamlActions:
azsdk_verify_setup MCP tool to ensure the local environment is correctly configured for the selected SDK language.Actions:
azsdk_package_generate_code MCP tool to generate the SDK locally.Goal: Locate the generated SDK project directory for building/compiling. Actions:
sdk/{service-name}/{package-name}//path/to/azure-sdk-for-net/contoso/Azure.ResourceManager.Contoso/Actions:
azsdk_package_build_code MCP tool to compile the SDK in the identified project directory.Actions:
azsdk_package_run_check MCP tool to validate the generated SDK package in the identified project directory.Actions:
azsdk_package_run_tests MCP tool to run tests on the generated SDK package in the identified project directory.Actions:
azsdk_package_update_metadata MCP tool to update metadata in the identified project directory.azsdk_package_update_changelog_content MCP tool to update change log in the identified project directory.azsdk_package_update_version MCP tool to update version in the identified project directory.