langflow-ai/langflow · error · HTTPException

{e}

Error message

{e}

What it means

Error "{e}" thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/mcp_projects.py:365

            # Get project-level auth settings but mask sensitive fields for security
            auth_settings = None
            if project.auth_settings:
                # Decrypt to get the settings structure
                decrypted_settings = decrypt_auth_settings(project.auth_settings)
                if decrypted_settings:
                    # Mask sensitive fields before sending to frontend
                    masked_settings = decrypted_settings.copy()
                    if masked_settings.get("oauth_client_secret"):
                        masked_settings["oauth_client_secret"] = "*******"  # noqa: S105
                    if masked_settings.get("api_key"):
                        masked_settings["api_key"] = "*******"
                    auth_settings = AuthSettings(**masked_settings)

    except Exception as e:
        msg = f"Error listing project tools: {e!s}"
        await logger.aexception(msg)
        raise HTTPException(status_code=500, detail=str(e)) from e

    return MCPProjectResponse(tools=tools, auth_settings=auth_settings)


@router.get("/{project_id}")
async def list_project_tools(
    project_id: UUID,
    current_user: CurrentActiveMCPUser,
    *,
    mcp_enabled: bool = True,
) -> Response:
    """List project MCP tools."""
    metadata = await _build_project_tools_response(project_id, current_user, mcp_enabled=mcp_enabled)
    return JSONResponse(content=metadata.model_dump(mode="json"))


########################################################
# legacy SSE transport routes

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Inspect the logged exception for the root cause of the MCP project error and retry.

When it happens

Trigger: Occurs when an exception is raised while handling a project MCP server request; the raw exception is surfaced.

Common situations: See trigger scenarios.


AI-assisted analysis of langflow-ai/langflow@976ec789d2 (2026-08-14). Data as JSON: /api/errors/78f692c8b513ac7e. Report an issue: GitHub.