MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions12,853 in github.com/JuliusBrussee/caveman

↓ 2 callersFunctionLoadConfigFile
--- MCP Config Loading & Discovery ----------------------------------------- LoadConfigFile parses a JSON MCP config file supporting standard `{"mcpSe
mcp/codemode/stdio_upstream.go:456
↓ 2 callersFunctionLoadOrCreateSessionKey
LoadOrCreateSessionKey returns one user-only HMAC key shared by CLI adapters and local proxy. O_EXCL makes concurrent first startup converge on one ke
proxy/internal/nativeruntime/marker.go:29
↓ 2 callersFunctionLoopbackListen
LoopbackListen reports whether listen binds only the local machine.
proxy/internal/config/config.go:382
↓ 2 callersFunctionMantleRegionAllowed
MantleRegionAllowed validates the endpoint-specific Mantle inventory. Operators may narrow it without widening the shared Runtime inventory.
proxy/providers/bedrock/routing.go:425
↓ 2 callersMethodMatchMetadataRoute
MatchMetadataRoute applies the same decoded-path check as MatchRoute before admitting a read-only metadata request, so the new GET surface cannot be u
proxy/providers/openaicompat/openaicompat.go:47
↓ 2 callersFunctionMeasureLineCols
(line string, markerScale int)
engine/pixel/render.go:164
↓ 2 callersMethodMiddlewareBacklog
MiddlewareBacklog counts what has expired by now and is not reclaimed yet: elapsed scopes still holding payload, revoked scopes whose purge is unfinis
proxy/internal/store/middleware.go:258
↓ 2 callersMethodMiddlewareWritable
(ctx context.Context)
proxy/internal/store/middleware.go:250
↓ 2 callersFunctionNewApproxCounter
NewApproxCounter returns the deterministic ~chars/4 estimator.
engine/tokens/tokens.go:64
↓ 2 callersFunctionNewIdentity
NewIdentity builds the middleware routes' identity resolver from config: the shared token (single_operator), the token map, OIDC and, when the TLS lis
proxy/internal/standalone/middleware.go:18
↓ 2 callersFunctionNewPool
NewPool constructs a pool from the hardened configuration.
shared/platform/postgresconfig/postgresconfig.go:153
↓ 2 callersFunctionNewRegistry
NewRegistry returns an empty registry.
engine/compressors/compressor.go:70
↓ 2 callersFunctionNewServer
NewServer builds an *mcp.Server serving this Gateway's compact meta-tools.
mcp/codemode/codemode.go:383
↓ 2 callersMethodNewUsageScanner
(responseHeaders http.Header)
proxy/providers/adapter.go:843
↓ 2 callersFunctionOpenAIChatMessagesToTurns
(messages []any)
engine/pixel/history_openai.go:413
↓ 2 callersFunctionOpenAIResponsesItemsToTurns
(items []any)
engine/pixel/history_openai.go:356
↓ 2 callersFunctionOpenWithBudget
OpenWithBudget opens a persistent store with an explicit retained-payload budget. New writes fail with ErrBudgetExceeded; existing recovery rows are n
engine/ccr/store_sqlite.go:292
↓ 2 callersMethodOriginal
(authority, digest string)
proxy/internal/store/middleware.go:326
↓ 2 callersFunctionParseCodexMCPConfig
ParseCodexMCPConfig extracts `[mcp_servers.<name>]`, `.env`, `.http_headers`, and `.env_http_headers` sections from a Codex `config.toml` file, honori
mcp/codemode/stdio_upstream.go:933
↓ 2 callersFunctionParseHermesMCPConfig
ParseHermesMCPConfig extracts `mcp_servers:` entries from Hermes `config.yaml` without external YAML dependencies, honoring `enabled: false`, `tools.i
mcp/codemode/stdio_upstream.go:639
↓ 2 callersFunctionPoolOf
PoolOf returns the system pool with certs appended.
shared/platform/cabundle/cabundle.go:31
↓ 2 callersFunctionProviderErrorReported
ProviderErrorReported checks only a protocol envelope, never model content or tool arguments. OpenAI/Google use a nonempty error object; Anthropic als
proxy/providers/adapter.go:1322
↓ 2 callersFunctionProviders
Providers is the embedded registry.
proxy/internal/pool/pool.go:85
↓ 2 callersFunctionReadValidated
(home string, port int)
proxy/internal/runstate/runstate.go:217
↓ 2 callersMethodReady
Ready reports whether the middleware store accepts writes. Readiness is unauthenticated, so the answer is kept for a second: a probe flood costs at mo
proxy/internal/middleware/metrics.go:187
↓ 2 callersFunctionRefuseGatewayProductionDefaults
RefuseGatewayProductionDefaults validates only material the public data plane consumes. Control-plane JWT/bootstrap secrets must never be injected int
shared/platform/env/env.go:82
↓ 2 callersMethodReload
(force bool)
proxy/internal/identity/identity.go:471
↓ 2 callersMethodResolve
(provider string, r *http.Request)
proxy/internal/gateway/server.go:71
↓ 2 callersMethodRetrieve
Retrieve returns the exact original bytes for a recovery handle. The CCR store holds two id spaces, and an agent cannot be expected to know which one
engine/engine.go:251
↓ 2 callersMethodRevoked
Revoked reports whether sessions/delete revoked the authority (its tombstones answer "deleted" until their grace ends).
proxy/internal/store/middleware.go:293
↓ 2 callersFunctionRoleSlotSegment
(tag, body, mark string, attr string)
engine/pixel/render.go:238
↓ 2 callersMethodRootCAs
RootCAs returns the provider TLS trust store, or nil for Go's default.
proxy/internal/config/config.go:281
↓ 2 callersFunctionRoutingUpstreams
RoutingUpstreams publishes only credential-free endpoint identities. Keep an unavailable entry as an empty string so it cannot become a same-named def
proxy/internal/runstate/runstate.go:81
↓ 2 callersFunctionRun
Run replays the embedded fixture set behind its graders and returns the report. It runs the engine's configured quality gate.
engine/evals/harness.go:96
↓ 2 callersMethodRunCacheComponentMaintenance
RunCacheComponentMaintenance moves legacy digest lists out of the requests rows and expires lists older than cacheComponentRetention, now and every ca
proxy/internal/store/cache_components.go:35
↓ 2 callersFunctionRunDir
RunDir replays a caller-supplied fixture directory containing manifest.yaml. Manifest file paths are slash-separated, relative, and confined to root e
engine/evals/harness.go:114
↓ 2 callersFunctionSchemaHasStructure
(schema map[string]any)
engine/pixel/schemastrip.go:152
↓ 2 callersFunctionScrubHeaders
ScrubHeaders returns a copy of h with sensitive header values replaced by "[REDACTED]". The original http.Header is not modified. Use this before lo
shared/platform/redact/redact.go:312
↓ 2 callersFunctionSelectionProfile
SelectionProfile extracts the structural selection surface of every tool. Shrink preserves this surface byte-for-byte; a test asserts SelectionProfile
shrink/shrink.go:218
↓ 2 callersMethodSetJSRunnerEnabled
SetJSRunnerEnabled toggles the embedded QuickJS ES2023 sandbox for codemode_execute / codemode_mutate's `code` parameter.
mcp/codemode/codemode.go:230
↓ 2 callersFunctionSlotCopyBody
(body string)
engine/pixel/render.go:230
↓ 2 callersMethodSnapshot
(ctx context.Context, url string, wait time.Duration)
browse/session.go:32
↓ 2 callersFunctionSplitAgentPath
SplitAgentPath splits a /w/<slug>/... attribution path.
proxy/providers/agentpath.go:6
↓ 2 callersMethodStartExperiment
(label, sinkID, fixKind, note string)
proxy/internal/store/learn_experiment.go:87
↓ 2 callersFunctionStartStdioUpstream
StartStdioUpstream spawns the configured MCP server, performs the MCP initialize + notifications/initialized handshake, and returns a live Upstream.
mcp/codemode/stdio_upstream.go:72
↓ 2 callersMethodStopExperiment
(label string)
proxy/internal/store/learn_experiment.go:144
↓ 2 callersFunctionStripInferenceProfileScope
StripInferenceProfileScope returns the model id minus at most one leading inference-profile routing scope. Ids without a scope pass through unchanged.
proxy/providers/bedrock/routing.go:458
↓ 2 callersMethodSwitchExperimentArm
SwitchExperimentArm closes the open arm and opens the other one. Switching to the arm already running is a no-op rather than an error: it keeps a repe
proxy/internal/store/learn_experiment.go:115
↓ 2 callersFunctionToolCatalogNames
ToolCatalogNames extracts tool names from a serialized `tools[]` array or Bedrock `toolConfig` object in wire order (used by prefix_monitor to disting
proxy/providers/toolzone.go:309
↓ 2 callersFunctionUnknown
()
proxy/internal/runstate/runstate.go:74
↓ 2 callersMethodUpstreamID
UpstreamID is the host's own id for the answer it gave (OpenRouter's gen-…, a resp_… or msg_…), read from the start of its body once Serve returns; ""
proxy/internal/translate/translate.go:108
↓ 2 callersFunctionValidateForwardHeaders
ValidateForwardHeaders permits explicit provider-specific headers without letting a mount override routing, message framing, or Caveman credentials. S
proxy/providers/openaicompat/openaicompat.go:473
↓ 2 callersFunctionValidatePayloadProduction
ValidatePayloadProduction verifies the dedicated artifact-payload KEK is configured. This is separate from ValidateProduction because control-plane se
shared/platform/kms/kms.go:282
↓ 2 callersFunctionValidateURLNoResolve
ValidateURLNoResolve is ValidateURL for a destination this process will reach through an outbound HTTP proxy: every check except DNS resolution, which
shared/platform/ssrf/ssrf.go:209
↓ 2 callersFunctionValidateWireDialect
ValidateWireDialect rejects dialect values no named mount can honor. It is exported so the config loader fails at startup rather than silently parsing
proxy/providers/openaicompat/openaicompat.go:418
↓ 2 callersFunctionWithRequestPayloadSHA256
WithRequestPayloadSHA256 is WithRequestPayloadHash for a caller that already holds the body's SHA-256.
proxy/providers/adapter.go:38
↓ 2 callersFunctionWithStorePath
WithStorePath opens (and closes) a recovery store at path. Use a real file path for durable recovery; ":memory:" is ephemeral and only sensible within
shrink/shrink.go:45
↓ 2 callersFunctionWithoutGoogleAPIKeyQuery
WithoutGoogleAPIKeyQuery removes only authentication parameters. Other query bytes and their order remain unchanged, including repeated parameters.
proxy/providers/google_credentials.go:50
↓ 2 callersMethodWrite
(body []byte)
proxy/internal/middleware/acceptance_test.go:678
↓ 2 callersMethodWrite
(p []byte)
proxy/cmd/caveman-proxy/main.go:1312
↓ 2 callersMethodWrite
(p []byte)
mcp/codemode/stdio_upstream.go:431
↓ 2 callersFunctionWriteMetrics
WriteMetrics appends the reload series in Prometheus text format; nothing before Watch starts.
proxy/internal/identity/identity.go:533
↓ 2 callersMethodWriteTrialHTML
(plan TrialPlan, outPath string)
proxy/internal/store/report.go:98
↓ 2 callersMethod__exit__
(self, *_)
packages/middleware/python/caveman_middleware/litellm.py:92
↓ 2 callersMethod__init__
(self, token)
packages/middleware/python/caveman_middleware/autogen.py:114
↓ 2 callersMethod__init__
(self, reason)
packages/middleware/python/caveman_middleware/litellm.py:44
↓ 2 callersMethod_acheck_cancelled
(self)
packages/middleware/python/caveman_middleware/agno.py:277
↓ 2 callersMethod_activation
(self, key, request, kwargs)
packages/middleware/python/caveman_middleware/litellm.py:347
↓ 2 callersFunction_append
``client.with_middleware(middleware)`` that keeps what AnthropicBedrock.copy() drops (anthropic 1.x): the caller's http_client (proxy/TLS settings
packages/middleware/python/caveman_middleware/anthropic.py:44
↓ 2 callersFunction_apply
(request, state, outcome)
packages/middleware/python/caveman_middleware/google.py:356
↓ 2 callersFunction_apply
(messages, result, paths)
packages/middleware/python/caveman_middleware/llama_index.py:274
↓ 2 callersMethod_apply
(messages, state, result)
packages/middleware/python/caveman_middleware/crewai.py:258
↓ 2 callersMethod_apply_documents
(self, documents, outcome, runtime)
packages/middleware/python/caveman_middleware/langchain.py:443
↓ 2 callersMethod_apply_prepared
(self, messages, state, outcome)
packages/middleware/python/caveman_middleware/agno.py:385
↓ 2 callersMethod_aprepare
(self, messages, tools, kwargs)
packages/middleware/python/caveman_middleware/llama_index.py:482
↓ 2 callersMethod_aproject
(self, name, messages, args, kwargs, runtime)
packages/middleware/python/caveman_middleware/agno.py:373
↓ 2 callersFunction_asgi_call
(middleware, body)
packages/middleware/python/tests/test_contracts.py:57
↓ 2 callersMethod_assert_fix_call_error_cleans_up
(self, error)
tests/test_compress_safety.py:473
↓ 2 callersMethod_astream
(self, method, messages, tools, kwargs)
packages/middleware/python/caveman_middleware/llama_index.py:614
↓ 2 callersMethod_async
(self, method, scope, kwargs)
packages/middleware/python/caveman_middleware/litellm.py:428
↓ 2 callersMethod_async_tools
(self, name, args, kwargs)
packages/middleware/python/caveman_middleware/agno.py:282
↓ 2 callersFunction_attr_map
Flatten an OTLP attribute list back into {key: scalar} for assertions.
packages/sdk/python/tests/test_exporter.py:20
↓ 2 callersFunction_budgeted
(deadline: float, closed)
packages/sdk/python/caveman_cloud/middleware/transport.py:147
↓ 2 callersFunction_build_catalog
(entries: list[dict[str, Any]])
packages/sdk/python/tests/test_parity.py:60
↓ 2 callersMethod_build_payload
(self, spans: list[OTelSpan])
packages/sdk/python/caveman_cloud/core.py:1758
↓ 2 callersMethod_call
(self, path: str, body: dict[str, Any] | None, method: str)
packages/sdk/python/caveman_cloud/core.py:948
↓ 2 callersFunction_canonical
(value: Any)
packages/sdk/python/tests/test_assembly.py:55
↓ 2 callersFunction_cave
()
packages/sdk/python/tests/test_context_pack.py:10
↓ 2 callersFunction_check
(runtime, scope)
packages/middleware/python/caveman_middleware/autogen.py:72
↓ 2 callersMethod_check_cancelled
(self)
packages/middleware/python/caveman_middleware/agno.py:272
↓ 2 callersFunction_closed_port
A port nothing is listening on. Connecting to it refuses immediately.
packages/middleware/python/tests/conftest.py:21
↓ 2 callersFunction_contains_key
(value: Any, key: str)
packages/sdk/python/tests/test_assembly.py:64
↓ 2 callersMethod_decode_b64
(value: str)
packages/sdk/python/caveman_cloud/core.py:2416
↓ 2 callersMethod_decode_key
(cls, value: Any)
packages/sdk/python/caveman_cloud/core.py:2423
↓ 2 callersMethod_discover
(self)
packages/sdk/python/caveman_cloud/middleware/runtime.py:317
↓ 2 callersFunction_ed25519_verify
True when ``signature`` is a valid Ed25519 signature of ``message``. Verification only — this function never signs and holds no secret. Any m
packages/sdk/python/caveman_cloud/core.py:1933
↓ 2 callersFunction_ed_add
(pt1: tuple[int, int, int, int], pt2: tuple[int, int, int, int])
packages/sdk/python/caveman_cloud/core.py:1866
↓ 2 callersFunction_ed_encode
(pt: tuple[int, int, int, int])
packages/sdk/python/caveman_cloud/core.py:1912
↓ 2 callersFunction_ed_recover_x
The x coordinate for a compressed point, or None when y is off-curve.
packages/sdk/python/caveman_cloud/core.py:1847
↓ 2 callersFunction_ed_scalarmult
(pt: tuple[int, int, int, int], scalar: int)
packages/sdk/python/caveman_cloud/core.py:1892
← previousnext →2,601–2,700 of 12,853, ranked by callers