Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
351 B
Raw Blame
import { useContext } from 'react'
import { McpRuntimeContext } from './context'
import type { McpRuntimeContextValue } from './types'

export function useMcpRuntimeContext(): McpRuntimeContextValue {
  const ctx = useContext(McpRuntimeContext)
  if (!ctx) throw new Error('useMcpRuntimeContext must be used within McpRuntimeProvider')
  return ctx
}