AF_MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Device Linkage Blocking Agent
This is an AiPy extension scaffold built on the latest version of FastMCP, designed for subsequent integration with AF device linkage blocking capabilities.
Project Structure
device_block_agent/: Core Python source code and MCP tool implementation.docs/: API documentation, solution documents, and original PDFs.assets/: Static resources such as icons.examples/: Whitelist samples and reference materials.Root directory: Contains project entry files such as
main.py,manifest.json,requirements.txt, andREADME.md.
Related MCP server: hachiman
Current Status
Integrated FastMCP 3.2.4.
Provided a Streamable HTTP MCP service entry point, with the default exposure path at
/mcp.Provided the
addition-system-instructionprompt required by AiPy.Provided three authentication tools:
auth_login,auth_keepalive, andauth_logout.Provided four read-only query tools:
block_list_temp,block_list_business,block_get_total_count, andblock_get_block_time.Provided a whitelist rule loading and manual confirmation judgment module, which can be directly reused by subsequent write operation tools.
Provided seven write operation tools:
block_add_business,block_delete_temp,block_delete_business,block_clear_attackers,block_clear_temp,block_clear_business, andblock_set_block_time.Provided local JSONL audit logs and check-back results refined by operation type.
Supported persistence of login sessions via local JSON files for cross-process login state reuse.
Supported local session timeout judgment and automatic keepalive when nearing expiration.
Supported default AF account and connection configuration, which can be directly reused by authentication and blocking tools.
Provided a minimal tool
agent_infoto verify the discovery link from AiPy to the MCP service.Integrated the first version of business-level check-back policy;
block_clear_attackershas been upgraded to include pre- and post-baseline comparison judgment.
Local Execution
Install dependencies:
pip install -r requirements.txtStart the service:
python main.pyAfter the service starts, a random port number will be printed to standard output.
Risk Control Configuration
examples/whitelist.sample.jsonprovides a local whitelist example.confirm_modesupports two modes:manualandauto.WHITELIST_FILEandCONFIRM_MODEcan be injected into the runtime environment viamanifest.json'suser_config.Clearing operations always require explicit confirmation; bulk additions and deletions require explicit confirmation in
manualmode.LOG_FILEcan be used to specify the local JSONL audit log path.SESSION_FILEcan be used to specify the local JSON session persistence path.SESSION_TIMEOUT_SECONDSandSESSION_REFRESH_WINDOW_SECONDScan be used to control local session timeout and automatic keepalive windows.
Account Configuration
af_hostis used to configure the default AF host address.af_namespaceis used to configure the default namespace, defaulting topublic.af_usernameandaf_passwordare used to configure the default login account.af_verify_tlsis used to configure the default HTTPS certificate verification switch.Once configured,
auth_login,auth_keepalive,auth_logout, and blocking-related tools can directly reuse these default values.
Currently Implemented Tools
agent_infoauth_loginauth_keepaliveauth_logoutaccount_config_statusblock_list_tempblock_list_businessblock_get_total_countblock_get_block_timeblock_add_businessblock_delete_tempblock_delete_businessblock_clear_attackersblock_clear_tempblock_clear_businessblock_set_block_time
Next Steps
For production deployment, add log rotation and sensitive field classification/masking.
For stronger check-back capabilities, add precise comparison based on business record IDs or operation result objects.
For long-term operation, add an automatic re-authentication strategy after token expiration.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Device intelligence for AI agents: Fingerprint events, smart signals, and API key management.
Manage incident alerts, events, and workflows with custom automations
Deterministic allow/require_approval/deny verdicts for agent actions, before they happen.
Remote MCP for AI waiver checks, exception approvals, expiry review, and audit receipts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI-driven phone management for Android and iOS devices, including flashing, unlocking, and automation via MCP.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents and MCP servers to operate under autonomous security enforcement, including pre-deployment scanning, per-call authorization, runtime monitoring, incident containment, and comprehensive auditing.1MIT
- FlicenseBqualityCmaintenanceEnables SentinelOne session login, XDR alerts, Purple AI, and SOC investigation tools through FastMCP, using Azure Key Vault for credentials.141-
- AlicenseNot gradedqualityCmaintenanceEnables managing FortiGate firewalls from an MCP-compatible AI client, with local multi-device enrollment, OS credential storage, connectivity checks, and AI client integration.MIT