Back to Home
UAPFormat icon

uapf-mcp

Verified Safe

by UAPFormat

Overview

The uapf-mcp server acts as a Model Context Protocol (MCP) gateway for UAPF packages, connecting to a uapf-engine instance to expose UAPF tools and resources.

Installation

Run Command
npm run start

Environment Variables

  • MCP_PORT
  • MCP_TRANSPORT
  • MCP_HTTP_PATH
  • MCP_CORS_ORIGIN
  • UAPF_MCP_NAME
  • UAPF_MCP_TOOL_PREFIX
  • UAPF_DEBUG_LOG
  • UAPF_ENGINE_URL
  • UAPF_ENGINE_MODE
  • UAPF_MCP_MODE
  • UAPF_PACKAGE_PATH
  • UAPF_WORKSPACE_DIR
  • UAPF_SECURITY_MODE
  • UAPF_DIDVC_VERIFIER
  • UAPF_DIDVC_VERIFIER_URL

Security Notes

The server uses environment variables for sensitive configurations, which is good practice. Session IDs are generated using `randomUUID()`. However, the default CORS origin is `*`, which is overly permissive for production and should be restricted. The debug log (`UAPF_DEBUG_LOG`) records full HTTP requests/responses (including headers and body) to disk, which could expose sensitive data if the log file is not properly secured. While claims enforcement is supported via `UAPF_SECURITY_MODE=claims_enforce` and an `HttpVerifier`, the default `claims_declare` mode only reports claims without enforcing them, meaning sensitive operations might not be blocked by default. The `HttpVerifier` relies on an external URL (`UAPF_DIDVC_VERIFIER_URL`) for verification, and the security of this endpoint is critical and not managed by this server. No `eval` or blatant malicious patterns were found in the provided source code.

Similar Servers

Stats

Interest Score9
Security Score7
Cost ClassMedium
Avg Tokens1500
Stars1
Forks1
Last Update2025-12-15

Tags

UAPFMCPAPI GatewayMicroserviceWorkflow Management