gram

module
v0.0.0-...-7b89b57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: AGPL-3.0

README

Speakeasy

Speakeasy Control Plane

Securely scale AI usage across your organization. Built for humans and agents.
Learn more »

Documentation · Running locally · Tech Stack · Contributing · Login · Roadmap

Introduction

Speakeasy Control Plane helps your organization connect, secure, and manage MCPs, Skills, and Assistants. It provides fine-grained permissions, threat detection, and visibility into token use and costs. Tool calls, permission changes, and access events are logged and searchable. The platform is SOC 2 Type II and ISO 27001 certified.

Naming note: The product is now called Speakeasy Control Plane. It was previously called Gram, and this GitHub repository has not yet been renamed (speakeasy-api/gram).

To get started on the hosted platform, sign up or read the getting started guide.

Claude      Claude Code      ChatGPT      Codex      Gemini      Cursor      GitHub Copilot

Observe

Track AI usage across teams and measure impact with either tokens or cost. Deep dive expensive sessions, create budgets and measure tool effectiveness. Built on a foundation of Opentelemetry. Exportable and interactive via platform MCP and a built in assistant.

Secure

Every prompt, response, and agent action is inspected and enforced in real time. Sensitive data is blocked, redacted, or logged before it leaves your environment. Create and enforce flexible policies to prevent prompt injection, log shadow use and detect PII secrets and other sensitive data types.

Connect

A single control layer for connecting your agents to MCPs for your SaaS vendors, APIs, and internal systems, with policy enforcement and granular access control built in. Private networking and tunneling deployed on demand.

Distribute

Centralise distribution of MCPs, Skills, Plugins and Assistants to your team based on enterprise roles. Team, server, and tool level permissions enforced through RBAC and Oauth2.1. Synced to your enterprise IDP (Okta, Azure AD, Google Workspace, etc.).

Support

Running locally

Run ./zero until it succeeds. This script is what you use to run the dashboard and services for local development. It installs dependencies, runs pending database migrations, and starts everything up.

The main dependencies are Mise and Docker. The ./zero script will guide you to install these if they are not found.

Seed your local organization with a realistic working environment — a deployed API, agent sessions, telemetry, risk findings, teammates, and an API key:

mise seed

It talks to the databases directly, so it can run before the services are up, and re-running it resets the seeded data.

To work on several branches at once, each git worktree can run its own full stack on its own ports:

wt switch --create my-feature

See CONTRIBUTING.md for more detail on local development, auth, worktrees, and the CLI.

Contributing

Contributions are welcome! Please open an issue or discussion for questions or suggestions before starting significant work.

See CONTRIBUTING.md for development setup and detailed contribution guidelines.

Tech Stack

Contributors

Speakeasy Control Plane contributors

Built by Speakeasy

Directories

