beagle_create_application
Create a new application for security testing in Beagle Security projects. Specify name, URL, project key, and type (WEB or API) to initiate security assessments.
Instructions
Create a new application in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Application name | |
| url | Yes | Application URL | |
| projectKey | Yes | Project key | |
| type | Yes | Application type |
Implementation Reference
- src/index.ts:418-437 (handler)The handler function 'createApplication' that performs the API call to create an application.
private async createApplication(args: any) { const result = await this.makeRequest("/applications", { method: "POST", body: JSON.stringify({ name: args.name, url: args.url, projectKey: args.projectKey, type: args.type, }), }); return { content: [ { type: "text", text: `Application created successfully:\n${JSON.stringify(result, null, 2)}`, }, ], }; } - src/index.ts:117-130 (schema)Definition of the 'beagle_create_application' tool including its input schema.
{ name: "beagle_create_application", description: "Create a new application in a project", inputSchema: { type: "object", properties: { name: { type: "string", description: "Application name" }, url: { type: "string", description: "Application URL" }, projectKey: { type: "string", description: "Project key" }, type: { type: "string", enum: ["WEB", "API"], description: "Application type" }, }, required: ["name", "url", "projectKey", "type"], }, }, - src/index.ts:294-295 (registration)Registration of the 'beagle_create_application' tool in the request handler switch statement.
case "beagle_create_application": return await this.createApplication(args);