create_application
Create a new application in the SD Elements platform by defining its name, description, and associated business unit ID for secure development lifecycle management.
Instructions
Create a new application in SD Elements
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| business_unit_id | No | ID of the business unit this application belongs to | |
| description | No | Application description | |
| name | Yes | Application name |
Implementation Reference
- The MCP tool handler for 'create_application', decorated with @mcp.tool(). It constructs the application data from parameters, calls the internal API client to create the application, and returns the JSON result.@mcp.tool() async def create_application(ctx: Context, name: str, business_unit_id: int, description: Optional[str] = None) -> str: """Create a new application""" global api_client if api_client is None: api_client = init_api_client() data = {"name": name, "business_unit": business_unit_id} if description: data["description"] = description result = api_client.create_application(data) return json.dumps(result, indent=2)
- src/sde_mcp_server/tools/applications.py:33-33 (registration)The @mcp.tool() decorator registers the create_application function as an MCP tool.@mcp.tool()