Path Synopsis
ci
cmd/flaky command
Command flaky keeps known-flaky Go tests from failing CI, and keeps the list of them in Linear so they get fixed.
Command flaky keeps known-flaky Go tests from failing CI, and keeps the list of them in Linear so they get fixed.
cmd/shard command
Command shard splits the Go test packages under one or more directories into deterministic, roughly balanced shards so CI can spread a suite over several runners.
Command shard splits the Go test packages under one or more directories into deterministic, roughly balanced shards so CI can spread a suite over several runners.
cli
internal/flags
Package flags defines common flags to keep CLI commands consistent.
Package flags defines common flags to keep CLI commands consistent.
internal/functions
Package functions implements the project-side work behind the `speakeasy functions` commands: scaffolding a project from the embedded templates and driving the project's own functions SDK through Node.js.
Package functions implements the project-side work behind the `speakeasy functions` commands: scaffolding a project from the embedded templates and driving the project's own functions SDK through Node.js.
internal/profile
Package profile provides profile-based configuration management for the speakeasy CLI.
Package profile provides profile-based configuration management for the speakeasy CLI.
Package main is the dev-idp binary entrypoint.
Package main is the dev-idp binary entrypoint.
design
Package design declares the Goa API for the dev-idp management surface.
Package design declares the Goa API for the dev-idp management surface.
internal/bootstrap
Package bootstrap opens dev-idp's SQLite database and applies the embedded schema on every start.
Package bootstrap opens dev-idp's SQLite database and applies the embedded schema on every start.
internal/cimd
Package cimd resolves OAuth Client ID Metadata Document client_ids (draft-ietf-oauth-client-id-metadata-document): a client_id that is itself a URL pointing at a hosted JSON document describing the client, used in place of pre-registration or dynamic client registration.
Package cimd resolves OAuth Client ID Metadata Document client_ids (draft-ietf-oauth-client-id-metadata-document): a client_id that is itself a URL pointing at a hosted JSON document describing the client, used in place of pre-registration or dynamic client registration.
internal/config
Package config parses dev-idp's runtime configuration.
Package config parses dev-idp's runtime configuration.
internal/conv
Package conv has dev-idp's tiny set of *string <-> sql.NullString and related helpers.
Package conv has dev-idp's tiny set of *string <-> sql.NullString and related helpers.
internal/defaultuser
Package defaultuser implements the dev-idp's "default user" bootstrap.
Package defaultuser implements the dev-idp's "default user" bootstrap.
internal/ema
Package ema carries the wire vocabulary shared by the two halves of Enterprise-Managed Authorization: the IdP that mints an Identity Assertion JWT Authorization Grant (ID-JAG) and the resource authorization server that redeems one.
Package ema carries the wire vocabulary shared by the two halves of Enterprise-Managed Authorization: the IdP that mints an Identity Assertion JWT Authorization Grant (ID-JAG) and the resource authorization server that redeems one.
internal/jwks
Package jwks is the read side of RFC 7517: turning a published JWKS document back into verification keys.
Package jwks is the read side of RFC 7517: turning a published JWKS document back into verification keys.
internal/keystore
Package keystore owns the dev-idp's single RSA keypair (idp-design.md §5.3): the only signing key the dev-idp uses, sourced from GRAM_DEVIDP_RSA_PRIVATE_KEY (PEM) at boot or freshly generated when the env var is unset.
Package keystore owns the dev-idp's single RSA keypair (idp-design.md §5.3): the only signing key the dev-idp uses, sourced from GRAM_DEVIDP_RSA_PRIVATE_KEY (PEM) at boot or freshly generated when the env var is unset.
internal/middleware
Package middleware provides the small set of HTTP/Goa middleware dev-idp needs.
Package middleware provides the small set of HTTP/Goa middleware dev-idp needs.
internal/modes/mockworkos
Package mockworkos implements the local backend's WorkOS emulator — a WorkOS-shaped REST surface backed by the dev-idp's shared SQLite store.
Package mockworkos implements the local backend's WorkOS emulator — a WorkOS-shaped REST surface backed by the dev-idp's shared SQLite store.
internal/modes/oauth21
Package oauth21 implements the dev-idp's OAuth 2.1 authorization server: PKCE (S256), stateless DCR, and OIDC compliance.
Package oauth21 implements the dev-idp's OAuth 2.1 authorization server: PKCE (S256), stateless DCR, and OIDC compliance.
internal/modes/resourceas
Package resourceas serves the redeeming half of Enterprise-Managed Authorization: the resource authorization servers that accept an Identity Assertion JWT Authorization Grant (ID-JAG) under the RFC 7523 jwt-bearer grant and hand back an access token for the MCP server behind them.
Package resourceas serves the redeeming half of Enterprise-Managed Authorization: the resource authorization servers that accept an Identity Assertion JWT Authorization Grant (ID-JAG) under the RFC 7523 jwt-bearer grant and hand back an access token for the MCP server behind them.
internal/modes/workos
Package workos serves the dev-idp's WorkOS REST surface at /workos.
Package workos serves the dev-idp's WorkOS REST surface at /workos.
internal/oops
Package oops is dev-idp's lightweight error helper.
Package oops is dev-idp's lightweight error helper.
internal/service
Package service contains the dev-idp's Goa service implementations (organizations, users, memberships, devIdp).
Package service contains the dev-idp's Goa service implementations (organizations, users, memberships, devIdp).
internal/workos
Package workos is dev-idp's tiny WorkOS client.
Package workos is dev-idp's tiny WorkOS client.
pkg/devidentity
Package devidentity holds the identity constants the dev-idp hands out for its default organization and the rule that derives a developer's user id from their git committer email.
Package devidentity holds the identity constants the dev-idp hands out for its default organization and the rule that derives a developer's user id from their git committer email.
pkg/devidptest
Package devidptest spins up a real dev-idp HTTP server inside a test.
Package devidptest spins up a real dev-idp HTTP server inside a test.
pkg/testidp
Package testidp serves an in-process mock identity provider for tests.
Package testidp serves an in-process mock identity provider for tests.
functions module
cmd/runner command
internal/isolation
Package isolation holds the process-level settings that keep the function runner's own state separate from the user code it starts.
Package isolation holds the process-level settings that keep the function runner's own state separate from the user code it starts.
glint module
hooks
cmd/speakeasy-hooks command
Command speakeasy-hooks is the single Speakeasy hooks binary.
Command speakeasy-hooks is the single Speakeasy hooks binary.
relay
Package relay wires the agenthooks runtime to the Speakeasy hooks backend.
Package relay wires the agenthooks runtime to the Speakeasy hooks backend.
sdk
wire
Package wire declares the device-telemetry header names the speakeasy-hooks binary stamps on its requests and the server lifts onto hook endpoint spans.
Package wire declares the device-telemetry header names the speakeasy-hooks binary stamps on its requests and the server lifts onto hook endpoint spans.
gen
internal/batching
Package batching adapts Google's bundler to Pub/Sub settlement and shutdown.
Package batching adapts Google's bundler to Pub/Sub settlement and shutdown.
internal/diagram
Package diagram generates a single mermaid diagram (plus text tables) that ties Speakeasy's proto-declared Pub/Sub topology to the Go and Python call sites that publish to topics and consume subscriptions.
Package diagram generates a single mermaid diagram (plus text tables) that ties Speakeasy's proto-declared Pub/Sub topology to the Go and Python call sites that publish to topics and consume subscriptions.
internal/storagefixture
Code generated by infra gen-storage.
Code generated by infra gen-storage.
internal/storagefixture/cmd command
A self-contained installation example using an in-process Pub/Sub test broker.
A self-contained installation example using an in-process Pub/Sub test broker.
pkg/storage
Package storage runs generated analytical Pub/Sub storage subscriptions.
Package storage runs generated analytical Pub/Sub storage subscriptions.
pkg/storagebindings
Code generated by infra gen-storage.
Code generated by infra gen-storage.
pkg/topics
Package topics provides statically typed publishers for topics named at runtime.
Package topics provides statically typed publishers for topics named at runtime.
internal
jwk
Package jwk builds public signing keys for publication.
Package jwk builds public signing keys for publication.
main command
Package plog provides pretty-printing for JSON lines logs with colorized output.
Package plog provides pretty-printing for JSON lines logs with colorized output.
cmd/plog command
Command plog pretty-prints JSON lines logs with colorized output.
Command plog pretty-prints JSON lines logs with colorized output.
cmd/authzcases command
Command authzcases writes the cases the dashboard's tests replay against its own matcher and tool classifier, answered by the server.
Command authzcases writes the cases the dashboard's tests replay against its own matcher and tool classifier, answered by the server.
cmd/authzgen command
Command authzgen writes the files generated from the authorization model.
Command authzgen writes the files generated from the authorization model.
cmd/celwasm command
cmd/dev-mcp command
Command dev-mcp is a local-development MCP server that exposes assistant management operations (CRUD, running turns, triggers) over stdio.
Command dev-mcp is a local-development MCP server that exposes assistant management operations (CRUD, running turns, triggers) over stdio.
cmd/directory-roles command
Command directory-roles imports inventoried WorkOS group rules or reports the effect of retiring their direct role assignments.
Command directory-roles imports inventoried WorkOS group rules or reports the effect of retiring their direct role assignments.
cmd/export-hook-plugin command
Command export-hook-plugin renders the dogfood hook plugins (plugin-claude, plugin-cursor) from the same generators that publish customer plugins.
Command export-hook-plugin renders the dogfood hook plugins (plugin-claude, plugin-cursor) from the same generators that publish customer plugins.
cmd/gen-webhooks command
Command gen-webhooks generates both catalog artifacts for the outbox events package:
Command gen-webhooks generates both catalog artifacts for the outbox events package:
cmd/mock-mcp command
Command mock-mcp is a local-only MCP server over Streamable HTTP that lists the fictional task tracker in mocktasks.Tools.
Command mock-mcp is a local-only MCP server over Streamable HTTP that lists the fictional task tracker in mocktasks.Tools.
cmd/pin-hooks-release command
Command pin-hooks-release rewrites the generated hooks release pins after a speakeasy-hooks release is published.
Command pin-hooks-release rewrites the generated hooks release pins after a speakeasy-hooks release is published.
cmd/risk-pi-report command
Command risk-pi-report scores the prompt-injection detector this checkout ships on the labelled fixtures.
Command risk-pi-report scores the prompt-injection detector this checkout ships on the labelled fixtures.
cmd/riskjudgebench command
Command riskjudgebench benchmarks OpenRouter models for prompt-based ("LLM-judge") risk policy evaluation in the promptpolicy OpenRouter evaluator.
Command riskjudgebench benchmarks OpenRouter models for prompt-based ("LLM-judge") risk policy evaluation in the promptpolicy OpenRouter evaluator.
cmd/sigint-bench command
sigint-bench measures the shared canonical compiler on synthetic, replaceable observations.
sigint-bench measures the shared canonical compiler on synthetic, replaceable observations.
cmd/skillefficacybench command
Command skillefficacybench measures the production skill-efficacy judge against a synthetic labeled corpus and exits nonzero below its beta gate.
Command skillefficacybench measures the production skill-efficacy judge against a synthetic labeled corpus and exits nonzero below its beta gate.
cmd/skillsuggestbench command
Command skillsuggestbench measures the production skill-suggestion generator against a labeled corpus and exits nonzero below its gates.
Command skillsuggestbench measures the production skill-suggestion generator against a labeled corpus and exits nonzero below its gates.
cmd/sync-loops-email-templates command
Command sync-loops-email-templates is a compatibility launcher for release automation that has not yet switched to the Bash reconciler directly.
Command sync-loops-email-templates is a compatibility launcher for release automation that has not yet switched to the Bash reconciler directly.
cmd/tools/enforceload command
Command enforceload measures the enforcement reply path against local Redis and, optionally, the local Pub/Sub emulator.
Command enforceload measures the enforcement reply path against local Redis and, optionally, the local Pub/Sub emulator.
cmd/tools/enforceproto command
Command enforceproto exercises the enforcement request-reply path against the local Pub/Sub emulator and Redis.
Command enforceproto exercises the enforcement request-reply path against the local Pub/Sub emulator and Redis.
cmd/tools/migrations command
Command migrations runs one explicitly selected offline migration.
Command migrations runs one explicitly selected offline migration.
cmd/tools/migrations/assistantrolegrants
Package assistantrolegrants stores the canonical assistant grants for built-in Admin and Member roles seeded before the assistant scopes existed; see ASSISTANT_ROLE_GRANTS_BACKFILL.md.
Package assistantrolegrants stores the canonical assistant grants for built-in Admin and Member roles seeded before the assistant scopes existed; see ASSISTANT_ROLE_GRANTS_BACKFILL.md.
cmd/tools/migrations/pipeline
Package pipeline is a small, generic Source -> Transform -> Sink harness for moving records between arbitrary stores.
Package pipeline is a small, generic Source -> Transform -> Sink harness for moving records between arbitrary stores.
cmd/tools/migrations/remotesessionsorganization
Package remotesessionsorganization sets remote_sessions.organization_id on rows written before every writer set it; see REMOTE_SESSIONS_ORGANIZATION_BACKFILL.md.
Package remotesessionsorganization sets remote_sessions.organization_id on rows written before every writer set it; see REMOTE_SESSIONS_ORGANIZATION_BACKFILL.md.
cmd/tools/migrations/riskfindings
Package riskfindings implements the Postgres source, transform, and ClickHouse sink that back-fill historical risk_results rows into the ClickHouse risk_findings event log.
Package riskfindings implements the Postgres source, transform, and ClickHouse sink that back-fill historical risk_results rows into the ClickHouse risk_findings event log.
cmd/tools/migrations/riskfindingscols
Package riskfindingscols implements the Postgres source, transform, and ClickHouse sink that backfill the message_created_at and assistant_id columns onto EXISTING ClickHouse risk_findings rows.
Package riskfindingscols implements the Postgres source, transform, and ClickHouse sink that backfill the message_created_at and assistant_id columns onto EXISTING ClickHouse risk_findings rows.
cmd/tools/sweep_builtin_presets command
Command sweep_builtin_presets is an offline operator tool that re-evaluates stored risk findings against current policy filters.
Command sweep_builtin_presets is an offline operator tool that re-evaluates stored risk findings against current policy filters.
cmd/tools/sweep_false_positives command
Command sweep_false_positives is an offline operator tool that re-evaluates stored Presidio risk findings against the false-positive catalogs in the internal/risk/presidiofp package and marks the noise (reserved IPs, placeholder emails, retired recognizers, NHS numbers with no health-care context, ...) as false positives so the dashboard hides them.
Command sweep_false_positives is an offline operator tool that re-evaluates stored Presidio risk findings against the false-positive catalogs in the internal/risk/presidiofp package and marks the noise (reserved IPs, placeholder emails, retired recognizers, NHS numbers with no health-care context, ...) as false positives so the dashboard hides them.
design/agents
Package agents declares the human-only first-class agent management API.
Package agents declares the human-only first-class agent management API.
design/killswitches
Package killswitches declares the customer-facing MCP Killswitch API.
Package killswitches declares the customer-facing MCP Killswitch API.
design/platformadmin/assets
Package assets declares the adminAssets Goa service: the platform-admin (Speakeasy-only) surface for uploading platform-tier assets (project_id IS NULL AND organization_id IS NULL) shared across every organization.
Package assets declares the adminAssets Goa service: the platform-admin (Speakeasy-only) surface for uploading platform-tier assets (project_id IS NULL AND organization_id IS NULL) shared across every organization.
design/platformadmin/chatanalysis
Package chatanalysis declares the adminChatAnalysis Goa service: the platform-admin (Speakeasy-only) surface for switching an organization's chat session analysis judges on and off.
Package chatanalysis declares the adminChatAnalysis Goa service: the platform-admin (Speakeasy-only) surface for switching an organization's chat session analysis judges on and off.
design/platformadmin/killswitches
Package killswitches declares the main-server platform break-glass transport for the generic killswitch lifecycle.
Package killswitches declares the main-server platform break-glass transport for the generic killswitch lifecycle.
design/platformadmin/openrouterkeys
Package openrouterkeys declares the adminOpenRouterKeys Goa service: the platform-admin (Speakeasy-only) surface over openrouter_api_keys, the per-(organization, key type) platform OpenRouter keys that pay for completions.
Package openrouterkeys declares the adminOpenRouterKeys Goa service: the platform-admin (Speakeasy-only) surface over openrouter_api_keys, the per-(organization, key type) platform OpenRouter keys that pay for completions.
design/platformadmin/remotesessions
Package remotesessions declares the adminRemoteSessions Goa service: the platform-admin (Speakeasy-only) surface for curating "global" remote_session_issuer / remote_session_client records (project_id IS NULL AND organization_id IS NULL) shared across every organization.
Package remotesessions declares the adminRemoteSessions Goa service: the platform-admin (Speakeasy-only) surface for curating "global" remote_session_issuer / remote_session_client records (project_id IS NULL AND organization_id IS NULL) shared across every organization.
design/registryclient
Package registryclient preserves encoded discovery path segment boundaries.
Package registryclient preserves encoded discovery path segment boundaries.
design/workloadpolicy
Package workloadpolicy designs the management API for an organization's workload identity trust policy: which external issuers it trusts, which subjects those issuers may present, and which agent each admitted workload inherits its policy from.
Package workloadpolicy designs the management API for an organization's workload identity trust policy: which external issuers it trusts, which subjects those issuers may present, and which agent each admitted workload inherits its policy from.
internal/access/slackrequests
Package slackrequests sends access requests to organization administrators as Slack DMs and takes their decisions back from Slack.
Package slackrequests sends access requests to organization administrators as Slack DMs and takes their decisions back from Slack.
internal/agent/aitargets
Package aitargets is the Shadow AI scan target catalog: the AI tools the device agent probes for and the on-device signatures it matches.
Package aitargets is the Shadow AI scan target catalog: the AI tools the device agent probes for and the on-device signatures it matches.
internal/agentgateway
Package agentgateway names the synthetic gateway an agent's key is served through.
Package agentgateway names the synthetic gateway an agent's key is served through.
internal/agentsurface
Package agentsurface folds hook_source values into the consuming surfaces coverage reporting is organized around.
Package agentsurface folds hook_source values into the consuming surfaces coverage reporting is organized around.
internal/aiproviderkeys
Package aiproviderkeys seals and opens the AI provider and model keys Speakeasy holds: AI integration API keys and Anthropic inference webhook signing secrets, customer model provider (BYOK) keys, and provisioned OpenRouter keys.
Package aiproviderkeys seals and opens the AI provider and model keys Speakeasy holds: AI integration API keys and Anthropic inference webhook signing secrets, customer model provider (BYOK) keys, and provisioned OpenRouter keys.
internal/aivendors
Package aivendors owns AI product identities and immutable database catalog snapshots shared by CIMD admission, device scanning, and gateway attribution.
Package aivendors owns AI product identities and immutable database catalog snapshots shared by CIMD admission, device scanning, and gateway attribution.
internal/aivendors/aivendorstest
Package aivendorstest provides AI client catalog fixtures for tests.
Package aivendorstest provides AI client catalog fixtures for tests.
internal/aivendors/catalogseed
Package catalogseed applies the frozen AI client bootstrap without replacing staff-managed catalog data.
Package catalogseed applies the frozen AI client bootstrap without replacing staff-managed catalog data.
internal/anthropicinference
Package anthropicinference receives Anthropic Enterprise inference hooks.
Package anthropicinference receives Anthropic Enterprise inference hooks.
internal/assistant_platform_mcp_adapter
Package assistant_platform_mcp_adapter serves the Platform MCP capability catalogue to a project's managed assistant.
Package assistant_platform_mcp_adapter serves the Platform MCP capability catalogue to a project's managed assistant.
internal/assistantidentity
Package assistantidentity connects assistants to the ordinary agent and workload identity model.
Package assistantidentity connects assistants to the ordinary agent and workload identity model.
internal/assistants/kitacp
Package kitacp implements Kit's ACP v2 HTTP/SSE transport without extensions.
Package kitacp implements Kit's ACP v2 HTTP/SSE transport without extensions.
internal/audit/securityevent
Package securityevent records security activity that is not a configuration decision in security_audit_logs, and reads it back.
Package securityevent records security activity that is not a configuration decision in security_audit_logs, and reads it back.
internal/auth/deviceagenttoken
Package deviceagenttoken issues and authenticates the bearer tokens headless devices use on the device-agent API.
Package deviceagenttoken issues and authenticates the bearer tokens headless devices use on the device-agent API.
internal/auth/principalcredential
Package principalcredential issues and authenticates short-lived bearer tokens for an agent or a workload principal.
Package principalcredential issues and authenticates short-lived bearer tokens for an agent or a workload principal.
internal/auth/speakeasyclient
Package speakeasyclient is a thin HTTP client for the Speakeasy auth provider's IDP wire endpoints (`/v1/speakeasy_provider/{exchange,validate}`) plus the post-IDP user-bootstrap side effects every Speakeasy-authenticated caller should run.
Package speakeasyclient is a thin HTTP client for the Speakeasy auth provider's IDP wire endpoints (`/v1/speakeasy_provider/{exchange,validate}`) plus the post-IDP user-bootstrap side effects every Speakeasy-authenticated caller should run.
internal/authclients
Package authclients manages the typed auth clients Speakeasy uses to authenticate to upstream MCP servers and the servers that offer them.
Package authclients manages the typed auth clients Speakeasy uses to authenticate to upstream MCP servers and the servers that offer them.
internal/authenforcement
Package authenforcement reads which organizations have upstream auth enforcement enabled: their direct proxied servers are served by the typed auth client resolver, and using the chosen auth client requires mcp:auth.
Package authenforcement reads which organizations have upstream auth enforcement enabled: their direct proxied servers are served by the typed auth client resolver, and using the chosen auth client requires mcp:auth.
internal/authz/authzcases
Package authzcases writes the cases the dashboard's tests replay against its own matcher: small sets of grants, and the server's answer for every check the dashboard can make against them.
Package authzcases writes the cases the dashboard's tests replay against its own matcher: small sets of grants, and the server's answer for every check the dashboard can make against them.
internal/authz/authzgen
Package authzgen renders the files generated from the authorization model, registry.Definitions.
Package authzgen renders the files generated from the authorization model, registry.Definitions.
internal/authz/internal/registry
authzgen copies everything below the package line into package authz, so the model and the evaluator share these names without importing each other.
authzgen copies everything below the package line into package authz, so the model and the evaluator share these names without importing each other.
internal/authz/repo
Package repo writes authz challenge rows to ClickHouse.
Package repo writes authz challenge rows to ClickHouse.
internal/background/activities/publish_outbox
Package publish_outbox drains the general-purpose publish outbox onto Pub/Sub.
Package publish_outbox drains the general-purpose publish outbox onto Pub/Sub.
internal/background/activities/risk_analysis/presidiotest
Package presidiotest provides an in-process mock of the Presidio Analyzer HTTP API.
Package presidiotest provides an in-process mock of the Presidio Analyzer HTTP API.
internal/background/activities/risk_exclusion
Package risk_exclusion contains the Temporal activity that reconciles a risk exclusion against already-stored findings.
Package risk_exclusion contains the Temporal activity that reconciles a risk exclusion against already-stored findings.
internal/background/activities/spend_rules
Package spend_rules holds the background activities that evaluate spend control rules: per-organization budget evaluation against ClickHouse spend, warning/breach event writes, and spend gate cache publication for the hooks gate.
Package spend_rules holds the background activities that evaluate spend control rules: per-organization budget evaluation against ClickHouse spend, warning/breach event writes, and spend gate cache publication for the hooks gate.
internal/catalogauth
Package catalogauth projects public OAuth discovery into bounded catalogue capabilities.
Package catalogauth projects public OAuth discovery into bounded catalogue capabilities.
internal/catalogpromotion
Package catalogpromotion promotes reviewed, healthy remote MCP sources into the catalogue.
Package catalogpromotion promotes reviewed, healthy remote MCP sources into the catalogue.
internal/celeval
Package celeval provides environment-bound CEL program caching and evaluation.
Package celeval provides environment-bound CEL program caching and evaluation.
internal/channels
Package channels implements project-scoped coordination between leased instances of existing Control Plane identities and dashboard users.
Package channels implements project-scoped coordination between leased instances of existing Control Plane identities and dashboard users.
internal/channels/authn
Package authn owns the Channels authorization server and its credential store.
Package authn owns the Channels authorization server and its credential store.
internal/chat/analysis
Package analysis runs a roster of LLM judges over finished chat sessions.
Package analysis runs a roster of LLM judges over finished chat sessions.
internal/chat/chattitle
Package chattitle holds the chat title rules that packages below chat in the import graph (telemetry, hooks) apply as well, so they cannot live in package chat itself.
Package chattitle holds the chat title rules that packages below chat in the import graph (telemetry, hooks) apply as well, so they cannot live in package chat itself.
internal/chat/summaryjudge
Package summaryjudge writes the masked chat summary that team memory and the dashboard share, as a scoreless judge on the chat analysis pipeline.
Package summaryjudge writes the masked chat summary that team memory and the dashboard share, as a scoreless judge on the chat analysis pipeline.
internal/chat/transcriptcrypto
Package transcriptcrypto provides the versioned, row-bound message payload codec used by opt-in encrypted shadow storage.
Package transcriptcrypto provides the versioned, row-bound message payload codec used by opt-in encrypted shadow storage.
internal/chat/transcriptstore
Package transcriptstore maintains encrypted shadow copies.
Package transcriptstore maintains encrypted shadow copies.
internal/chatanalysis
Package chatanalysis implements the adminChatAnalysis service: the platform-admin surface over chat_analysis_settings, the per-(organization, judge) switches and daily budgets the chat analysis pipeline spends against (server/internal/chat/analysis).
Package chatanalysis implements the adminChatAnalysis service: the platform-admin surface over chat_analysis_settings, the per-(organization, judge) switches and daily budgets the chat analysis pipeline spends against (server/internal/chat/analysis).
internal/chatredact
Package chatredact masks secrets in captured chat content before it leaves the server: in tool search results, recall digests and generated summaries.
Package chatredact masks secrets in captured chat content before it leaves the server: in tool search results, recall digests and generated summaries.
internal/classifier
Package classifier defines provider-independent batch classification contracts.
Package classifier defines provider-independent batch classification contracts.
internal/classifier/classifiertest
Package classifiertest provides test doubles for classifier consumers.
Package classifiertest provides test doubles for classifier consumers.
internal/classifier/jev
Package jev implements batch classification with Jev through OpenRouter's System One API.
Package jev implements batch classification with Jev through OpenRouter's System One API.
internal/claudetag
Package claudetag extracts provenance from Claude Tag delivery envelopes.
Package claudetag extracts provenance from Claude Tag delivery envelopes.
internal/cliauth
Package cliauth implements the cliAuth Goa service: the device agent's interactive enrollment via a PKCE one-time-code exchange (DNO-388).
Package cliauth implements the cliAuth Goa service: the device agent's interactive enrollment via a PKCE one-time-code exchange (DNO-388).
internal/codemode
Package codemode defines the bounded host API available to gateway Python.
Package codemode defines the bounded host API available to gateway Python.
internal/consentpage
Package consentpage holds the stylesheet, brand fonts and Speakeasy wordmark shared by the server-rendered authorization pages: the MCP consent page, the Platform MCP OAuth page and the shared authorization error page, and by the organization gateway landing page.
Package consentpage holds the stylesheet, brand fonts and Speakeasy wordmark shared by the server-rendered authorization pages: the MCP consent page, the Platform MCP OAuth page and the shared authorization error page, and by the organization gateway landing page.
internal/dataclassification
Package dataclassification defines how Speakeasy documents what every stored database column contains.
Package dataclassification defines how Speakeasy documents what every stored database column contains.
internal/demoseed
Package demoseed provisions the shared demo organization (constants.DemoOrganizationID).
Package demoseed provisions the shared demo organization (constants.DemoOrganizationID).
internal/demoseed/demoseedtest
Package demoseedtest holds the generic database snapshot/exec helpers behind TestDemoSeedSafety.
Package demoseedtest holds the generic database snapshot/exec helpers behind TestDemoSeedSafety.
internal/demoseed/fixture
Package fixture is the demo seed's MCP fixture: a self-contained OAuth and MCP server with fake data, which every Speakeasy server hosts under fixtureauth.PathPrefix (/rpc/demoseed).
Package fixture is the demo seed's MCP fixture: a self-contained OAuth and MCP server with fake data, which every Speakeasy server hosts under fixtureauth.PathPrefix (/rpc/demoseed).
internal/demoseed/fixture/fixtureauth
Package fixtureauth holds the credentials, paths and token format of the demo seed's MCP fixture (internal/demoseed/fixture), which every Speakeasy server hosts under PathPrefix.
Package fixtureauth holds the credentials, paths and token format of the demo seed's MCP fixture (internal/demoseed/fixture), which every Speakeasy server hosts under PathPrefix.
internal/demoseed/mocktasks
Package mocktasks is the tool catalog of the local mock MCP server (server/cmd/mock-mcp), a fictional task tracker.
Package mocktasks is the tool catalog of the local mock MCP server (server/cmd/mock-mcp), a fictional task tracker.
internal/deviceagentversions
Package deviceagentversions records which speakeasyd version each device agent runs, one Redis hash per organization per UTC day, so staff can see the version mix across organizations without a schema change.
Package deviceagentversions records which speakeasyd version each device agent runs, one Redis hash per organization per UTC day, so staff can see the version mix across organizations without a schema change.
internal/deviceidentity
Package deviceidentity normalizes the hardware identity a Speakeasy device agent reports on its requests through the Gram-Device-* headers: the machine's serial number, its hostname, and what kind of machine it is.
Package deviceidentity normalizes the hardware identity a Speakeasy device agent reports on its requests through the Gram-Device-* headers: the machine's serial number, its hostname, and what kind of machine it is.
internal/deviceintegrations
Package deviceintegrations implements the management API for org-level device integrations: connecting MDM inventory sources and compliance evidence sinks, managing their sync schedules, and reading agent coverage across the synced fleet.
Package deviceintegrations implements the management API for org-level device integrations: connecting MDM inventory sources and compliance evidence sinks, managing their sync schedules, and reading agent coverage across the synced fleet.
internal/deviceintegrations/providers
Package providers defines the vendor abstraction for device integrations: a registry of descriptors, capability interfaces for inventory sources (MDMs pulled for the managed-device fleet) and evidence sinks (compliance platforms pushed agent-coverage evidence), and the credential/settings specs that drive dashboard form rendering and payload validation.
Package providers defines the vendor abstraction for device integrations: a registry of descriptors, capability interfaces for inventory sources (MDMs pulled for the managed-device fleet) and evidence sinks (compliance platforms pushed agent-coverage evidence), and the credential/settings specs that drive dashboard form rendering and payload validation.
internal/deviceintegrations/providers/drata
Package drata implements the Drata evidence-sink provider: it pushes per-device agent-coverage evidence into a customer's Drata workspace via the Custom Connections API, so "AI usage on endpoints is monitored" is a continuously-tested control instead of quarterly screenshots.
Package drata implements the Drata evidence-sink provider: it pushes per-device agent-coverage evidence into a customer's Drata workspace via the Custom Connections API, so "AI usage on endpoints is monitored" is a continuously-tested control instead of quarterly screenshots.
internal/deviceintegrations/providers/intune
Package intune implements the Microsoft Intune inventory-source provider: it pulls the managed-device fleet from a customer's Intune tenant via Microsoft Graph so Speakeasy can compute agent coverage.
Package intune implements the Microsoft Intune inventory-source provider: it pulls the managed-device fleet from a customer's Intune tenant via Microsoft Graph so Speakeasy can compute agent coverage.
internal/deviceintegrations/providers/iru
Package iru implements the Iru (formerly Kandji) inventory-source provider: it pulls the managed-device fleet from an Iru tenant so Speakeasy can compute agent coverage.
Package iru implements the Iru (formerly Kandji) inventory-source provider: it pulls the managed-device fleet from an Iru tenant so Speakeasy can compute agent coverage.
internal/deviceintegrations/providers/jamf
Package jamf implements the Jamf Pro inventory-source provider: it pulls the managed-device fleet from a Jamf Pro (Cloud) tenant so Speakeasy can compute agent coverage.
Package jamf implements the Jamf Pro inventory-source provider: it pulls the managed-device fleet from a Jamf Pro (Cloud) tenant so Speakeasy can compute agent coverage.
internal/deviceintegrations/providers/vanta
Package vanta implements the Vanta evidence-sink provider: it pushes per-device agent-coverage evidence into a customer's Vanta tenant via a private integration, so agent coverage becomes continuously-tested compliance evidence (a Custom Test over the pushed properties fails when a device's assigned user has no live agent).
Package vanta implements the Vanta evidence-sink provider: it pushes per-device agent-coverage evidence into a customer's Vanta tenant via a private integration, so agent coverage becomes continuously-tested compliance evidence (a Custom Test over the pushed properties fails when a device's assigned user has no live agent).
internal/directoryreview
Package directoryreview raises and settles the decisions directory changes need from an organization's admins: a new group with no mapping, a new value of an attribute key that already has mappings, and a mapped group or attribute value that has gone.
Package directoryreview raises and settles the decisions directory changes need from an organization's admins: a new group with no mapping, a new value of an attribute key that already has mappings, and a mapped group or attribute value that has gone.
internal/dns
Package dns provides a Resolver interface for DNS lookups whose method signatures match net.Resolver.
Package dns provides a Resolver interface for DNS lookups whose method signatures match net.Resolver.
internal/dpop
Package dpop implements the client side of RFC 9449, OAuth 2.0 Demonstrating Proof of Possession: an ephemeral ES256 proof key, the proof JWT builder (§4), nonce handling for authorization and resource servers (§8, §9), and the header, claim, error, and token-type identifiers the RFC registers (§12).
Package dpop implements the client side of RFC 9449, OAuth 2.0 Demonstrating Proof of Possession: an ephemeral ES256 proof key, the proof JWT builder (§4), nonce handling for authorization and resource servers (§8, §9), and the header, claim, error, and token-type identifiers the RFC registers (§12).
internal/email
Package email is the application-facing facade for sending transactional emails.
Package email is the application-facing facade for sending transactional emails.
internal/email/loops
Package loops validates the repository-owned LMX transactional email manifest.
Package loops validates the repository-owned LMX transactional email manifest.
internal/emaildomain
Package emaildomain classifies the domain of an email address by the kind of mail provider behind it.
Package emaildomain classifies the domain of an email address by the kind of mail provider behind it.
internal/functions/runnerkeys
Package runnerkeys mints, stores and opens function runner keys: the per-function secret a Speakeasy Functions runner and the server use to authenticate each other.
Package runnerkeys mints, stores and opens function runner keys: the per-function secret a Speakeasy Functions runner and the server use to authenticate each other.
internal/functionstest
Package functionstest provides helpers for constructing functions.Orchestrator instances in tests.
Package functionstest provides helpers for constructing functions.Orchestrator instances in tests.
internal/growthsignals
Package growthsignals turns notable moments in Speakeasy — projects created, MCP servers deployed, members joining, security policies written — into a single PostHog event that internal Slack destinations render as ops signal.
Package growthsignals turns notable moments in Speakeasy — projects created, MCP servers deployed, members joining, security policies written — into a single PostHog event that internal Slack destinations render as ops signal.
internal/guardian
Package guardian provides HTTP client construction with network security policy enforcement, OpenTelemetry instrumentation, resilience (rate limiting and circuit breaking), and optional retry logic.
Package guardian provides HTTP client construction with network security policy enforcement, OpenTelemetry instrumentation, resilience (rate limiting and circuit breaking), and optional retry logic.
internal/hiddenmcpservers
Package hiddenmcpservers stores the MCP servers each user hid.
Package hiddenmcpservers stores the MCP servers each user hid.
internal/hookevents/vocab
Package vocab is the canonical hook wire vocabulary.
Package vocab is the canonical hook wire vocabulary.
internal/hooksrollout
Package hooksrollout stores and resolves the hooks version rollout pins that Speakeasy staff set from the admin dashboard.
Package hooksrollout stores and resolves the hooks version rollout pins that Speakeasy staff set from the admin dashboard.
internal/hookversions
Package hookversions classifies a hooks install against the supported version range.
Package hookversions classifies a hooks install against the supported version range.
internal/hostedmcp
Package hostedmcp writes a toolset's canonical wrapper (mcp_servers.id = toolset id), which owns its hosting state.
Package hostedmcp writes a toolset's canonical wrapper (mcp_servers.id = toolset id), which owns its hosting state.
internal/hostedmcp/hostingstate
Package hostingstate derives a toolset's MCP hosting state from its canonical wrapper, the server row holding its id; a toolset without one is not hosted.
Package hostingstate derives a toolset's MCP hosting state from its canonical wrapper, the server row holding its id; a toolset without one is not hosted.
internal/httpcache
Package httpcache holds shared HTTP caching semantics, in both directions.
Package httpcache holds shared HTTP caching semantics, in both directions.
internal/httpstream
Package httpstream holds what every long-lived HTTP response in Speakeasy shares: the reasons such a stream can end, the histogram that records them, and the SSE fields written when the server ends a stream on purpose.
Package httpstream holds what every long-lived HTTP response in Speakeasy shares: the reasons such a stream can end, the histogram that records them, and the SSE fields written when the server ends a stream on purpose.
internal/identityproviderconnections
Package identityproviderconnections provisions, rotates, and revokes the managed signing credential behind an identity provider connection.
Package identityproviderconnections provisions, rotates, and revokes the managed signing credential behind an identity provider connection.
internal/identityproviderconnections/provisiontest
Package provisiontest builds the managed rows an identity provider connection provisions, for tests in the packages whose organization-tier mutations must refuse them.
Package provisiontest builds the managed rows an identity provider connection provisions, for tests in the packages whose organization-tier mutations must refuse them.
internal/idpmanagedresources
Package idpmanagedresources guards resources owned by identity provider connections against direct modification through organization-level APIs.
Package idpmanagedresources guards resources owned by identity provider connections against direct modification through organization-level APIs.
internal/intentpolicies
Package intentpolicies implements the staff-only intentPolicies service: retroactive intent-guardrail analysis of stored sessions and transcript upload.
Package intentpolicies implements the staff-only intentPolicies service: retroactive intent-guardrail analysis of stored sessions and transcript upload.
internal/intentpolicy
Package intentpolicy assesses recorded tool calls against a fixed intent guardrail.
Package intentpolicy assesses recorded tool calls against a fixed intent guardrail.
internal/internalsessionissuers
Package internalsessionissuers runs the issuers Speakeasy operates for its own signed-in users: an organization's enterprise-managed authorization issuer, its discovery documents, its signer and its management API.
Package internalsessionissuers runs the issuers Speakeasy operates for its own signed-in users: an organization's enterprise-managed authorization issuer, its discovery documents, its signer and its management API.
internal/killswitches
Package killswitches defines dependency-light contracts for kill-switch registration, identity adaptation, evaluation results, and mutation hashing.
Package killswitches defines dependency-light contracts for kill-switch registration, identity adaptation, evaluation results, and mutation hashing.
internal/killswitches/mcptoolexecution
Package mcptoolexecution registers the M2 `mcp_tool_execution` kill-switch contracts: the fail-closed definition, the authoritative concrete-user principal adapter, the canonical organization-owned `mcp_server` resource adapter, and the coverage inventory for the hosted and private-proxy MCP tools/call surfaces.
Package mcptoolexecution registers the M2 `mcp_tool_execution` kill-switch contracts: the fail-closed definition, the authoritative concrete-user principal adapter, the canonical organization-owned `mcp_server` resource adapter, and the coverage inventory for the hosted and private-proxy MCP tools/call surfaces.
internal/lake
Package lake provides local analytical object storage.
Package lake provides local analytical object storage.
internal/localaccounts
Package localaccounts provides fail-closed tools for the selected local account.
Package localaccounts provides fail-closed tools for the selected local account.
internal/management/readmodel
Package readmodel provides shared project and MCP server selection for management transports.
Package readmodel provides shared project and MCP server selection for management transports.
internal/mcp
Shared outbound MCP client for member dispatch and consent verification.
Shared outbound MCP client for member dispatch and consent verification.
internal/mcp/httpheaders
Package httpheaders contains shared MCP request header parsing helpers.
Package httpheaders contains shared MCP request header parsing helpers.
internal/mcp/mcpmetrics
Package mcpmetrics owns every OpenTelemetry instrument the MCP runtime publishes: the per-request census counter, the handshake counter, the tool-call counter, the skill-read counter, the request-duration histogram, and the user-facing OAuth flow counters.
Package mcpmetrics owns every OpenTelemetry instrument the MCP runtime publishes: the per-request census counter, the handshake counter, the tool-call counter, the skill-read counter, the request-duration histogram, and the user-facing OAuth flow counters.
internal/mcp/mcprequests
Package mcprequests carries the per-request MCP metadata primitives shared by every inbound MCP surface: the decode of the per-request metadata that the 2026-07-28 protocol revision attaches to every request, the declared protocol-version precedence, the clamped method dimension, and the field sanitization they share.
Package mcprequests carries the per-request MCP metadata primitives shared by every inbound MCP surface: the decode of the per-request metadata that the 2026-07-28 protocol revision attaches to every request, the declared protocol-version precedence, the clamped method dimension, and the field sanitization they share.
internal/mcp/mcproute
Package mcproute names the URL path prefixes Speakeasy serves MCP endpoints under.
Package mcproute names the URL path prefixes Speakeasy serves MCP endpoints under.
internal/mcp/mcpskills
Package mcpskills resolves the managed skills an MCP surface serves under the Skills extension (SEP-2640), and records the activations callers make by reading a served skill.
Package mcpskills resolves the managed skills an MCP surface serves under the Skills extension (SEP-2640), and records the activations callers make by reading a served skill.
internal/mcp/mcpskills/skilllink
Package skilllink holds the write side of mcp_skill_links: the MCP surfaces a skill can be linked to and the functions that create, update and remove links.
Package skilllink holds the write side of mcp_skill_links: the MCP surfaces a skill can be linked to and the functions that create, update and remove links.
internal/mcp/mcpversions
Package mcpversions is the single registry of MCP protocol revision identifiers Speakeasy recognizes.
Package mcpversions is the single registry of MCP protocol revision identifiers Speakeasy recognizes.
internal/mcp/metamcp
Package metamcp colocates the view layer of the meta-server MCP surface — the constants, instructions, tool contract, and response shapes served by meta-MCP-backed endpoints — one file per MCP method.
Package metamcp colocates the view layer of the meta-server MCP surface — the constants, instructions, tool contract, and response shapes served by meta-MCP-backed endpoints — one file per MCP method.
internal/mcp/sessionclientinfo
Package sessionclientinfo holds the Redis-only record of who is on the other end of an MCP session.
Package sessionclientinfo holds the Redis-only record of who is on the other end of an MCP session.
internal/mcp/toolfilter
Package toolfilter is the shared home for MCP tool-filtering logic: deriving a tool's effective filter tags, applying the runtime ?tags= filter, resolving the effective variation group, and building the read-only scopes view shown on the dashboard.
Package toolfilter is the shared home for MCP tool-filtering logic: deriving a tool's effective filter tags, applying the runtime ?tags= filter, resolving the effective variation group, and building the read-only scopes view shown on the dashboard.
internal/mcp/tunnelrouting
Package tunnelrouting selects tunnel gateway owners and handles retry policy.
Package tunnelrouting selects tunnel gateway owners and handles retry policy.
internal/mcp/tunnelsessions
Package tunnelsessions holds the Redis-only session state for anonymous (public) tunneled MCP traffic.
Package tunnelsessions holds the Redis-only session state for anonymous (public) tunneled MCP traffic.
internal/mcpapproval
Package mcpapproval serves the MCP approval workflow: the queue of servers awaiting a decision, the evidence gathered for each, and the durable record of what was decided and why.
Package mcpapproval serves the MCP approval workflow: the queue of servers awaiting a decision, the evidence gathered for each, and the durable record of what was decided and why.
internal/mcpapproval/advisories
Package advisories asks OSV.dev which published vulnerability advisories name an MCP server's package.
Package advisories asks OSV.dev which published vulnerability advisories name an MCP server's package.
internal/mcpapproval/authority
Package authority summarises what an MCP server asks a customer to hand over.
Package authority summarises what an MCP server asks a customer to hand over.
internal/mcpapproval/capability
Package capability summarises what an MCP tool says it can do.
Package capability summarises what an MCP tool says it can do.
internal/mcpapproval/catalog
Package catalog matches a requested server URL against the research project's selected MCP catalog and reads the matched entry's provenance signals.
Package catalog matches a requested server URL against the research project's selected MCP catalog and reads the matched entry's provenance signals.
internal/mcpapproval/domainmeta
Package domainmeta looks up when a remote MCP server's domain was registered.
Package domainmeta looks up when a remote MCP server's domain was registered.
internal/mcpapproval/evidence
Package evidence composes every signal the evidence packages derive into the document stored on an approval request.
Package evidence composes every signal the evidence packages derive into the document stored on an approval request.
internal/mcpapproval/evidencediff
Package evidencediff compares the permission-relevant slice of two evidence documents: the one a decision froze and the one gathered since.
Package evidencediff compares the permission-relevant slice of two evidence documents: the one a decision froze and the one gathered since.
internal/mcpapproval/exposure
Package exposure answers "are we already exposed?" for a requested MCP server: whether this project is already talking to it, since when, how much, and by how many people.
Package exposure answers "are we already exposed?" for a requested MCP server: whether this project is already talking to it, since when, how much, and by how many people.
internal/mcpapproval/identity
Package identity resolves an observed MCP server reference into a stable artifact identity.
Package identity resolves an observed MCP server reference into a stable artifact identity.
internal/mcpapproval/packagemeta
Package packagemeta looks up what a package registry publishes about an MCP server distributed as a package.
Package packagemeta looks up what a package registry publishes about an MCP server distributed as a package.
internal/mcpapproval/provenance
Package provenance reads optional standard lifecycle and native publication evidence.
Package provenance reads optional standard lifecycle and native publication evidence.
internal/mcpapproval/remoteprobe
Package remoteprobe gathers what a remote MCP server publishes about itself, for the approval evidence document: its OAuth metadata through the standard well-known endpoints, and its tool declarations through an unauthenticated tools/list.
Package remoteprobe gathers what a remote MCP server publishes about itself, for the approval evidence document: its OAuth metadata through the standard well-known endpoints, and its tool declarations through an unauthenticated tools/list.
internal/mcpapproval/repometa
Package repometa looks up what a code host publishes about an MCP server's declared source repository.
Package repometa looks up what a code host publishes about an MCP server's declared source repository.
internal/mcpapproval/researchagent
Package researchagent runs the MCP approval workflow's research agent: a bounded tool-calling loop over the research web tools, followed by a schema-held extraction pass that turns the agent's cited prose into the structured report stored on mcp_research_reports.
Package researchagent runs the MCP approval workflow's research agent: a bounded tool-calling loop over the research web tools, followed by a schema-held extraction pass that turns the agent's cited prose into the structured report stored on mcp_research_reports.
internal/mcpauthz
Package mcpauthz issues short-lived caller assertions for private MCP tunnels.
Package mcpauthz issues short-lived caller assertions for private MCP tunnels.
internal/mcpauthz/mcpauthztest
Package mcpauthztest builds platform signers for tests.
Package mcpauthztest builds platform signers for tests.
internal/mcpconnectionattempts
Package mcpconnectionattempts records MCP connection attempts in ClickHouse: one row per step, shared by every flow.
Package mcpconnectionattempts records MCP connection attempts in ClickHouse: one row per step, shared by every flow.
internal/mcpconnectionattempts/attemptlog
Package attemptlog reads connection attempts for one organization and project: the Connection Logs list, its counts, one attempt, and the sign-in and denied-client summaries.
Package attemptlog reads connection attempts for one organization and project: the Connection Logs list, its counts, one attempt, and the sign-in and denied-client summaries.
internal/mcpconnectionattempts/dailyoutcomes
Package dailyoutcomes builds mcp_connection_outcomes_daily: per UTC day, how connection attempts ended and what fixed the failures, with no organization, project or person.
Package dailyoutcomes builds mcp_connection_outcomes_daily: per UTC day, how connection attempts ended and what fixed the failures, with no organization, project or person.
internal/mcpconnectionattempts/mcpconnectionattemptstest
Package mcpconnectionattemptstest lets a flow's test assert what was recorded in one line.
Package mcpconnectionattemptstest lets a flow's test assert what was recorded in one line.
internal/mcpconnectionattempts/otelsink
Package otelsink publishes exported MCP connection logs to the otel pipeline.
Package otelsink publishes exported MCP connection logs to the otel pipeline.
internal/mcpconnectionattempts/problems
Package problems groups the people who cannot connect right now into suspected problems.
Package problems groups the people who cannot connect right now into suspected problems.
internal/mcpconnectionhealth
Package mcpconnectionhealth serves the MCP connection health pages: Connection Logs, the sign-in summary, session activity and denied clients for one MCP authentication provider in a project.
Package mcpconnectionhealth serves the MCP connection health pages: Connection Logs, the sign-in summary, session activity and denied clients for one MCP authentication provider in a project.
internal/mcpfeedback
Package mcpfeedback is the feedback tool an MCP server can offer the agents that use it: what the tool looks like, what a report must look like, where reports are stored, and how each one leaves as a webhook event and an exported log record.
Package mcpfeedback is the feedback tool an MCP server can offer the agents that use it: what the tool looks like, what a report must look like, where reports are stored, and how each one leaves as a webhook event and an exported log record.
internal/mcpidentity
Package mcpidentity carries trusted authentication provenance for MCP requests.
Package mcpidentity carries trusted authentication provenance for MCP requests.
internal/mcpregistry/contract
Package contract owns the offline registry schema and native JSON Schema validation.
Package contract owns the offline registry schema and native JSON Schema validation.
internal/mcpregistry/oktamatch
Package oktamatch proposes Okta Integration Network application names for a catalog entry from names observed across synced tenants.
Package oktamatch proposes Okta Integration Network application names for a catalog entry from names observed across synced tenants.
internal/mcpregistry/oktaseed
Package oktaseed holds the hand-curated starter set of Speakeasy-owned catalog entries that map Okta Integration Network applications to MCP servers, and applies it idempotently.
Package oktaseed holds the hand-curated starter set of Speakeasy-owned catalog entries that map Okta Integration Network applications to MCP servers, and applies it idempotently.
internal/mcpriskscan
Package mcpriskscan evaluates mediated MCP operations before execution.
Package mcpriskscan evaluates mediated MCP operations before execution.
internal/mcpservers/tombstone
Package tombstone is the MCP server deletion shared by the server API and hosted wrappers.
Package tombstone is the MCP server deletion shared by the server API and hosted wrappers.
internal/mcpservers/upstreamclients
Package upstreamclients records which upstream OAuth clients (remote session clients) each MCP server uses.
Package upstreamclients records which upstream OAuth clients (remote session clients) each MCP server uses.
internal/mcpservers/upstreamclients/authclientbackfill
Package authclientbackfill records a typed auth client for every upstream identity an MCP server is configured with today, and links the server to it.
Package authclientbackfill records a typed auth client for every upstream identity an MCP server is configured with today, and links the server to it.
internal/mcpservers/upstreamclients/executionprofiles
Package executionprofiles keeps the execution-selection profiles assistant turns bind: for each assistant, root trigger and execution context, a versioned set of the typed auth client each MCP server the assistant reaches is served with.
Package executionprofiles keeps the execution-selection profiles assistant turns bind: for each assistant, root trigger and execution context, a versioned set of the typed auth client each MCP server the assistant reaches is served with.
internal/mcpservers/upstreamclients/selectionbackfill
Package selectionbackfill records, for every live user session credential, the upstream OAuth client it uses for each MCP server it can reach, and reports the pairs existing configuration does not decide.
Package selectionbackfill records, for every live user session credential, the upstream OAuth client it uses for each MCP server it can reach, and reports the pairs existing configuration does not decide.
internal/mcpservers/visibility
Package visibility declares the mcp_servers.visibility enum values.
Package visibility declares the mcp_servers.visibility enum values.
internal/memorydigest
Package memorydigest holds the clock and assembly rules for team memory digests: which periods are closed, which digest covers which children, what the rollup prompt contains, and how the recall block is cut to its token budget.
Package memorydigest holds the clock and assembly rules for team memory digests: which periods are closed, which digest covers which children, what the rollup prompt contains, and how the recall block is cut to its token budget.
internal/memorygate
Package memorygate decides whether Organizational Memory is on for an organization.
Package memorygate decides whether Organizational Memory is on for an organization.
internal/metamcp/visibility
Package visibility declares the meta_mcp_servers.visibility enum values.
Package visibility declares the meta_mcp_servers.visibility enum values.
internal/metering
Package metering owns workload meter definitions, readings, and publication.
Package metering owns workload meter definitions, readings, and publication.
internal/metering/chrepo
Package chrepo writes immutable workload readings to ClickHouse.
Package chrepo writes immutable workload readings to ClickHouse.
internal/mv
Package mv, short for "model views", provides functions for rendering views over database models that can be used by other services to produce consistent representations of API resources.
Package mv, short for "model views", provides functions for rendering views over database models that can be used by other services to produce consistent representations of API resources.
internal/networkingress/ingresscredentials
Package ingresscredentials seals, opens and stores the provider credentials of network ingresses: the Tailscale OAuth client an organization connects its private network with.
Package ingresscredentials seals, opens and stores the provider credentials of network ingresses: the Tailscale OAuth client an organization connects its private network with.
internal/oauth/protectedresource
Package protectedresource records what Speakeasy learns about a remote MCP server's RFC 9728 protected resource metadata and keeps that record fresh, off the request path for proxied traffic and within a short budget for a login.
Package protectedresource records what Speakeasy learns about a remote MCP server's RFC 9728 protected resource metadata and keeps that record fresh, off the request path for proxied traffic and within a short budget for a login.
internal/oauth/registration
Package registration defines the failure contract for automatic OAuth client registration mechanisms.
Package registration defines the failure contract for automatic OAuth client registration mechanisms.
internal/oauth/wellknown
Package wellknown resolves OAuth 2.1 well-known metadata for toolsets.
Package wellknown resolves OAuth 2.1 well-known metadata for toolsets.
internal/oautherr
Package oautherr is the home for OAuth 2.0 error handling shared across the server including error codes, types, and logic for emitting OAuth 2.0 errors as an Authorization Server or interpreting them as a client.
Package oautherr is the home for OAuth 2.0 error handling shared across the server including error codes, types, and logic for emitting OAuth 2.0 errors as an Authorization Server or interpreting them as a client.
internal/oauthtest
Package oauthtest provides helpers for creating OAuth-configured toolsets in tests.
Package oauthtest provides helpers for creating OAuth-configured toolsets in tests.
internal/oauthui
Package oauthui renders browser-facing OAuth responses shared by the Speakeasy authorization servers.
Package oauthui renders browser-facing OAuth responses shared by the Speakeasy authorization servers.
internal/oauthwire
Package oauthwire provides shared OAuth wire identifiers, errors, and redirect-URI validation for issuer and downstream client flows.
Package oauthwire provides shared OAuth wire identifiers, errors, and redirect-URI validation for issuer and downstream client flows.
internal/oktaapplications
Package oktaapplications keeps a per-connection snapshot of the Okta applications and their user and group assignments, reconciled on a schedule.
Package oktaapplications keeps a per-connection snapshot of the Okta applications and their user and group assignments, reconciled on a schedule.
internal/oktacredentials
Package oktacredentials coordinates Okta token exchanges with connection writes.
Package oktacredentials coordinates Okta token exchanges with connection writes.
internal/oktaissuer
Package oktaissuer holds the Okta issuer URL rule shared by the registry catalog mapping and the resource connection audience.
Package oktaissuer holds the Okta issuer URL rule shared by the registry catalog mapping and the resource connection audience.
internal/oktaresourceconnections
Package oktaresourceconnections derives, per MCP server, how far an organization is from Cross App Access working through its identity provider connection.
Package oktaresourceconnections derives, per MCP server, how far an organization is from Cross App Access working through its identity provider connection.
internal/openapi
Workaround: Anti-Gravity rejects tool inputSchema properties that use integer enums (e.g.
Workaround: Anti-Gravity rejects tool inputSchema properties that use integer enums (e.g.
internal/openrouterkeys
Package openrouterkeys implements the adminOpenRouterKeys service: the platform-admin surface over openrouter_api_keys, the per-(organization, key type) platform OpenRouter keys that pay for completions.
Package openrouterkeys implements the adminOpenRouterKeys service: the platform-admin surface over openrouter_api_keys, the per-(organization, key type) platform OpenRouter keys that pay for completions.
internal/orderedmap
Package orderedmap provides a map implementation that maintains the order of keys as they are added.
Package orderedmap provides a map implementation that maintains the order of keys as they are added.
internal/organizations/orgcap
Package orgcap is the per-user organization limit.
Package orgcap is the per-user organization limit.
internal/organizations/orgprovision
Package orgprovision holds the parts of creating an organization that every caller must do identically: validating the display name, and creating the WorkOS organization so that its Speakeasy organization ID is derivable from its WorkOS ID.
Package orgprovision holds the parts of creating an organization that every caller must do identically: validating the display name, and creating the WorkOS organization so that its Speakeasy organization ID is derivable from its WorkOS ID.
internal/orgencryption
Package orgencryption encrypts organization data under keys scoped to the organization, instead of the single application key in package encryption.
Package orgencryption encrypts organization data under keys scoped to the organization, instead of the single application key in package encryption.
internal/orgencryption/orgencryptiontest
Package orgencryptiontest builds organization encryption against the local KMS stand-in, for tests in this package and in consumers.
Package orgencryptiontest builds organization encryption against the local KMS stand-in, for tests in this package and in consumers.
internal/orgencryptionapi
Package orgencryptionapi implements the orgEncryption management service.
Package orgencryptionapi implements the orgEncryption management service.
internal/orggateway
Package orggateway decides whether an organization is served an organization gateway: one MCP URL per organization, signed in to through the organization's own user session issuer, whose servers are every server in the organization the signed-in user can reach.
Package orggateway decides whether an organization is served an organization gateway: one MCP URL per organization, signed in to through the organization's own user session issuer, whose servers are every server in the organization the signed-in user can reach.
internal/orghost
Package orghost resolves the base URL of the URLs Speakeasy renders for an organization without an inbound request to follow: emails, Slack messages, and background jobs.
Package orghost resolves the base URL of the URLs Speakeasy renders for an organization without an inbound request to follow: emails, Slack messages, and background jobs.
internal/orgserving
Package orgserving decides whether Speakeasy serves an organization's MCP servers at all, before any per-server, per-gateway, or per-caller policy.
Package orgserving decides whether Speakeasy serves an organization's MCP servers at all, before any per-server, per-gateway, or per-caller policy.
internal/otel/enrich
Package enrich holds the enrichers the OTel transform handlers run over an inbound record before it is published to the normalized topics, and the attribute keys they write under.
Package enrich holds the enrichers the OTel transform handlers run over an inbound record before it is published to the normalized topics, and the attribute keys they write under.
internal/otel/oteltest
Package oteltest holds assertions on built OTLP export requests.
Package oteltest holds assertions on built OTLP export requests.
internal/otelpub
Package otelpub is how the server's own code writes log records into the OTel pipeline.
Package otelpub is how the server's own code writes log records into the OTel pipeline.
internal/outbox
Package outbox provides the producer side of the transactional outbox.
Package outbox provides the producer side of the transactional outbox.
internal/outbox/cataloggen
Package cataloggen generates server/internal/outbox/events/catalog_gen.go and server/internal/outbox/events/catalog_gen.yaml from the event definition files.
Package cataloggen generates server/internal/outbox/events/catalog_gen.go and server/internal/outbox/events/catalog_gen.yaml from the event definition files.
internal/partition
Package partition identifies the Speakeasy partition a process runs in.
Package partition identifies the Speakeasy partition a process runs in.
internal/platformmcp/localfixture
Package localfixture owns the code-defined reviewed provider used only by the explicit local Platform MCP fixture composition.
Package localfixture owns the code-defined reviewed provider used only by the explicit local Platform MCP fixture composition.
internal/platformmcp/memoryeval
Package memoryeval holds the synthetic corpus, question set and mechanical checks used to evaluate team chat memory in the Platform MCP.
Package memoryeval holds the synthetic corpus, question set and mechanical checks used to evaluate team chat memory in the Platform MCP.
internal/platformmcp/memoryeval/bench
Package bench runs the team memory eval against a corpus that is already loaded into a database.
Package bench runs the team memory eval against a corpus that is already loaded into a database.
internal/platformmcp/memoryeval/evalrun
Package evalrun runs one stored team memory eval run against the corpus the demo seed wrote: it rebuilds the corpus, writes team memory with the run's summary and digest models, scores every answer model in every arm, and stores the report on the run's row.
Package evalrun runs one stored team memory eval run against the corpus the demo seed wrote: it rebuilds the corpus, writes team memory with the run's summary and digest models, scores every answer model in every arm, and stores the report on the run's row.
internal/platformmcp/oauth
Package oauth defines Platform MCP's organization-bound OAuth state contracts.
Package oauth defines Platform MCP's organization-bound OAuth state contracts.
internal/platformmcp/remotesessionprovider
Package remotesessionprovider implements reviewed Platform MCP provider readiness over shared remote-session authorization.
Package remotesessionprovider implements reviewed Platform MCP provider readiness over shared remote-session authorization.
internal/platformmcp/servernames
Package servernames folds the server names agent hooks report back onto the MCP servers configured in a project.
Package servernames folds the server names agent hooks report back onto the MCP servers configured in a project.
internal/platformmcp/setupcorpus
Package setupcorpus builds the reviewed Platform MCP setup resource corpus from the pinned mcp-setup-docs export.
Package setupcorpus builds the reviewed Platform MCP setup resource corpus from the pinned mcp-setup-docs export.
internal/platformmcp/tooleval
Package tooleval measures how well an agent uses the Platform MCP tools.
Package tooleval measures how well an agent uses the Platform MCP tools.
internal/platformswitches
Package platformswitches stores staff-controlled switches that apply to the whole platform rather than to one organization.
Package platformswitches stores staff-controlled switches that apply to the whole platform rather than to one organization.
internal/platformtools/memory
Package memory implements the gram://memory/* platform tools that wrap the MemoryService for use by assistant agents at runtime.
Package memory implements the gram://memory/* platform tools that wrap the MemoryService for use by assistant agents at runtime.
internal/platformtools/platform
Package platform re-serves the Platform MCP read tools (server/internal/platformmcp) as platform tools on the assistant runtime channel.
Package platform re-serves the Platform MCP read tools (server/internal/platformmcp) as platform tools on the assistant runtime channel.
internal/platformtools/research
Package research provides the MCP research agent's web tools: search and page fetch.
Package research provides the MCP research agent's web tools: search and page fetch.
internal/plugins/installmode
Package installmode defines how the device agent installs a plugin for one assignment audience.
Package installmode defines how the device agent installs a plugin for one assignment audience.
internal/plugins/marketplacetokens
Package marketplacetokens mints, stores and opens plugin marketplace tokens: the URL-as-secret credentials in marketplace install URLs, which the marketplace proxy trades for a clone of a project's marketplace repository.
Package marketplacetokens mints, stores and opens plugin marketplace tokens: the URL-as-secret credentials in marketplace install URLs, which the marketplace proxy trades for a clone of a project's marketplace repository.
internal/plugins/marketplacetokens/marketplacetokenstest
Package marketplacetokenstest wires marketplace tokens for tests and plants them on GitHub connections the way a publish stores them.
Package marketplacetokenstest wires marketplace tokens for tests and plants them on GitHub connections the way a publish stores them.
internal/plugins/naming
Package naming holds the marketplace + observability-plugin name formulas shared between the plugin publish path (server/internal/plugins) and the device-agent endpoint (server/internal/agent + mv).
Package naming holds the marketplace + observability-plugin name formulas shared between the plugin publish path (server/internal/plugins) and the device-agent endpoint (server/internal/agent + mv).
internal/plugins/publishstatus
Package publishstatus describes the latest change-driven marketplace publish for a project.
Package publishstatus describes the latest change-driven marketplace publish for a project.
internal/plugins/roledelivery
Package roledelivery applies event-scoped role access changes to plugin contents.
Package roledelivery applies event-scoped role access changes to plugin contents.
internal/productfeatures/productfeaturestest
Package productfeaturestest provides helpers for toggling organization-level product feature entitlements in tests, for the packages whose service is gated on one.
Package productfeaturestest provides helpers for toggling organization-level product feature entitlements in tests, for the packages whose service is gated on one.
internal/ratelimit
Package ratelimit is Speakeasy's shared token-bucket rate limiter.
Package ratelimit is Speakeasy's shared token-bucket rate limiter.
internal/redisinbox
Package redisinbox implements a generic 1:1 request-reply rendezvous over a per-replica Redis list.
Package redisinbox implements a generic 1:1 request-reply rendezvous over a per-replica Redis list.
internal/remotemcp/interceptors
Package interceptors holds per-vendor policies applied to remote-MCP proxy traffic.
Package interceptors holds per-vendor policies applied to remote-MCP proxy traffic.
internal/remotemcp/proxy
Package proxy forwards MCP client requests to an upstream Remote MCP Server and relays its responses back to the client.
Package proxy forwards MCP client requests to an upstream Remote MCP Server and relays its responses back to the client.
internal/remotemcp/remotemcptest
Package remotemcptest provides helpers for seeding remote_mcp_servers rows in tests across packages that depend on a remote MCP server FK.
Package remotemcptest provides helpers for seeding remote_mcp_servers rows in tests across packages that depend on a remote MCP server FK.
internal/remotesessions
Package remotesessions implements the management API services that surface remote_session_issuer / remote_session_client / remote_session resources — Speakeasy-as-OAuth-Client configuration and the upstream sessions Speakeasy is holding on a principal's behalf.
Package remotesessions implements the management API services that surface remote_session_issuer / remote_session_client / remote_session resources — Speakeasy-as-OAuth-Client configuration and the upstream sessions Speakeasy is holding on a principal's behalf.
internal/remotesessions/clientcredentials
Package clientcredentials obtains the upstream credential a remote session client holds for itself, rather than for a session subject, with the OAuth 2.0 client credentials grant (RFC 6749 §4.4).
Package clientcredentials obtains the upstream credential a remote session client holds for itself, rather than for a session subject, with the OAuth 2.0 client credentials grant (RFC 6749 §4.4).
internal/remotesessions/clientsecrets
Package clientsecrets seals, opens, stores and erases the client secrets of remote session clients, the OAuth clients Speakeasy uses upstream.
Package clientsecrets seals, opens, stores and erases the client secrets of remote session clients, the OAuth clients Speakeasy uses upstream.
internal/remotesessions/clientsecrets/clientsecretstest
Package clientsecretstest builds clientsecrets.Secrets for tests in other packages.
Package clientsecretstest builds clientsecrets.Secrets for tests in other packages.
internal/remotesessions/delegation
Package delegation owns retained credential state and its refresh CAS protocol.
Package delegation owns retained credential state and its refresh CAS protocol.
internal/remotesessions/identitychaining
Package identitychaining obtains resource-bound downstream access tokens for a human by identity chaining (enterprise-managed authorization, Okta Cross App Access): it exchanges the human's retained identity provider ID token for an ID-JAG, validates it, and redeems it at the resource authorization server under the RFC 7523 JWT bearer grant.
Package identitychaining obtains resource-bound downstream access tokens for a human by identity chaining (enterprise-managed authorization, Okta Cross App Access): it exchanges the human's retained identity provider ID token for an ID-JAG, validates it, and redeems it at the resource authorization server under the RFC 7523 JWT bearer grant.
internal/remotesessions/interceptors
Package interceptors adapts the outgoing upstream authorize request to a provider's non-standard requirements before the user is redirected to it.
Package interceptors adapts the outgoing upstream authorize request to a provider's non-standard requirements before the user is redirected to it.
internal/remotesessions/remotesessionmetrics
Package remotesessionmetrics holds the metric instruments for the remote sessions subsystem — the outbound OAuth legs where Speakeasy acts as an OAuth client against a customer's upstream identity provider.
Package remotesessionmetrics holds the metric instruments for the remote sessions subsystem — the outbound OAuth legs where Speakeasy acts as an OAuth client against a customer's upstream identity provider.
internal/remotesessions/upstreamtokens
Package upstreamtokens seals, opens, stores and erases the upstream OAuth tokens and related values Speakeasy stores for remote sessions, trusted issuer sessions and EMA credentials.
Package upstreamtokens seals, opens, stores and erases the upstream OAuth tokens and related values Speakeasy stores for remote sessions, trusted issuer sessions and EMA credentials.
internal/remotesessions/upstreamtokens/upstreamtokenstest
Package upstreamtokenstest builds upstreamtokens.Tokens for tests in other packages.
Package upstreamtokenstest builds upstreamtokens.Tokens for tests in other packages.
internal/requestip
Package requestip resolves public client addresses at the trusted edge boundary.
Package requestip resolves public client addresses at the trusted edge boundary.
internal/requestreply
Package requestreply defines transport-independent request-reply contracts.
Package requestreply defines transport-independent request-reply contracts.
internal/risk/analysisstatus
Package analysisstatus describes the run state of a project's risk analysis coordinator workflow.
Package analysisstatus describes the run state of a project's risk analysis coordinator workflow.
internal/risk/approval
Package approval implements Speakeasy Approvals: MCP tool calls that a require_approval risk policy holds until a listed approver approves them.
Package approval implements Speakeasy Approvals: MCP tool calls that a require_approval risk policy holds until a listed approver approves them.
internal/risk/approval/slackapproval
Package slackapproval sends approval requests to approvers as Slack DMs and takes their decisions back from Slack.
Package slackapproval sends approval requests to approvers as Slack DMs and takes their decisions back from Slack.
internal/risk/categories
Package categories is the single source of truth for the (source, rule_id) → risk category mapping shown across the dashboard.
Package categories is the single source of truth for the (source, rule_id) → risk category mapping shown across the dashboard.
internal/risk/celenv
Package celenv defines the single CEL environment for risk rule expressions.
Package celenv defines the single CEL environment for risk rule expressions.
internal/risk/enforcereply
Package enforcereply binds the generic Redis inbox (internal/redisinbox) to risk enforcement replies and return addresses.
Package enforcereply binds the generic Redis inbox (internal/redisinbox) to risk enforcement replies and return addresses.
internal/risk/maskdisplay
Package maskdisplay produces the partial-mask display form of a risk finding's matched value — the string stored in the ClickHouse risk_findings.match_redacted column and rendered as the match by default in listings.
Package maskdisplay produces the partial-mask display form of a risk finding's matched value — the string stored in the ClickHouse risk_findings.match_redacted column and rendered as the match by default in listings.
internal/risk/policycatalog
Package policycatalog owns the release-pinned detector values that Platform policy administration may expose.
Package policycatalog owns the release-pinned detector values that Platform policy administration may expose.
internal/risk/presetlib
Package presetlib classifies risk findings from ANY detection source against a git-versioned catalog of known-benign values (test credit cards, example API keys/tokens, module hashes, placeholder emails).
Package presetlib classifies risk findings from ANY detection source against a git-versioned catalog of known-benign values (test credit cards, example API keys/tokens, module hashes, placeholder emails).
internal/risk/presets
Package presets owns the use-case bundles an administrator starts a risk policy from.
Package presets owns the use-case bundles an administrator starts a risk policy from.
internal/risk/presidiofp
Package presidiofp classifies Presidio PII findings as false positives.
Package presidiofp classifies Presidio PII findings as false positives.
internal/risk/recommendedscopes
Package recommendedscopes contains the centrally-maintained detection scope registry for built-in risk categories.
Package recommendedscopes contains the centrally-maintained detection scope registry for built-in risk categories.
internal/roledistribution
Package roledistribution performs one-time, best-effort role distribution setup.
Package roledistribution performs one-time, best-effort role distribution setup.
internal/roledistribution/requests
Package requests publishes transactional role distribution work without depending on its processor.
Package requests publishes transactional role distribution work without depending on its processor.
internal/sandbox
Package sandbox shares GKE Agent Sandbox discovery between runtime purposes.
Package sandbox shares GKE Agent Sandbox discovery between runtime purposes.
internal/scanners/accountidentity
Package accountidentity is the single home for the account-identity scanner.
Package accountidentity is the single home for the account-identity scanner.
internal/scanners/clidestructive
Package clidestructive is the single home for the destructive-CLI-command scanner.
Package clidestructive is the single home for the destructive-CLI-command scanner.
internal/scanners/destructivetool
Package destructivetool is the single home for the destructive-tool-annotation scanner.
Package destructivetool is the single home for the destructive-tool-annotation scanner.
internal/scanners/gitleaks
Package gitleaks is the single home for gitleaks-based secret scanning.
Package gitleaks is the single home for gitleaks-based secret scanning.
internal/scanners/llmanalyzer
Package llmanalyzer declares the contracts of the fine-tuned risk model analyzer: its finding source, its rule ids and the mapping between policy sources and the risks the model scores.
Package llmanalyzer declares the contracts of the fine-tuned risk model analyzer: its finding source, its rule ids and the mapping between policy sources and the risks the model scores.
internal/scanners/presidiostub
Package presidiostub stands in for the Python pystreams consumers during local development, so the stack does not need to load Presidio and spaCy.
Package presidiostub stands in for the Python pystreams consumers during local development, so the stack does not need to load Presidio and spaCy.
internal/scanners/promptinjection/openrouter
Package openrouter holds the OpenRouter-backed prompt-injection judge.
Package openrouter holds the OpenRouter-backed prompt-injection judge.
internal/scanners/promptpolicy/openrouter
Package openrouter holds the OpenRouter-backed prompt policy evaluator.
Package openrouter holds the OpenRouter-backed prompt policy evaluator.
internal/scanners/shadowmcpscan
Package shadowmcpscan is the single home for the shadow-MCP scanner.
Package shadowmcpscan is the single home for the shadow-MCP scanner.
internal/secretbackfills/functionsaccessorganization
Package functionsaccessorganization sets functions_access.organization_id on function runner keys written before the deploy path set it.
Package functionsaccessorganization sets functions_access.organization_id on function runner keys written before the deploy path set it.
internal/secretbackfills/marketplacetokenbackfill
Package marketplacetokenbackfill moves plugin marketplace tokens stored in plaintext to their hash and sealed copies.
Package marketplacetokenbackfill moves plugin marketplace tokens stored in plaintext to their hash and sealed copies.
internal/secretmask
Package secretmask holds the placeholders that management reads return in place of stored secret values, so every surface masks secrets the same way.
Package secretmask holds the placeholders that management reads return in place of stored secret values, so every surface masks secrets the same way.
internal/sessionhandoff
Package sessionhandoff renders a captured Speakeasy chat transcript into a deterministic markdown handoff digest — the document served to a harness that wants to continue a previous session's work.
Package sessionhandoff renders a captured Speakeasy chat transcript into a deterministic markdown handoff digest — the document served to a harness that wants to continue a previous session's work.
internal/sessionlist
Package sessionlist implements stable timestamp/UUID pagination for session feeds.
Package sessionlist implements stable timestamp/UUID pagination for session feeds.
internal/sessiontokens
Package sessiontokens implements the product-neutral JWT and revocation primitives used by Speakeasy-issued session tokens.
Package sessiontokens implements the product-neutral JWT and revocation primitives used by Speakeasy-issued session tokens.
internal/setupguides
Package setupguides answers which public setup guides ship in the pinned mcp-setup-docs export embedded in the server binary.
Package setupguides answers which public setup guides ship in the pinned mcp-setup-docs export embedded in the server binary.
internal/shutdowndrain
Package shutdowndrain tells in-flight MCP requests that the server is shutting down, so they can end in a way their clients understand before the HTTP server's graceful shutdown deadline cancels them and closes their connections.
Package shutdowndrain tells in-flight MCP requests that the server is shutting down, so they can end in a way their clients understand before the HTTP server's graceful shutdown deadline cancels them and closes their connections.
internal/sigint/chrepo
Package chrepo stores sensor readings in ClickHouse.
Package chrepo stores sensor readings in ClickHouse.
internal/sigint/evaluation
Package evaluation classifies source events and publishes sensor readings.
Package evaluation classifies source events and publishes sensor readings.
internal/sigint/matching
Package matching defines the versioned sensor eligibility contract.
Package matching defines the versioned sensor eligibility contract.
internal/sigint/readings
Package readings defines evaluation provenance and logical reading identity.
Package readings defines evaluation provenance and logical reading identity.
internal/signins
Package signins records the sign-ins that authorize MCP grants and judges whether a grant still traces to a current, revocable one of an accepted tier.
Package signins records the sign-ins that authorize MCP grants and judges whether a grant still traces to a current, revocable one of an accepted tier.
internal/skills/efficacy
Package efficacy scores how well a skill served an agent session: it renders the session transcript, asks an LLM judge for a structured verdict, and normalizes that verdict for the skill_efficacy_scores ClickHouse sink.
Package efficacy scores how well a skill served an agent session: it renders the session transcript, asks an LLM judge for a structured verdict, and normalizes that verdict for the skill_efficacy_scores ClickHouse sink.
internal/skills/skilldiff
Package skilldiff represents a proposed SKILL.md edit as a unified diff so a suggestion outlives the exact version it was generated against.
Package skilldiff represents a proposed SKILL.md edit as a unified diff so a suggestion outlives the exact version it was generated against.
internal/skills/suggest
Package suggest generates evidence-backed edits to recently active skills.
Package suggest generates evidence-backed edits to recently active skills.
internal/slackapp
Package slackapp serves the Speakeasy Slack app's Events API endpoint.
Package slackapp serves the Speakeasy Slack app's Events API endpoint.
internal/slackdirectoryconnections/slackscopes
Package slackscopes names the bot scopes the Speakeasy Slack app asks for and reports which of them an install is missing.
Package slackscopes names the bot scopes the Speakeasy Slack app asks for and reports which of them an install is missing.
internal/slackdm
Package slackdm is the Slack plumbing shared by features that DM people through the Speakeasy Slack app and take their clicks back: finding a member's Slack account, posting and updating DMs, verifying Slack's request signature, replying through response_url, and routing clicks on the interactivity endpoint by action ID.
Package slackdm is the Slack plumbing shared by features that DM people through the Speakeasy Slack app and take their clicks back: finding a member's Slack account, posting and updating DMs, verifying Slack's request signature, replying through response_url, and routing clicks on the interactivity endpoint by action ID.
internal/spendrules/celenv
Package celenv defines the single CEL environment for spend rule expressions.
Package celenv defines the single CEL environment for spend rule expressions.
internal/spendrules/money
Package money defines Cents, the native Go type the spend-rules tables map their *_usd_cents BIGINT columns to (via sqlc go_type overrides).
Package money defines Cents, the native Go type the spend-rules tables map their *_usd_cents BIGINT columns to (via sqlc go_type overrides).
internal/staff
Package staff identifies the Speakeasy staff organization of a deployment.
Package staff identifies the Speakeasy staff organization of a deployment.
internal/tailnetgateway
Package tailnetgateway hosts private network ingresses on customer tailnets with tsnet.
Package tailnetgateway hosts private network ingresses on customer tailnets with tsnet.
internal/tailnetgateway/issuancetest
Package issuancetest runs real gateway slots against an in-process Tailscale control server and a Pebble ACME server, and counts the certificates Pebble issues.
Package issuancetest runs real gateway slots against an in-process Tailscale control server and a Pebble ACME server, and counts the certificates Pebble issues.
internal/telemetry/analytics
Package analytics is the semantic query layer over agent session data.
Package analytics is the semantic query layer over agent session data.
internal/telemetry/analytics/signals
Package signals compiles explicit signal measurements over canonical winners.
Package signals compiles explicit signal measurements over canonical winners.
internal/telemetry/overview
Package overview is the neutral read path for project overview analytics.
Package overview is the neutral read path for project overview analytics.
internal/telemetry/telemetryerrs
Package telemetryerrs holds telemetry errors that non-telemetry packages need to recognize (e.g.
Package telemetryerrs holds telemetry errors that non-telemetry packages need to recognize (e.g.
internal/testmcp
Package testmcp provides an in-process mock MCP server backed by the official MCP Go SDK.
Package testmcp provides an in-process mock MCP server backed by the official MCP Go SDK.
internal/thirdparty/catalogpromotion
Package catalogpromotion delivers reviewed public catalog metadata to the guide factory.
Package catalogpromotion delivers reviewed public catalog metadata to the guide factory.
internal/thirdparty/gcp/gcpauth
Package gcpauth turns a GCP IAM external credential into the two things callers need from it.
Package gcpauth turns a GCP IAM external credential into the two things callers need from it.
internal/thirdparty/gcp/gcpkms
Package gcpkms signs and encrypts with GCP Cloud KMS keys whose key material never leaves the provider.
Package gcpkms signs and encrypts with GCP Cloud KMS keys whose key material never leaves the provider.
internal/thirdparty/geminivault
Package geminivault exports managed Gemini app conversations through Google Vault.
Package geminivault exports managed Gemini app conversations through Google Vault.
internal/thirdparty/loops
Package loops is a thin transport wrapper around the Loops transactional email API (https://loops.so).
Package loops is a thin transport wrapper around the Loops transactional email API (https://loops.so).
internal/thirdparty/openrouter/modelcatalog
Package modelcatalog fetches and filters upstream model metadata without inference.
Package modelcatalog fetches and filters upstream model metadata without inference.
internal/thirdparty/resend
Package resend sends transactional emails using published Resend templates.
Package resend sends transactional emails using published Resend templates.
internal/thirdparty/slack/api
Package api provides the shared low-level Slack Web API client used across Speakeasy.
Package api provides the shared low-level Slack Web API client used across Speakeasy.
internal/thirdparty/stripe
Package stripe provides the narrow Stripe boundary used by PAYG billing.
Package stripe provides the narrow Stripe boundary used by PAYG billing.
internal/thirdparty/tailscaleapi
Package tailscaleapi wraps the Tailscale public API calls the private network reconciler needs: minting one-shot auth keys, defining Tailscale Services, and deleting devices.
Package tailscaleapi wraps the Tailscale public API calls the private network reconciler needs: minting one-shot auth keys, defining Tailscale Services, and deleting devices.
internal/thirdparty/typesafe
Package typesafe is the HTTP client for TypeSafe's System One ("Jev") judgement API.
Package typesafe is the HTTP client for TypeSafe's System One ("Jev") judgement API.
internal/thirdparty/typesafedecisions
Package typesafedecisions provides bounded, typed judgments from Jev.
Package typesafedecisions provides bounded, typed judgments from Jev.
internal/tokenexchange
Package tokenexchange implements the device-agent token surface (DNO-383).
Package tokenexchange implements the device-agent token surface (DNO-383).
internal/toolcallobserver
Package toolcallobserver defines a narrow, content-free tool-success signal shared by runtime adapters and product-specific recorders.
Package toolcallobserver defines a narrow, content-free tool-success signal shared by runtime adapters and product-specific recorders.
internal/toolconfig
Package toolconfig provides configuration types for tool execution.
Package toolconfig provides configuration types for tool execution.
internal/toolref
Package toolref parses and attributes the namespaced tool-call names that agent hosts emit.
Package toolref parses and attributes the namespaced tool-call names that agent hosts emit.
internal/trialemails
Package trialemails synchronizes enterprise trial lifecycle state to Loops.
Package trialemails synchronizes enterprise trial lifecycle state to Loops.
internal/tunneledmcp/publiclimits
Package publiclimits is the single source of the anonymous public admission limits a tunneled MCP server is served under: the deployment defaults, the bounds a stored value must satisfy, and how a row's stored values resolve to the limit the serve path applies.
Package publiclimits is the single source of the anonymous public admission limits a tunneled MCP server is served under: the deployment defaults, the bounds a stored value must satisfy, and how a row's stored values resolve to the limit the serve path applies.
internal/tunnelmetrics
Package tunnelmetrics persists and queries payload-free tunnel aggregates.
Package tunnelmetrics persists and queries payload-free tunnel aggregates.
internal/urls
Package urls holds validation helpers for URLs that arrive from outside Speakeasy — request payloads, upstream metadata documents, and other untrusted sources — and that Speakeasy stores, dials, or renders as a link.
Package urls holds validation helpers for URLs that arrive from outside Speakeasy — request payloads, upstream metadata documents, and other untrusted sources — and that Speakeasy stores, dials, or renders as a link.
internal/userblock
Package userblock reads whether staff blocked a user from the platform (users.blacklisted_at).
Package userblock reads whether staff blocked a user from the platform (users.blacklisted_at).
internal/usersessions
Package usersessions implements the management API services that surface user_session_issuer / user_session_client / user_session_consent / user_session and gateway session resources.
Package usersessions implements the management API services that surface user_session_issuer / user_session_client / user_session_consent / user_session and gateway session resources.
internal/usersessions/assertion
Package assertion contains the verification mechanics shared by JWT assertion profiles.
Package assertion contains the verification mechanics shared by JWT assertion profiles.
internal/usersessions/assertion/idjag
Package idjag validates identity assertion JWT authorization grants and resolves their enterprise identities to provisioned Speakeasy users.
Package idjag validates identity assertion JWT authorization grants and resolves their enterprise identities to provisioned Speakeasy users.
internal/usersessions/assertion/privatekeyjwt
Package privatekeyjwt verifies RFC 7523 §2.2 client assertions, the evidence a private_key_jwt client presents in place of a shared secret.
Package privatekeyjwt verifies RFC 7523 §2.2 client assertions, the evidence a private_key_jwt client presents in place of a shared secret.
internal/usersessions/assertion/workload
Package workload verifies assertions issued by an external platform for a separately admitted machine identity.
Package workload verifies assertions issued by an external platform for a separately admitted machine identity.
internal/usersessions/authserver
Package authserver derives where a user session issuer's shared OAuth authorization server is served.
Package authserver derives where a user session issuer's shared OAuth authorization server is served.
internal/usersessions/cimd
Package cimd implements the inbound side of OAuth Client ID Metadata Documents (draft-ietf-oauth-client-id-metadata-document-02): resolving a URL-shaped client_id presented to the user-session authorization server by fetching the document it names, parsing it, and validating it against the spec's rules plus this server's own policy rules.
Package cimd implements the inbound side of OAuth Client ID Metadata Documents (draft-ietf-oauth-client-id-metadata-document-02): resolving a URL-shaped client_id presented to the user-session authorization server by fetching the document it names, parsing it, and validating it against the spec's rules plus this server's own policy rules.
internal/usersessions/cimd/admission
Package admission implements CIMD admission control: the per-issuer policy deciding WHICH Client ID Metadata Document URLs a Speakeasy user-session authorization server will accept, evaluated before any document is fetched.
Package admission implements CIMD admission control: the per-issuer policy deciding WHICH Client ID Metadata Document URLs a Speakeasy user-session authorization server will accept, evaluated before any document is fetched.
internal/usersessions/clientcred
Package clientcred derives what credential a user_session_client row requires from the columns persisted on it.
Package clientcred derives what credential a user_session_client row requires from the columns persisted on it.
internal/usersessions/jwks
Package jwks resolves third-party JSON Web Key Sets into verification keys.
Package jwks resolves third-party JSON Web Key Sets into verification keys.
internal/usersessions/replay
Package replay enforces single use of assertion identifiers.
Package replay enforces single use of assertion identifiers.
internal/usersessions/serverissuer
Package serverissuer mints the user_session_issuer an MCP server carries for its lifetime.
Package serverissuer mints the user_session_issuer an MCP server carries for its lifetime.
internal/uuidv7
Package uuidv7 holds helpers for working with time-ordered UUIDv7 values, chiefly deriving id bounds from timestamps so a (project_id, id) index can double as a time-range filter without a separate created_at index.
Package uuidv7 holds helpers for working with time-ordered UUIDv7 values, chiefly deriving id bounds from timestamps so a (project_id, id) index can double as a time-range filter without a separate created_at index.
internal/webhooks/svixrelay
Package svixrelay delivers webhook events from the gram.webhooks.v1.Event topic to Svix.
Package svixrelay delivers webhook events from the gram.webhooks.v1.Event topic to Svix.
internal/wide
Package wide implements wide-event logging.
Package wide implements wide-event logging.
internal/workloadidentity
Package workloadidentity resolves the external issuers and workload subjects an organization has said it trusts for the RFC 7523 §2.1 workload assertion grant.
Package workloadidentity resolves the external issuers and workload subjects an organization has said it trusts for the RFC 7523 §2.1 workload assertion grant.
internal/workloadpolicy
Package workloadpolicy implements the management API for an organization's workload identity trust policy: the external issuers it trusts, the subjects those issuers may present, and the agent each admitted workload inherits its policy from.
Package workloadpolicy implements the management API for an organization's workload identity trust policy: the external issuers it trusts, the subjects those issuers may present, and the agent each admitted workload inherits its policy from.
internal/workloadpolicy/catalog
Package catalog holds the platforms the Access Hub offers to trust without looking anything up, each with the guided setup that connects it.
Package catalog holds the platforms the Access Hub offers to trust without looking anything up, each with the guided setup that connects it.
cmd/cli/gram module
tunnel
agent
Package agent reverse-proxies a pinned local MCP server over one outbound yamux/WebSocket tunnel.
Package agent reverse-proxies a pinned local MCP server over one outbound yamux/WebSocket tunnel.
cmd/tunnel-agent command
Command tunnel-agent runs the customer-side outbound tunnel agent.
Command tunnel-agent runs the customer-side outbound tunnel agent.
cmd/tunnel-gateway command
Command tunnel-gateway serves public agent connects and internal tunnel forwards.
Command tunnel-gateway serves public agent connects and internal tunnel forwards.
jwks
Package jwks validates and serves public verification keys for tunnel caller assertions.
Package jwks validates and serves public verification keys for tunnel caller assertions.
metrics
Package metrics accumulates bounded, payload-free tunnel aggregates.
Package metrics accumulates bounded, payload-free tunnel aggregates.
metricspub
Package metricspub adapts bounded tunnel aggregates to the existing Pub/Sub pipeline.
Package metricspub adapts bounded tunnel aggregates to the existing Pub/Sub pipeline.
redisswitch
Package redisswitch moves a running process from one Redis instance to another without restarting it.
Package redisswitch moves a running process from one Redis instance to another without restarting it.
route
Package route stores live tunnel gateway owners and connection snapshots.
Package route stores live tunnel gateway owners and connection snapshots.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL