MCP Server Framework - v1.0.0
    Preparing search index...

    Variable MCP_ATTRIBUTESConst

    MCP_ATTRIBUTES: {
        OPERATION: "mcp.operation";
        PROMPT_NAME: "mcp.prompt.name";
        REQUEST_ID: "mcp.request.id";
        RESOURCE_TEMPLATE: "mcp.resource.template";
        RESOURCE_URI: "mcp.resource.uri";
        RESULT_CONTENT_COUNT: "mcp.result.content_count";
        RESULT_IS_ERROR: "mcp.result.is_error";
        SESSION_ID: "mcp.session.id";
        SUCCESS: "mcp.success";
        TOOL_NAME: "mcp.tool.name";
    } = ...

    Semantic attribute names for MCP operations. Follow OpenTelemetry semantic conventions pattern.

    Note: Application-specific attributes should be defined in the app layer (src/app/telemetry.ts) to keep the framework generic.

    Type Declaration

    • ReadonlyOPERATION: "mcp.operation"

      Operation type (tool_call, resource_read, prompt_generate)

    • ReadonlyPROMPT_NAME: "mcp.prompt.name"

      MCP prompt name

    • ReadonlyREQUEST_ID: "mcp.request.id"

      MCP request ID

    • ReadonlyRESOURCE_TEMPLATE: "mcp.resource.template"

      MCP resource template URI

    • ReadonlyRESOURCE_URI: "mcp.resource.uri"

      MCP resource URI

    • ReadonlyRESULT_CONTENT_COUNT: "mcp.result.content_count"

      Result content type count

    • ReadonlyRESULT_IS_ERROR: "mcp.result.is_error"

      Whether the result indicates an error

    • ReadonlySESSION_ID: "mcp.session.id"

      MCP session ID

    • ReadonlySUCCESS: "mcp.success"

      Whether the operation succeeded

    • ReadonlyTOOL_NAME: "mcp.tool.name"

      MCP tool name