Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...

    MCP (Model Context Protocol) client providing typed access to 32 riksdag-regering intelligence tools via JSON-RPC 2.0.

    Index

    Constructors

    Properties

    baseURL: string
    timeout: number
    maxRetries: number
    customHeaders: Readonly<Record<string, string>>
    authToken: string
    requestCount: number
    errorCount: number
    sessionId: string

    Methods

    • Parameters

      • tool: string
      • params: Record<string, unknown> = {}
      • retryCount: number = 0
      • skipPrefix: boolean = false

      Returns Promise<Record<string, unknown>>

    • Parameters

      • from: string
      • tom: string
      • org: string = null
      • akt: string = null

      Returns Promise<unknown[]>

    • Parameters

      • limit: number = 10
      • rm: string = null
      • organ: string = null

      Returns Promise<unknown[]>

    • Fetch government document content from regeringen.se via g0v.se. Uses the get_g0v_document_content MCP tool to retrieve Markdown content.

      The g0v MCP tool response typically contains:

      • content (primary): Markdown content of the document
      • markdown (fallback): Alias used by some g0v API versions
      • text (fallback): Plain text content when Markdown is unavailable

      Parameters

      Returns Promise<string>

      Markdown content of the document, or null if unavailable

    • Fetch raw text content from an external URL (e.g. GitHub raw, other public URLs). Performs a simple HTTP GET and returns the response body as text. Uses a 15-second timeout to avoid hanging on slow external resources.

      Parameters

      • rawUrl: string

        Full URL to fetch (must be publicly accessible)

      Returns Promise<string>

      Text content of the resource, or null if unavailable