Skip to content

WIP: Snipe-IT MCP server#18992

Draft
snipe wants to merge 45 commits into
developfrom
mcp
Draft

WIP: Snipe-IT MCP server#18992
snipe wants to merge 45 commits into
developfrom
mcp

Pint

f697ef1
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action May 9, 2026 in 0s

74 new issues (0 max.) of at least severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 74
           

Complexity increasing per file
==============================
- app/Models/Asset.php  2
- app/Mcp/Prompts/AuditLocationPrompt.php  2
- app/Mcp/Prompts/EndOfLifeReviewPrompt.php  5
- app/Mcp/Prompts/ExpiringLicensesPrompt.php  2
- app/Mcp/Prompts/FindAvailableAssetPrompt.php  5
- app/Mcp/Prompts/InventorySummaryPrompt.php  5
- app/Mcp/Prompts/OffboardEmployeePrompt.php  2
- app/Mcp/Prompts/OnboardEmployeePrompt.php  5
- app/Mcp/Prompts/SnipePrompt.php  5
- app/Mcp/Prompts/UserInventoryPrompt.php  2
- app/Mcp/Prompts/WarrantyExpiringPrompt.php  2
- app/Mcp/Tools/AddAssetNoteTool.php  11
- app/Mcp/Tools/AuditAssetTool.php  16
- app/Mcp/Tools/CheckinAccessoryTool.php  9
- app/Mcp/Tools/CheckinAssetTool.php  13
- app/Mcp/Tools/CheckinComponentTool.php  10
- app/Mcp/Tools/CheckinLicenseTool.php  12
- app/Mcp/Tools/CheckoutAccessoryTool.php  12
- app/Mcp/Tools/CheckoutAssetTool.php  25
- app/Mcp/Tools/CheckoutComponentTool.php  12
- app/Mcp/Tools/CheckoutConsumableTool.php  11
- app/Mcp/Tools/CheckoutLicenseTool.php  20
- app/Mcp/Tools/CreateAccessoryTool.php  6
- app/Mcp/Tools/CreateAssetModelTool.php  8
- app/Mcp/Tools/CreateAssetTool.php  8
- app/Mcp/Tools/CreateCategoryTool.php  8
- app/Mcp/Tools/CreateCompanyTool.php  10
- app/Mcp/Tools/CreateComponentTool.php  6
- app/Mcp/Tools/CreateConsumableTool.php  6
- app/Mcp/Tools/CreateDepartmentTool.php  6
- app/Mcp/Tools/CreateDepreciationTool.php  6
- app/Mcp/Tools/CreateGroupTool.php  15
- app/Mcp/Tools/CreateLicenseTool.php  6
- app/Mcp/Tools/CreateLocationTool.php  8
- app/Mcp/Tools/CreateMaintenanceTool.php  10
- app/Mcp/Tools/CreateManufacturerTool.php  6
- app/Mcp/Tools/ShowGroupTool.php  7
- app/Mcp/Tools/ShowLicenseTool.php  16
- app/Mcp/Tools/ShowLocationTool.php  12
- app/Mcp/Tools/CreateStatusLabelTool.php  8
- app/Mcp/Tools/CreateSupplierTool.php  6
- app/Mcp/Tools/ShowManufacturerTool.php  13
- app/Mcp/Tools/ShowStatusLabelTool.php  13
- app/Mcp/Tools/CreateUserTool.php  12
- tests/Feature/Mcp/ListAssetNotesToolTest.php  8
- app/Mcp/Tools/DeleteAccessoryTool.php  10
- app/Mcp/Tools/DeleteAssetModelTool.php  10
- app/Mcp/Tools/ShowSupplierTool.php  13
- app/Mcp/Tools/ShowUserTool.php  17
- app/Mcp/Tools/UpdateAccessoryTool.php  14
- tests/Feature/Mcp/ListAssetsToolTest.php  13
- app/Mcp/Tools/UpdateAssetModelTool.php  13
- app/Mcp/Tools/UpdateAssetTool.php  15
- app/Mcp/Tools/DeleteAssetTool.php  11
- app/Mcp/Tools/DeleteCategoryTool.php  10
- app/Mcp/Tools/DeleteCompanyTool.php  9
- app/Mcp/Tools/UpdateCategoryTool.php  13
- tests/Feature/Mcp/ListCategoriesToolTest.php  6
- app/Mcp/Tools/UpdateCompanyTool.php  13
- app/Mcp/Tools/DeleteComponentTool.php  10
- tests/Feature/Mcp/ListCompaniesToolTest.php  6
- app/Mcp/Tools/DeleteConsumableTool.php  10
- app/Mcp/Tools/DeleteDepartmentTool.php  10
- app/Mcp/Tools/UpdateComponentTool.php  14
- app/Mcp/Tools/UpdateConsumableTool.php  13
- tests/Feature/Mcp/ListConsumablesToolTest.php  7
- app/Mcp/Tools/UpdateDepartmentTool.php  14
- app/Mcp/Tools/UpdateDepreciationTool.php  12
- app/Mcp/Tools/DeleteDepreciationTool.php  9
- app/Mcp/Tools/DeleteGroupTool.php  8
- app/Mcp/Tools/UpdateGroupTool.php  18
- app/Mcp/Tools/DeleteLicenseTool.php  10
- tests/Feature/Mcp/ListDepreciationsToolTest.php  5
- app/Mcp/Tools/DeleteLocationTool.php  11
- app/Mcp/Tools/DeleteManufacturerTool.php  9
- app/Mcp/Tools/UpdateLicenseTool.php  14
- app/Mcp/Tools/UpdateLocationTool.php  13
- tests/Feature/Mcp/ListGroupsToolTest.php  5
- app/Mcp/Tools/UpdateManufacturerTool.php  13
- app/Mcp/Tools/DeleteStatusLabelTool.php  10
- app/Mcp/Tools/DeleteSupplierTool.php  9
- app/Mcp/Tools/UpdateProfileTool.php  16
- tests/Feature/Mcp/ListHistoryToolTest.php  9
- app/Mcp/Tools/UpdateStatusLabelTool.php  16
- app/Mcp/Tools/DeleteUserTool.php  13
- tests/Feature/Mcp/ListLicensesToolTest.php  10
- app/Mcp/Tools/GetActivityLogTool.php  12
- app/Mcp/Tools/UpdateSupplierTool.php  13
- app/Mcp/Tools/UpdateUserTool.php  27
- app/Mcp/Tools/GetCurrentUserTool.php  8
- tests/Feature/Mcp/ListLocationsToolTest.php  6
- app/Mcp/Tools/GetUserAssetsTool.php  8
- app/Models/Builders/AssetBuilder.php  44
- app/Mcp/Tools/ListAssetModelsTool.php  11
- tests/Feature/Mcp/ListMaintenancesToolTest.php  6
- app/Mcp/Tools/ListAssetNotesTool.php  14
- tests/Feature/Mcp/ListManufacturersToolTest.php  6
- app/Mcp/Tools/ListAssetsTool.php  24
- tests/Feature/Mcp/AddAssetNoteToolTest.php  7
- tests/Feature/Mcp/AuditAssetToolTest.php  13
- app/Mcp/Tools/ListCategoriesTool.php  8
- app/Mcp/Tools/ListCompaniesTool.php  7
- app/Mcp/Tools/ListConsumablesTool.php  16
- tests/Feature/Mcp/CheckinAccessoryToolTest.php  9
- tests/Feature/Mcp/ListStatusLabelsToolTest.php  5
- tests/Feature/Mcp/CheckinAssetToolTest.php  11
- tests/Feature/Mcp/CheckinComponentToolTest.php  12
- app/Mcp/Tools/ListDepreciationsTool.php  7
- app/Mcp/Tools/ListGroupsTool.php  7
- tests/Feature/Mcp/ListSuppliersToolTest.php  5
- app/Mcp/Tools/ListHistoryTool.php  14
- tests/Feature/Mcp/CheckinLicenseToolTest.php  11
- tests/Feature/Mcp/ListUploadsToolTest.php  7
- tests/Feature/Mcp/CheckoutAccessoryToolTest.php  12
- tests/Feature/Mcp/CheckoutAssetToolTest.php  12
- app/Mcp/Tools/ListLicensesTool.php  17
- tests/Feature/Mcp/ListUsersToolTest.php  13
- app/Mcp/Tools/ListLocationsTool.php  9
- tests/Feature/Mcp/CheckoutComponentToolTest.php  11
- app/Mcp/Tools/ListMaintenancesTool.php  9
- tests/Feature/Mcp/Reset2FAToolTest.php  5
- app/Mcp/Tools/ListManufacturersTool.php  7
- tests/Feature/Mcp/CheckoutConsumableToolTest.php  7
- tests/Feature/Mcp/CheckoutLicenseToolTest.php  12
- tests/Feature/Mcp/RestoreAssetToolTest.php  6
- tests/Feature/Mcp/CreateAccessoryToolTest.php  9
- app/Mcp/Tools/ListStatusLabelsTool.php  12
- app/Mcp/Tools/ListSuppliersTool.php  7
- tests/Feature/Mcp/CreateAssetModelToolTest.php  7
- tests/Feature/Mcp/RestoreUserToolTest.php  6
- tests/Feature/Mcp/CreateAssetToolTest.php  8
- app/Mcp/Tools/ListUploadsTool.php  9
- app/Mcp/Tools/ListUsersTool.php  15
- app/Mcp/Tools/Reset2FATool.php  5
- tests/Feature/Mcp/CreateCategoryToolTest.php  9
- tests/Feature/Mcp/CreateCompanyToolTest.php  7
- tests/Feature/Mcp/ShowAssetModelToolTest.php  7
- tests/Feature/Mcp/CreateComponentToolTest.php  10
- app/Mcp/Tools/RestoreAssetTool.php  6
- tests/Feature/Mcp/ShowAssetToolTest.php  14
- app/Mcp/Tools/RestoreUserTool.php  7
- app/Mcp/Tools/SendPasswordResetTool.php  15
- tests/Feature/Mcp/CreateConsumableToolTest.php  9
- tests/Feature/Mcp/CreateDepartmentToolTest.php  8
- app/Mcp/Tools/ShowAssetModelTool.php  14
- tests/Feature/Mcp/ShowCategoryToolTest.php  7
- app/Mcp/Tools/ShowAssetTool.php  25
- tests/Feature/Mcp/CreateDepreciationToolTest.php  7
- tests/Feature/Mcp/CreateGroupToolTest.php  10
- tests/Feature/Mcp/ShowCompanyToolTest.php  7
- tests/Feature/Mcp/CreateLicenseToolTest.php  11
- app/Mcp/Tools/ShowCategoryTool.php  9
- app/Mcp/Tools/ShowCompanyTool.php  9
- tests/Feature/Mcp/ShowConsumableToolTest.php  8
- app/Mcp/Tools/ShowConsumableTool.php  14
- app/Mcp/Tools/ShowDepreciationTool.php  11
- tests/Feature/Mcp/CreateLocationToolTest.php  7
- tests/Feature/Mcp/CreateMaintenanceToolTest.php  8
- tests/Feature/Mcp/CreateManufacturerToolTest.php  6
- tests/Feature/Mcp/ShowDepreciationToolTest.php  7
- tests/Feature/Mcp/CreateStatusLabelToolTest.php  8
- tests/Feature/Mcp/CreateSupplierToolTest.php  6
- tests/Feature/Mcp/ShowGroupToolTest.php  7
- tests/Feature/Mcp/CreateUserToolTest.php  16
- tests/Feature/Mcp/DeleteAccessoryToolTest.php  8
- tests/Feature/Mcp/DeleteAssetModelToolTest.php  7
- tests/Feature/Mcp/ShowLicenseToolTest.php  9
- tests/Feature/Mcp/DeleteAssetToolTest.php  10
- tests/Feature/Mcp/ShowLocationToolTest.php  7
- tests/Feature/Mcp/DeleteCategoryToolTest.php  6
- tests/Feature/Mcp/ShowManufacturerToolTest.php  7
- tests/Feature/Mcp/DeleteCompanyToolTest.php  7
- tests/Feature/Mcp/DeleteComponentToolTest.php  8
- tests/Feature/Mcp/ShowStatusLabelToolTest.php  7
- tests/Feature/Mcp/DeleteConsumableToolTest.php  8
- tests/Feature/Mcp/DeleteDepartmentToolTest.php  8
- tests/Feature/Mcp/ShowSupplierToolTest.php  7
- tests/Feature/Mcp/DeleteDepreciationToolTest.php  6
- tests/Feature/Mcp/ShowUserToolTest.php  14
- tests/Feature/Mcp/DeleteGroupToolTest.php  6
- tests/Feature/Mcp/DeleteLicenseToolTest.php  8
- tests/Feature/Mcp/UpdateAccessoryToolTest.php  10
- tests/Feature/Mcp/DeleteLocationToolTest.php  7
- tests/Feature/Mcp/DeleteManufacturerToolTest.php  6
- tests/Feature/Mcp/UpdateAssetModelToolTest.php  6
- tests/Feature/Mcp/DeleteStatusLabelToolTest.php  7
- tests/Feature/Mcp/DeleteSupplierToolTest.php  6
- tests/Feature/Mcp/DeleteUserToolTest.php  10
- tests/Feature/Mcp/UpdateAssetToolTest.php  11
- tests/Feature/Mcp/FmcsAccessoryScopingTest.php  12
- tests/Feature/Mcp/FmcsCompanyScopingTest.php  17
- tests/Feature/Mcp/UpdateCategoryToolTest.php  6
- tests/Feature/Mcp/FmcsComponentScopingTest.php  15
- tests/Feature/Mcp/GetActivityLogToolTest.php  8
- tests/Feature/Mcp/GetCurrentUserToolTest.php  5
- tests/Feature/Mcp/UpdateCompanyToolTest.php  8
- tests/Feature/Mcp/GetUserAssetsToolTest.php  6
- tests/Feature/Mcp/UpdateComponentToolTest.php  10
- tests/Feature/Mcp/ListAssetModelsToolTest.php  7
- tests/Feature/Mcp/UpdateConsumableToolTest.php  7
- tests/Feature/Mcp/UpdateDepartmentToolTest.php  9
- tests/Feature/Mcp/UpdateDepreciationToolTest.php  7
- tests/Feature/Mcp/UpdateGroupToolTest.php  9
- tests/Feature/Mcp/UpdateLicenseToolTest.php  8
- tests/Feature/Mcp/UpdateLocationToolTest.php  6
- tests/Feature/Mcp/UpdateManufacturerToolTest.php  6
- tests/Feature/Mcp/UpdateProfileToolTest.php  7
- tests/Feature/Mcp/UpdateStatusLabelToolTest.php  7
- tests/Feature/Mcp/UpdateSupplierToolTest.php  6
- tests/Feature/Mcp/UpdateUserToolTest.php  21
         

