Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
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
}