Server Module¶
FastMCP server implementation with all available MCP tools.
Available Tools¶
The server exposes 49 tools organized into categories. These tools are decorated with @mcp.tool which transforms them into MCP-compatible tools. For detailed documentation of each tool, see the user guides.
Tool Categories¶
Computer Health Tools (4 tools)¶
get_health_scorecard- Generate comprehensive health scorecardsget_basic_diagnostics- Get basic diagnostic informationget_cves- Analyze CVE vulnerabilitiesget_compliance_status- Check compliance status
📖 See Computer Health Tools for detailed documentation.
Inventory Management Tools (3 tools)¶
get_computer_inventory- Get detailed computer inventoryget_computer_history- Get computer historysearch_computers- Search for computers
📖 See Inventory Management Tools for detailed documentation.
Policy & Configuration Tools (11 tools)¶
get_policies- List all policiesget_policy_details- Get policy detailsget_configuration_profiles- List configuration profilesget_profile_details- Get profile detailsget_scripts- List scriptsget_script_details- Get script detailsget_packages- List packagesget_package_details- Get package detailsget_patch_software_titles- List patch software titlesget_patch_software_title_details- Get patch title detailsget_patch_policies- List patch policies
📖 See Policy & Configuration Tools for detailed documentation.
Security & Compliance Tools (5 tools)¶
get_restricted_software- List restricted softwareget_restricted_software_details- Get restricted software detailsget_licensed_software- List licensed softwareget_licensed_software_details- Get licensed software detailsget_device_lock_pin- Get device lock PIN
📖 See Security & Compliance Tools for detailed documentation.
Organization Management Tools (13 tools)¶
get_buildings- List buildingsget_building_details- Get building detailsget_departments- List departmentsget_department_details- Get department detailsget_users- List usersget_user_details- Get user detailsget_user_group_details- Get user group detailsget_sites- List sitesget_site_details- Get site detailsget_categories- List categoriesget_category_details- Get category detailsget_network_segments- List network segmentsget_network_segment_details- Get network segment details
📖 See Organization Tools for detailed documentation.
Utility Tools (13 tools)¶
get_jcds_files- List JCDS filesget_webhooks- List webhooksget_webhook_details- Get webhook detailsget_ldap_servers- List LDAP serversget_ldap_server_details- Get LDAP server detailsget_directory_bindings- List directory bindingsget_directory_binding_details- Get directory binding detailsget_advanced_computer_searches- List advanced searchesget_advanced_computer_search_details- Get search detailsget_smart_groups- List smart groupsget_group_details- Get group detailsget_extension_attributes- List extension attributesping- Ping the server
📖 See Utility Tools for detailed documentation.
Logging¶
The module uses Python’s standard logging:
import logging
logger = logging.getLogger(__name__)
# Configure logging
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
Running the Server¶
The server can be run directly:
if __name__ == "__main__":
mcp.run()
Or through FastMCP:
fastmcp run src/jamfmcp/server.py:main