See the complete overview on Codacy

Annotations

Check notice on line 36 in .github/copilot-instructions.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

.github/copilot-instructions.md#L36

Expected: 4; Actual: 2

Check notice on line 59 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L59

Blank line inside blockquote

Check notice on line 252 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L252

Expected: 1; Actual: 0; Below

Check notice on line 261 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L261

Expected: 1; Actual: 0; Below

Check notice on line 276 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L276

Expected: 1; Actual: 0; Below

Check notice on line 297 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L297

Expected: 1; Actual: 0; Below

Check notice on line 324 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L324

Expected: 1; Actual: 0; Below

Check notice on line 333 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L333

Expected: 1; Actual: 0; Below

Check notice on line 340 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L340

Expected: 1; Actual: 0; Below

Check notice on line 355 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L355

Expected: 1; Actual: 0; Below

Check notice on line 364 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L364

Expected: 1; Actual: 0; Below

Check notice on line 376 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L376

Expected: 1; Actual: 0; Below

Check notice on line 390 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L390

Expected: 1; Actual: 0; Below

Check notice on line 403 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L403

Expected: 1; Actual: 0; Below

Check notice on line 412 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L412

Expected: 1; Actual: 0; Below

Check notice on line 441 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L441

Expected: 1; Actual: 0; Below

Check notice on line 468 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L468

Expected: 1; Actual: 0; Below

Check notice on line 477 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L477

Expected: 1; Actual: 0; Below

Check notice on line 484 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L484

Expected: 1; Actual: 0; Below

Check notice on line 487 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L487

Expected: 1; Actual: 0; Below

Check notice on line 501 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L501

Expected: 1; Actual: 0; Below

Check notice on line 508 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L508

Expected: 1; Actual: 0; Below

Check notice on line 538 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L538

Expected: 1; Actual: 0; Below

Check notice on line 541 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L541

Expected: 1; Actual: 0; Below

Check notice on line 586 in app/Mcp/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/Mcp/README.md#L586

Expected: 1; Actual: 0; Below