CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
jmagar avatar

Cortex

jmagar/cortex
130 toolsauthSTDIO, HTTPregistry active
Summary

A syslog ingestion engine that turns your homelab into a queryable log warehouse. Listens on UDP and TCP port 1514, writes to SQLite with FTS5 full-text indexing, and exposes 40+ MCP actions for drilling into errors, correlating events across hosts, tracking AI transcript sessions, detecting abuse patterns, and comparing time ranges. The single `cortex` tool uses an action parameter to switch between search, filter, tail, anomalies, compose_status, and dozens of other operations. Ships with six infrastructure prompts for incident triage, host health checks, and auth review. Runs as a daemon with an RMCP HTTP server on port 3100 or stdio for local clients. Built in Rust, packaged as a Docker container.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Tools

Public tool metadata for what this MCP can expose to an agent.

30 tools
listAllEntitiesList and filter catalog entities with support for pagination, search, and various filters including groups, types, owners, and git repositories. If the client is trying to fetch data for teams, use 'type': 'team' in these APIs.16 params

List and filter catalog entities with support for pagination, search, and various filters including groups, types, owners, and git repositories. If the client is trying to fetch data for teams, use 'type': 'team' in these APIs.

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
gitRepositoriesarray
Supports only GitHub repositories in the `org/repo` format
groupsarray
Filter based on groups, which correspond to the `x-cortex-groups` field in the Catalog Descriptor. Accepts a comma-delimited list of groups
hierarchyDepthstring
Depth of the parent / children hierarchy nodes. Can be 'full' or a valid integerdefault: full
includeArchivedboolean
Whether to include archived entities in the responsedefault: false
includeHierarchyFieldsarray
List of sub fields to include for hierarchies. Only supports 'groups'
includeLinksboolean
Whether to include links for each entity in the responsedefault: false
includeMetadataboolean
Whether to include custom data for each entity in the responsedefault: false
includeNestedFieldsarray
List of sub fields to include for different types
includeOwnersboolean
Whether to include ownership information for each entity in the responsedefault: false
includeSlackChannelsboolean
Whether to include Slack channels for each entity in the response
ownersarray
Filter based on owner group names, which correspond to the `x-cortex-owners` field in the Catalog Descriptor. Accepts a comma-delimited list of owner group names
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
querystring
Filter based on a [search query](https://docs.cortex.io/settings/search). This will search across entity properties. If provided, results will be sorted by relevance.default:
typesarray
Filter the response to specific types of entities. By default, this includes services, resources, and domains. Corresponds to the `x-cortex-type` field in the entity descriptor.
listEntityDescriptorsCortex Catalog API - Access and manage your service catalog, teams, domains, and resources5 params

Cortex Catalog API - Access and manage your service catalog, teams, domains, and resources

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
pageinteger
Page number to return, 0 indexed
pageSizeinteger
Number of entities to return per page
typesarray
Filter the response to specific types of entities. By default, this includes services, resources, and domains. Corresponds to the `x-cortex-type` field in the entity descriptor.
yamlboolean
When true, returns the YAML representation of the descriptors
listDependenciesForEntityList all dependencies for an entity including both incoming (who depends on this service) and outgoing (what this service depends on) relationships. Essential for understanding service interactions, planning changes, and assessing blast radius6 params

List all dependencies for an entity including both incoming (who depends on this service) and outgoing (what this service depends on) relationships. Essential for understanding service interactions, planning changes, and assessing blast radius

Parameters* required
callerTagstring
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
includeIncomingboolean
default: false
includeOutgoingboolean
default: true
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
getDependencyGet specific dependency details between two entities including method, path, and metadata. Useful for understanding the nature of the relationship, API contracts, and communication patterns between services5 params

Get specific dependency details between two entities including method, path, and metadata. Useful for understanding the nature of the relationship, API contracts, and communication patterns between services

Parameters* required
calleeTagstring
callerTagstring
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
methodstring
pathstring
getEntityDetailsRetrieve comprehensive details about a specific entity including its metadata, ownership, hierarchies, and relationships. This is the primary method for getting complete information about services, teams, or domains.5 params

Retrieve comprehensive details about a specific entity including its metadata, ownership, hierarchies, and relationships. This is the primary method for getting complete information about services, teams, or domains.

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
hierarchyDepthstring
Depth of the parent / children hierarchy nodes. Can be 'full' or a valid integerdefault: full
includeHierarchyFieldsarray
List of sub fields to include for hierarchies. Only supports 'groups'
includeOwnersboolean
Include ownership information, default is true
tagOrIdstring
Entity identifier - can be a tag or CID
getCustomDataForEntityList all custom data key-value pairs associated with an entity. Retrieve metadata, configuration settings, and custom attributes stored for services, resources, or domains. Supports pagination for entities with large amounts of custom data4 params

List all custom data key-value pairs associated with an entity. Retrieve metadata, configuration settings, and custom attributes stored for services, resources, or domains. Supports pagination for entities with large amounts of custom data

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
tagOrIdstring
Entity identifier - can be a tag or CID
getCustomDataForEntityByKeyRetrieve a specific custom data value by key for an entity. Efficiently access individual metadata attributes, configuration values, or custom properties without fetching all custom data3 params

Retrieve a specific custom data value by key for an entity. Efficiently access individual metadata attributes, configuration values, or custom properties without fetching all custom data

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
keystring
tagOrIdstring
Entity identifier - can be a tag or CID
listCustomEventsForEntityList custom events for an entity with optional filtering by type and time range. Supports pagination and filtering by event type, start time, and end time to retrieve historical event data8 params

List custom events for an entity with optional filtering by type and time range. Supports pagination and filtering by event type, start time, and end time to retrieve historical event data

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
endTimestring
If provided, events with less than or equal to timestamp will be returned (a date-time without a time-zone in the ISO-8601 calendar system)
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
startTimestring
If provided, events with greater than or equal to timestamp will be returned (a date-time without a time-zone in the ISO-8601 calendar system)
tagOrIdstring
Entity identifier - can be a tag or CID
timestampstring
Use 'startTime' instead
typestring
getCustomEventForEntityByUuidRetrieve a specific custom event by its UUID. Returns event details including title, description, timestamp, type, and any custom data associated with the event3 params

Retrieve a specific custom event by its UUID. Returns event details including title, description, timestamp, type, and any custom data associated with the event

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
tagOrIdstring
Entity identifier - can be a tag or CID
uuidstring
getDeploysForEntityList all deployments for a specific catalog entity. Returns deployment history including timestamps, environments, SHAs, and deployment types in paginated format4 params

List all deployments for a specific catalog entity. Returns deployment history including timestamps, environments, SHAs, and deployment types in paginated format

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
tagOrIdstring
Entity identifier - can be a tag or CID
getCurrentOncallForEntityRetrieve the current on-call personnel for an entity in real-time. Shows who is actively responsible for incident response, including primary and secondary on-call, contact information, and rotation schedules2 params

Retrieve the current on-call personnel for an entity in real-time. Shows who is actively responsible for incident response, including primary and secondary on-call, contact information, and rotation schedules

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
tagOrIdstring
Entity identifier - can be a tag or CID
getEntityDescriptorCortex Catalog API - Access and manage your service catalog, teams, domains, and resources3 params

Cortex Catalog API - Access and manage your service catalog, teams, domains, and resources

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
tagOrIdstring
Entity identifier - can be a tag or CID
yamlboolean
When true, returns the YAML representation of the descriptor
listEntityDestinationsForRelationshipTypeList all destinations for a certain relationship type & entity. Use the listRelationshipTypes tool to find the relevant relationshipTypeTag.5 params

List all destinations for a certain relationship type & entity. Use the listRelationshipTypes tool to find the relevant relationshipTypeTag.

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
depthstring
Maximum depth to traverse in the relationship hierarchy. Defaults to 1 (i.e., direct relationships only).
includeArchivedboolean
If true will include relationships that traverse archived entitiesdefault: false
relationshipTypeTagstring
tagOrIdstring
Entity identifier - can be a tag or CID
listEntitySourcesForRelationshipTypeList all sources for a certain relationship type & entity. Use the listRelationshipTypes tool to find the relevant relationshipTypeTag.5 params

List all sources for a certain relationship type & entity. Use the listRelationshipTypes tool to find the relevant relationshipTypeTag.

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
depthstring
Maximum depth to traverse in the relationship hierarchy. Defaults to 1 (i.e., direct relationships only).
includeArchivedboolean
If true will include relationships that traverse archived entitiesdefault: false
relationshipTypeTagstring
tagOrIdstring
Entity identifier - can be a tag or CID
getCustomMetricDataRetrieve custom metric data points for an entity. Returns paginated time-series data for a specific custom metric, with optional filtering by date range to analyze trends and patterns7 params

Retrieve custom metric data points for an entity. Returns paginated time-series data for a specific custom metric, with optional filtering by date range to analyze trends and patterns

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
customMetricKeystring
Key for the custom metric filter
endDatestring
End date for the filter (inclusive)
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
startDatestring
Start date for the filter (inclusive). Default: 6 months
tagOrIdstring
Entity identifier - can be a tag or CID
queryPointInTimeMetricsExecute point-in-time queries for one or more engineering metrics. Returns current metric values for specified time periods, with support for batch queries and optional period-over-period comparisons. Time range (startTime/endTime) cannot exceed 6 months (180 days). PREREQUISI...14 params

Execute point-in-time queries for one or more engineering metrics. Returns current metric values for specified time periods, with support for batch queries and optional period-over-period comparisons. Time range (startTime/endTime) cannot exceed 6 months (180 days). PREREQUISI...

Parameters* required
comparisonvalue
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
endTimestring
End time for the query period
filtersarray
Filters to apply to the data
groupByarray
Fields to group results by
limitinteger
Maximum number of results to return
metricsarray
List of metrics to query with their aggregation functions
nestedGroupByarray
Fields to group nested results by
nestedMetricsarray
Optional nested metrics for advanced queries
nestedTimeAttributestring
Time attribute for nested queries
nextPagestring
Pagination token for next page of results
orderByarray
Sort order for results
startTimestring
Start time for the query period
timeAttributestring
Time attribute to use for queries
listMetricDefinitionsList all available engineering metric definitions. USAGE - Call this endpoint BEFORE querying metrics (queryPointInTimeMetrics): 1. Once at start: Call with view='basic' to discover all available metrics - cache this response 2. Once per metric: Call with view='full' and key=M...3 params

List all available engineering metric definitions. USAGE - Call this endpoint BEFORE querying metrics (queryPointInTimeMetrics): 1. Once at start: Call with view='basic' to discover all available metrics - cache this response 2. Once per metric: Call with view='full' and key=M...

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
keyarray
viewstring
default: basic
listInitiativesList all initiatives in the organization with optional filters for draft and expired initiatives. View active improvement programs, strategic projects, and their current status to understand organizational priorities and track progress5 params

List all initiatives in the organization with optional filters for draft and expired initiatives. View active improvement programs, strategic projects, and their current status to understand organizational priorities and track progress

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
includeDraftsboolean
Whether or not to include draft Initiatives in the responsedefault: false
includeExpiredboolean
Whether or not to include expired Initiatives in the responsedefault: false
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
getInitiativeRetrieve detailed information about a specific initiative including its goals, timeline, affected entities, scorecard targets, and current progress. Essential for understanding initiative scope and tracking achievement of objectives2 params

Retrieve detailed information about a specific initiative including its goals, timeline, affected entities, scorecard targets, and current progress. Essential for understanding initiative scope and tracking achievement of objectives

Parameters* required
cidstring
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
getMyWorkspaceTOOL for retrieving current user's owned resources and work items across the Cortex workspace. FLEXIBLE REQUEST STRUCTURE: The request accepts an object with optional fields for each resource type: - myEntitiesRequest: Fetch entities (services, resources, domains) owned by the...7 params

TOOL for retrieving current user's owned resources and work items across the Cortex workspace. FLEXIBLE REQUEST STRUCTURE: The request accepts an object with optional fields for each resource type: - myEntitiesRequest: Fetch entities (services, resources, domains) owned by the...

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
myEntitiesRequestobject
Request for all entities (services, resources, domains) owned by the user
myOpenPRsRequestobject
Request for user's open pull requests across all Git repositories
myRequestedReviewsRequestobject
Request for pull requests where the user is requested as a reviewer
myScorecardsRequestobject
Request for scorecards associated with the user's entities
myTeamsRequestobject
Request for teams the user belongs to
myWorkItemsRequestobject
Request for work items (Jira, Linear, Azure DevOps issues) assigned to the user
listRelationshipTypesList all available relationship types with pagination. View relationship type configurations to understand what kinds of relationships can be created between entities like services, resources, domains, and teams3 params

List all available relationship types with pagination. View relationship type configurations to understand what kinds of relationships can be created between entities like services, resources, domains, and teams

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
getRelationshipTypeDetailsGet complete details of a specific relationship type including its configuration, rules, source/destination filters, and inheritance settings. Essential for understanding how entities can be connected and what validation rules apply2 params

Get complete details of a specific relationship type including its configuration, rules, source/destination filters, and inheritance settings. Essential for understanding how entities can be connected and what validation rules apply

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
relationshipTypeTagstring
listEntityRelationshipsList all entity relationships/full graph for a specific relationship type across the entire organization. Returns paginated results showing all source-destination pairs, useful for understanding the complete relationship graph and finding all connections of a particular type4 params

List all entity relationships/full graph for a specific relationship type across the entire organization. Returns paginated results showing all source-destination pairs, useful for understanding the complete relationship graph and finding all connections of a particular type

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
relationshipTypeTagstring
listScorecardsList all scorecards in the organization with optional filtering. View scorecard configurations to understand quality standards, compliance requirements, and maturity models. Supports filtering by groups, entities, and teams to find relevant scorecards7 params

List all scorecards in the organization with optional filtering. View scorecard configurations to understand quality standards, compliance requirements, and maturity models. Supports filtering by groups, entities, and teams to find relevant scorecards

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
entitiesarray
Filter based on entity (either tags or CIDs). Accepts a comma-delimited list of entity tag or CIDs, please use only one type of identifier
groupsarray
Filter based on groups, which correspond to the `x-cortex-groups` field in the Catalog Descriptor. Accepts a comma-delimited list of groups
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
showDraftsboolean
teamsarray
Filter based on team (either tags or CIDs). Accepts a comma-delimited list of team tag or CIDs, please use only one type of identifier
getScorecardGet complete details of a scorecard including its configuration, rules, levels, weights, exemption settings, and evaluation criteria. Essential for understanding how services are evaluated and what standards they must meet2 params

Get complete details of a scorecard including its configuration, rules, levels, weights, exemption settings, and evaluation criteria. Essential for understanding how services are evaluated and what standards they must meet

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
tagstring
Unique tag for the Scorecard
getScorecardNextStepsForEntityGet actionable next steps for an entity to improve its scorecard performance. Shows which rules need to be satisfied to reach the next maturity level, helping teams prioritize improvements and track progress toward compliance goals3 params

Get actionable next steps for an entity to improve its scorecard performance. Shows which rules need to be satisfied to reach the next maturity level, helping teams prioritize improvements and track progress toward compliance goals

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
entityTagstring
The entity tag (`x-cortex-tag`) that identifies the entity.
tagstring
Unique tag for the Scorecard
listScorecardScoresRetrieve scores for all entities evaluated by a specific scorecard. Returns paginated results showing how each service, resource, or domain performs against the scorecard's rules, including individual rule scores and overall scorecard scores5 params

Retrieve scores for all entities evaluated by a specific scorecard. Returns paginated results showing how each service, resource, or domain performs against the scorecard's rules, including individual rule scores and overall scorecard scores

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
entityTagstring
Entity tag (x-cortex-tag)
pageinteger
Page number to return, 0-indexed. Default 0.default: 0
pageSizeinteger
Number of results to return per page, between 1 and 1000. Default 250.default: 250
tagstring
Unique tag for the Scorecard
getTeamDetailsRetrieve detailed information about a specific team by its tag or ID. Returns complete team data including members, slack channels, metadata, and whether it's backed by an identity provider group2 params

Retrieve detailed information about a specific team by its tag or ID. Returns complete team data including members, slack channels, metadata, and whether it's backed by an identity provider group

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
tagOrIdstring
Entity identifier - can be a tag or CID
query_docsQuery the Cortex knowledge base for answers. Args: query: The question to ask Cortex docs Returns: Response from Cortex including answer and metadata2 params

Query the Cortex knowledge base for answers. Args: query: The question to ask Cortex docs Returns: Response from Cortex including answer and metadata

Parameters* required
contextstring
Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader pla...
querystring
get_more_toolsCheck for additional tools whenever your task might benefit from specialized capabilities - even if existing tools could work as a fallback.1 params

Check for additional tools whenever your task might benefit from specialized capabilities - even if existing tools could work as a fallback.

Parameters* required
contextvalue
default:

Cortex

CI Release npm crates.io License: AGPL-3.0-only

Self-hosted homelab log intelligence over MCP, CLI, and REST with SQLite/FTS.

It collects logs and operational evidence, stores them in SQLite with FTS5 search, and exposes one shared intelligence layer through CLI, REST, MCP, and a bundled browser workspace.

Cortex began as a syslog receiver. It now covers network logs, Docker, managed files, OpenTelemetry logs, host heartbeats, fleet inventory, shell and agent activity, and Claude, Codex, and Gemini transcripts. It correlates those sources into timelines, incidents, and an evidence-backed topology graph without making the graph a second source of truth.

At a glance

AreaWhat Cortex provides
IngestUDP/TCP syslog, OTLP/HTTP logs, Docker logs and events, managed file tails, host heartbeats, AI transcripts, shell history, agent command records, and fleet inventory
StorageSQLite in WAL mode, FTS5 full-text search, bounded metadata, retention, storage budgets, maintenance jobs, checkpoints, and 50 sequential schema migrations
InvestigationSearch, filtering, context, timelines, patterns, anomaly comparison, cross-source correlation, recurring error signatures, deterministic incident bundles, and graph explanations
Fleet intelligenceSSH and API inventory collectors, host state, service topology, container and route relationships, redacted evidence, and rebuildable graph projections
AI operationsClaude, Codex, and Gemini session indexing; skill, MCP, and hook event extraction; incident clustering; and guarded local LLM assessments
InterfacesNative CLI, one action-dispatched MCP tool, authenticated REST APIs, MCP prompts and resources, an MCP Apps search widget, and a bundled investigation workspace
OperationsSetup and repair, diagnostics, Compose control, backup, integrity checks, WAL checkpoints, vacuum, update workflows, agents, and health endpoints

[!IMPORTANT] Cortex is designed for a trusted homelab or small private fleet. It is not a clustered log warehouse, a general-purpose SIEM, or a safe place to expose unauthenticated administrative surfaces to the public internet.

Contents

  • Quick start
  • How Cortex is built
  • Ingestion
  • Investigation and intelligence
  • Fleet inventory and graph
  • AI session intelligence
  • Alerts and notifications
  • Interfaces
  • Configuration
  • Authentication and trust boundaries
  • Storage and maintenance
  • Deployment and distribution
  • Operations
  • Development and verification
  • Documentation
  • Current boundaries
  • License

Quick start

Install the CLI

The npm launcher is the fastest path for local CLI and stdio MCP use:

npx -y @dinglebear/cortex --help
npx -y @dinglebear/cortex mcp

Install it permanently with:

npm install --global @dinglebear/cortex
cortex --version

The launcher requires Node.js 18 or newer. It downloads a checksum-verified native release binary and currently supports Linux x64 and Windows x64.

Build from source with the current stable Rust toolchain:

git clone https://github.com/dinglebear-ai/cortex.git
cd cortex
mise install       # optional, but pins the repository tools
just build
./.cache/cargo/debug/cortex --version

Start a local server

The full daemon starts UDP and TCP syslog receivers plus the shared HTTP server. Use separate MCP and REST tokens:

mkdir -p "$HOME/.cortex/data"
export CORTEX_DB_PATH="$HOME/.cortex/data/cortex.db"
export CORTEX_TOKEN="$(openssl rand -hex 32)"
export CORTEX_API_TOKEN="$(openssl rand -hex 32)"

cortex serve mcp

Defaults:

  • Syslog: 0.0.0.0:1514 over UDP and TCP
  • HTTP: 127.0.0.1:3100
  • MCP: http://127.0.0.1:3100/mcp
  • REST: http://127.0.0.1:3100/api/*
  • Investigation workspace: http://127.0.0.1:3100/app

Verify it from another terminal:

curl -fsS http://127.0.0.1:3100/health
logger -n 127.0.0.1 -P 1514 --tcp "cortex quickstart from $(hostname)"

export CORTEX_API_TOKEN="the-same-api-token"
cortex tail --limit 10

For a managed local deployment, cortex setup repair creates or repairs the Cortex home, Compose assets, data paths, and missing 64-character MCP and REST tokens without replacing existing token values.

Connect an MCP client

Query-only stdio mode reads the configured local database and starts no network listeners:

{
  "mcpServers": {
    "cortex": {
      "command": "npx",
      "args": ["-y", "cortex-rmcp", "mcp"],
      "env": {
        "CORTEX_DB_PATH": "/absolute/path/to/cortex.db"
      }
    }
  }
}

Streamable HTTP mode connects to the persistent daemon:

{
  "mcpServers": {
    "cortex": {
      "url": "http://127.0.0.1:3100/mcp",
      "headers": {
        "Authorization": "Bearer your-cortex-token"
      }
    }
  }
}

A useful first call is:

{"action":"status"}

Then narrow the investigation with tail, errors, search, timeline, or context before using broader analysis operations.

How Cortex is built

Cortex is one Rust binary with multiple operating modes. The same application and service layer backs the CLI, REST handlers, and MCP handlers, so validation, limits, identity resolution, redaction, and business rules do not belong to one transport alone.

                         INGESTION

  Syslog UDP/TCP       OTLP logs          Docker agent / pull
  Managed file tails  Heartbeats         Claude / Codex / Gemini
  Shell history       Agent commands     Fleet inventory
          \               |                    /
           \              |                   /
            +---- bounded parsing and enrichment ----+
                              |
                    scrub, normalize, batch
                              |
                    SQLite WAL + FTS5
                              |
             +----------------+----------------+
             |                                 |
    authoritative records             derived accelerators
    logs, heartbeats,                 rollups, signatures,
    inventory, sessions              graph projections
             |                                 |
             +----------------+----------------+
                              |
                     shared service layer
                              |
          CLI       REST       MCP       Web workspace

The daemon supervises its receivers and background services with cooperative cancellation. Shutdown drains HTTP requests, gives maintenance tasks 10 seconds to finish before abort-and-join, gives ingest 5 seconds to flush, and then attempts a WAL checkpoint. Already-running blocking SQLite calls cannot be cancelled by Tokio.

Background services include:

  • Retention and storage-budget enforcement
  • WAL and FTS maintenance
  • Docker ingest supervision
  • File-tail supervision
  • Error-signature scanning
  • Notification evaluation, dispatch, and digest scheduling
  • Inventory refresh and backfill
  • Graph projection refresh
  • AI-session and timeline rollups
  • Database optimization and maintenance jobs

Heavy analytical reads and maintenance jobs have separate concurrency controls so one expensive investigation cannot starve the ingest path.

Ingestion

All log-like sources are normalized into the same durable log model, enriched where safe, scrubbed where configured, and written through bounded batch paths.

Syslog over UDP and TCP

Cortex listens on the same configurable port for UDP and TCP syslog. It parses common RFC 3164 and RFC 5424 shapes, preserves the raw frame, records sender identity, normalizes severity and facility, and enriches known application formats.

Relevant defaults:

  • Bind: 0.0.0.0:1514
  • Maximum message: 8 KiB
  • Maximum concurrent TCP connections: 512
  • TCP idle timeout: 300 seconds
  • Writer batch: 100 records or 500 ms
  • Write queue capacity: 10,000 records

Syslog has no application-layer authentication. Restrict senders with network controls and CORTEX_ALLOWED_SOURCE_CIDRS when the listener is reachable beyond a trusted network.

Built-in enrichment recognizes useful signals from AdGuard, Authelia, Docker lifecycle events, fail2ban, Linux kernel and OOM events, SWAG, reverse-proxy logs, and host-local Cortex Docker agent metadata. Source gates can restrict enrichment that would otherwise trust a marker inside an unauthenticated syslog body.

OpenTelemetry logs

Cortex accepts OTLP/HTTP log export requests at POST /v1/logs on the shared HTTP listener. Requests are bounded to 4 MiB and flow into the normal Cortex writer.

Current OTLP scope is intentionally narrow:

  • Logs over HTTP are supported.
  • OTLP traces are not accepted.
  • OTLP metrics are not accepted.
  • OTLP/gRPC is not implemented.

POST /v1/logs authenticates with CORTEX_TOKEN — the same static MCP bearer token that guards POST /mcp, read from the managed ~/.cortex/.env on a deployed host. It is not CORTEX_API_TOKEN (REST /api/*) and not CORTEX_API_ADMIN_TOKEN. Loopback and trusted-gateway policies skip the check. An OAuth-only deployment with no static token denies OTLP outright, because machine exporters have no OAuth flow — so a non-loopback OAuth-only /v1/logs exposure is rejected at startup unless CORTEX_TOKEN is set.

Docker logs and events

Cortex supports two Docker collection paths:

  1. Host-local agent, the preferred multi-host path. The host-local cortex agent reads the local Docker socket, converts logs and lifecycle events into bounded records, and forwards them to the server without changing Docker's daemon logging driver.
  2. Central pull compatibility mode, an optional server-side collector for explicitly configured Docker Engine or docker-socket-proxy HTTP endpoints. It records per-container checkpoints and reconnects with bounded exponential backoff.

Central pull is disabled by default. The CORTEX_DOCKER_HOSTS shorthand expands hosts into insecure http://host:2375 endpoints and should only be used on a tightly controlled private network. A hosts file supports explicit base URLs and safer endpoint configuration.

Managed file tails

Managed file-tail sources are persisted in a registry and supervised by the daemon. Add, remove, list, and inspect sources through the CLI, REST, or the file_tails MCP admin action.

The path policy rejects unsafe targets, including paths outside configured roots, symlink escapes, non-regular files, and sensitive mounts. Container deployments expose an explicit read-only file-tail root rather than the entire host filesystem.

Host heartbeats

The host agent can post bounded JSON snapshots to POST /v1/heartbeats. Heartbeats include host state such as load, memory, disks, networking, processes, and container summaries. They power host_state, fleet_state, and correlate_state.

Heartbeat request bodies are capped at 256 KiB. Heartbeat data has short operational retention separate from the main log-retention policy.

AI transcripts

Cortex indexes local and forwarded transcript data from:

  • Claude Code projects under ~/.claude/projects
  • Codex sessions and worktrees under ~/.codex/sessions and ~/.codex/worktrees
  • Gemini chat data under ~/.gemini/tmp

The scanner supports incremental checkpoints, parse-error records, bounded chunks, broad-path rejection, and safe recovery from changed files. It extracts normalized transcript rows plus dedicated skill, MCP tool-call, and hook events.

A satellite agent can send already-parsed records to POST /v1/ai-transcripts, which prevents transcript collection from depending on the database living on the same host as the AI client.

Shell and agent activity

Satellite agents can forward additional operational evidence to the shared server:

  • POST /v1/agent-commands for deduplicated agent command-spool records
  • POST /v1/shell-history for parsed Bash, Zsh extended-history, and Atuin records

These records use the same storage and correlation model as the rest of Cortex, which makes an agent change or shell command visible beside the service failure that followed it.

Fleet inventory

Inventory collection builds a redacted fleet snapshot from local files, SSH probes, Docker endpoints, and optional service APIs, then projects safe relationships into the investigation graph.

Investigation and intelligence

Cortex exposes bounded workflows rather than a raw SQL console.

Search and context

  • FTS5 full-text search with host, app, severity, source, project, session, and time filters
  • Structured filter-only retrieval for indexed fields
  • Recent tails and single-row retrieval with raw-frame evidence
  • Surrounding context around a log ID or timestamp
  • Host, app, and source-IP inventories
  • Clock-skew measurement using event and receive timestamps

Time and volume analysis

  • Bucketed timelines
  • Ingest-rate and queue-pressure state
  • Near-duplicate message pattern clustering
  • Recent-versus-baseline anomaly detection
  • Side-by-side time-range comparison
  • Silent-host and silent-stream detection
  • Database, storage, and runtime statistics

Correlation

  • Cross-host correlation around a timestamp
  • AI-session anchor correlation against infrastructure logs
  • Topic resolution through the entity graph before timeline construction
  • Host-state correlation across logs, heartbeats, and inventory
  • Historical incident similarity using FTS5
  • Deterministic incident context bundles with bounded evidence

Recurring errors

An optional background scanner groups repeating error signatures into durable records. Operators can inspect unaddressed signatures, acknowledge them, revoke acknowledgements, and correlate a signature with logs and graph evidence.

Error detection is disabled by default. When enabled, it scans bounded batches, records lower-severity recurrences without paging, and can notify only above a configured severity floor.

Fleet inventory and graph

Inventory collectors

The native inventory subsystem can collect and normalize evidence from:

  • Local and remote Compose, reverse-proxy, and AdGuard Home configuration
  • Local process, storage, project, and raw configuration inventories
  • SSH sessions to remote fleet hosts
  • Local and remote Docker endpoints
  • Tailscale
  • UniFi
  • Unraid
  • Media-stack services and related APIs

SSH collection uses strict host-key verification, bounded concurrency, timeouts, and retry backoff. Sensitive fields are redacted before persistence.

The cache lives under ~/.cortex/inventory by default and includes:

  • normalized/homelab.json: the typed normalized fleet snapshot
  • collection-state.json: collector health, timing, and warning state
  • raw/<run-id>/...: raw-but-redacted supporting artifacts

The map action reads the normalized cache. It does not trigger a collection run and does not return raw config bodies or credential-bearing URLs.

Derived investigation graph

The graph connects canonical entities such as:

  • Hosts and source identities
  • Logical services and concrete service instances
  • Applications and containers
  • Domains, routes, and endpoints
  • AI projects and sessions
  • Error signatures and operational findings

Relationships carry confidence, trust, reason codes, timestamps, and bounded evidence references. The graph supports entity resolution, neighborhoods, topology questions, evidence lookup, and explanation paths.

The graph is a rebuildable projection. Raw logs, heartbeats, inventory records, error signatures, and AI session data remain authoritative. Projection rebuilds use staging tables and a short serialized swap, record watermarks and metrics, and preserve explicit degraded state when refresh fails.

AI session intelligence

Cortex treats AI transcripts as operational evidence, not merely chat archives.

Deterministic session analysis

The shared service layer can:

  • List and search sessions by project
  • Measure activity in five-hour usage blocks
  • Summarize project context
  • List observed tools and projects
  • Detect frustration or abuse signals
  • Group those signals into scored incidents
  • Correlate AI activity with non-AI infrastructure logs
  • Extract skill invocations
  • Extract MCP server and tool-call events
  • Extract hook configuration and runtime events
  • Build skill-first, MCP-first, and hook-first investigation bundles

The deterministic query and incident workflows are available through CLI, REST, and MCP.

Guarded local assessments

LLM-backed assessments are deliberately local-only. They run through cortex assess and are not exposed as MCP actions or REST routes because they spawn a local Gemini subprocess.

The shared LLM runner enforces:

  • A global kill switch
  • Global and per-action concurrency limits
  • Per-minute and per-hour rate limits
  • Per-action circuit breakers and cooldowns
  • Invocation timeouts
  • Prompt and output byte caps
  • An explicit background-enrichment gate, disabled by default
  • Durable audit records for successes, failures, timeouts, and policy denials

Default guard values allow one concurrent invocation, three per minute and thirty per hour per action, a 120-second timeout, a 1 MiB prompt cap, and a 256 KiB output cap.

Prompt scrubbing is enabled by default. Skill, MCP, and hook event extraction happens before scrubbed transcript text is persisted, so structured operational signals are retained without requiring raw prompt storage.

Alerts and notifications

Notifications are optional and disabled by default. When enabled, Cortex uses Apprise as the delivery bridge and a durable SQLite outbox for retry, deduplication, and dead-letter handling.

Built-in evaluators cover:

  • OOM kills
  • Containers exiting nonzero
  • fail2ban bans
  • Authelia MFA failures
  • Disk-fill and storage guardrail pressure
  • Ingest queue pressure
  • Complete ingest silence
  • Heartbeat silence
  • Silence from previously active continuous streams

The notification subsystem includes:

  • Configurable evaluator cadence
  • Per-rule toggles and thresholds
  • Deduplication windows
  • Outage-scoped silence keys
  • Bounded retry with dead-letter state
  • Recent-firing history
  • Test notifications
  • A scheduled daily digest

By default, continuous stream-silence tracking covers UDP/TCP syslog, agent Docker, Docker stream and event records, and managed file tails. Sporadic sources such as transcripts and shell history are intentionally excluded.

Interfaces

CLI

Run cortex --help and command-specific --help for the generated command tree.

GroupPurpose
search, filter, tailLog retrieval
hosts, apps, entity, graphDiscovery and topology
analysis, correlate, state, stats, timelineInvestigation and analytics
sessions, assessAI-session queries and local guarded assessments
alertsError signatures, acknowledgements, and notification history
ingest, heartbeatCollectors, agents, file tails, inventory, and heartbeats
serve, mcpFull daemon and query-only stdio MCP modes
doctor, status, db, composeDiagnostics and maintenance
setup, update, config, completionsLifecycle and operator tooling

Examples:

cortex search "oom killer" --host devhost --since 1h
cortex filter --severity err --since 6h
cortex timeline --since 24h
cortex sessions search "migration failure"
cortex graph explain --help
cortex alerts errors list
cortex ingest inventory refresh --json
cortex ingest filetail list
cortex status
cortex doctor

The CLI supports direct/local operation and HTTP operation. REST-backed mode is the normal remote path and uses CORTEX_URL plus CORTEX_API_TOKEN.

MCP

Cortex exposes one MCP tool named cortex. Its required action field selects an action from a single authoritative Rust registry. The mechanically generated current count is published in the live coverage inventory.

The current scope split is:

  • 50 read actions requiring cortex:read
  • 5 admin actions requiring cortex:admin: ack_error, unack_error, file_tails, notifications_test, and llm_invocations
  • 1 informational action, help, which requires an authenticated context when authentication is mounted but no read/admin scope
Complete MCP action catalog
DomainActions
Log retrievalsearch, filter, tail, errors, get, context
Discovery and healthhosts, apps, source_ips, status, stats, ingest_rate, silent_hosts, clock_skew
Analytics and correlationtimeline, patterns, anomalies, compare, correlate, topic_correlate, similar_incidents, incident_context
Fleet and topologymap, host_state, fleet_state, correlate_state, graph, compose_status, compose_doctor
AI sessionssessions, search_sessions, abuse, abuse_incidents, abuse_investigate, ai_correlate, usage_blocks, project_context, list_ai_tools, list_ai_projects
AI operational eventsskill_events, skill_incidents, skill_investigate, mcp_events, mcp_incidents, mcp_investigate, hook_events, hook_incidents, hook_investigate
Errors and administrationunaddressed_errors, ack_error, unack_error, notifications_recent, notifications_test, file_tails, llm_invocations
Referencehelp

The runtime schema contains per-action flags, defaults, examples, relative cost metadata, and validation. See docs/mcp/SCHEMA.md for the parameter reference.

MCP prompts

Cortex ships twelve reusable infrastructure prompts:

  • infra.incident-triage
  • infra.host-health
  • infra.service-outage
  • infra.security-auth-review
  • infra.noise-reduction
  • infra.agent-change-correlation
  • infra.docker-container-regression
  • infra.network-dns-failure
  • infra.storage-pressure
  • infra.auth-bruteforce
  • infra.syslog-forwarding-gap
  • infra.after-deploy-check

See docs/mcp/PROMPTS.md for arguments and output expectations.

MCP resources and UI

The MCP server exposes:

URIPurpose
cortex://schema/mcp-toolLive JSON schema for the action-dispatched tool
cortex://schema/prompt-outputSchema for structured incident-style prompt output
ui://cortex/query-widgetSelf-contained MCP Apps search widget

The query widget is progressive enhancement. UI-capable MCP hosts can render it; ordinary MCP clients continue receiving the normal text and structured JSON result.

REST

Authenticated JSON routes live under /api/* on the shared HTTP listener. They cover the same major query domains as MCP and add operator workflows for session checkpoints, parse errors, database integrity jobs, backup, checkpoint, and vacuum.

The versioned investigation API lives under /api/v1/* and provides Ask Cortex plus graph entity, neighborhood, explanation, and evidence endpoints for the bundled browser workspace.

REST requires CORTEX_API_TOKEN. Privileged maintenance and file-tail workflows can also require CORTEX_API_ADMIN_TOKEN.

See docs/api.md for the route and response reference.

Browser investigation workspace

The daemon serves a bundled workspace at /app and /app/investigate. It includes:

  • Runtime and schema status
  • Fleet and ingest summaries
  • Ask Cortex investigation requests
  • An interactive Cytoscape graph canvas
  • Evidence inspection
  • A recent-log timeline

The app is embedded into the Rust binary, has no external runtime dependency, uses a restrictive Content Security Policy, and keeps the entered REST bearer token in memory only. The current UI identifies itself as an investigation preview rather than a full general-purpose dashboard.

Claude Code plugin

.claude-plugin/plugin.json packages Cortex as a Claude Code plugin. It declares exactly three surfaces plus configuration:

KeyPoints at
mcpServersplugins/cortex/mcp.json — HTTP transport to ${user_config.server_url}/mcp with a Bearer ${user_config.api_token} header
skillsplugins/cortex/skills/ — twelve skills
userConfigServer-vs-client mode, server_url, api_token, auth mode and OAuth fields, syslog/MCP bind host and port, retention and storage budgets, Docker ingest, and fleet hosts

The twelve skills are cortex, frustration-assessment, hook-friction-assessment, incidents, logs, mcp-friction-assessment, report, searching-sessions, skill-improvement-assessment, topology, troubleshoot, and version-check.

The plugin registers no Claude Code lifecycle hooks — there is no hooks key and no hooks.json. Setup is explicit: run cortex setup pluginhook (or the plugins/cortex/scripts/plugin-setup.sh adapter) after installing, upgrading, or reconfiguring. just validate-plugin and scripts/validate-marketplace.sh assert the hooks key stays absent, and cargo xtask check-version-sync asserts the manifest carries no top-level version.

See docs/plugin/HOOKS.md for the setup lifecycle and docs/plugin/PLUGINS.md for the manifest reference.

Health endpoints

  • GET /health: minimal unauthenticated liveness response for containers and proxies
  • GET /health/full: authenticated detailed health and ingest observability

Configuration

Cortex loads configuration in this order, with later layers winning:

  1. Built-in defaults
  2. A partial config.toml in the current working directory
  3. The managed $CORTEX_HOME/.env file, normally ~/.cortex/.env
  4. Process environment variables

Important defaults

SettingDefault
Syslog bind0.0.0.0:1514 UDP and TCP
HTTP bind127.0.0.1:3100
Database path/data/cortex.db unless setup or environment overrides it
SQLite pool size8 connections
SQLite page cache budget128 MiB total
SQLite mmap target256 MiB
Heavy-read concurrency1
WAL checkpoint threshold256 MiB
Log retention90 days
Logical database limit1,024 MiB
Recovery threshold900 MiB, auto-adjusted when the limit is raised substantially
Cleanup cadence60 seconds
NotificationsDisabled
Recurring-error scannerDisabled
Central Docker pullDisabled
Prompt scrubbingEnabled
Background LLM enrichmentDisabled

Useful environment variables include:

VariablePurpose
CORTEX_HOMEManaged configuration and operational home
CORTEX_DB_PATHSQLite database path
CORTEX_RECEIVER_HOST, CORTEX_RECEIVER_PORTSyslog listener
CORTEX_ALLOWED_SOURCE_CIDRSOptional syslog sender allowlist
CORTEX_HOST, CORTEX_PORTShared HTTP listener
CORTEX_TOKENStatic MCP, OTLP, heartbeat, and forwarding bearer token
CORTEX_API_TOKENREST bearer token
CORTEX_API_ADMIN_TOKENAdditional REST admin token where required
CORTEX_AUTH_MODEStatic-token or OAuth authentication mode
CORTEX_PUBLIC_URLPublic URL used for OAuth and exposure validation
CORTEX_ALLOWED_HOSTS, CORTEX_ALLOWED_ORIGINSHost-header and CORS policy
CORTEX_RETENTION_DAYSLog retention
CORTEX_MAX_DB_SIZE_MBLogical database storage budget
CORTEX_MIN_FREE_DISK_MBOptional external free-space write guard
CORTEX_FILE_TAIL_ALLOWED_ROOTSManaged file-tail root allowlist
CORTEX_DOCKER_INGEST_ENABLEDEnable central Docker pull compatibility mode
CORTEX_SCRUB_PROMPTSBest-effort AI prompt credential scrubbing
CORTEX_NOTIFICATIONS_ENABLEDEnable notification services
CORTEX_LLM_ENABLEDGlobal local-assessment kill switch
RUST_LOGTracing filter

See docs/CONFIG.md for the complete reference and validation rules.

Authentication and trust boundaries

Cortex intentionally separates transport credentials and capabilities.

MCP

  • CORTEX_TOKEN authenticates static-token HTTP MCP calls.
  • Static-token callers receive cortex:read by default.
  • Set CORTEX_STATIC_TOKEN_ADMIN=true only when the token should also receive cortex:admin.
  • OAuth mode supports explicit read and admin scopes through the shared authentication layer.
  • Non-loopback unauthenticated binds are rejected unless an explicit trusted-gateway mode is configured.

REST

  • CORTEX_API_TOKEN is separate from CORTEX_TOKEN.
  • REST refuses to mount without an API token.
  • Sensitive maintenance and file-tail operations can require CORTEX_API_ADMIN_TOKEN in addition to the normal REST bearer token.

Ingest endpoints

  • Syslog itself is unauthenticated. Use CIDR and network controls.
  • OTLP logs, heartbeats, AI transcripts, shell history, and agent-command forwarding use the Cortex bearer-token policy when configured.
  • Unauthenticated forwarding endpoints are loopback-only unless the operator explicitly establishes another trusted boundary.

Data handling

  • AI prompt scrubbing is enabled by default.
  • Inventory is redacted before it reaches the normalized cache.
  • MCP and REST return bounded evidence instead of raw credential-bearing config artifacts.
  • File tails are constrained to configured roots and reject path escapes.
  • Docker endpoints and SSH keys are treated as privileged infrastructure access.
  • Container examples mount a dedicated least-privilege SSH directory rather than a user's complete ~/.ssh.

Read docs/SECURITY.md, docs/GUARDRAILS.md, and docs/OAUTH.md before exposing Cortex beyond loopback or a trusted gateway.

Storage and maintenance

SQLite model

Cortex uses SQLite with:

  • WAL mode
  • A bounded r2d2 connection pool
  • FTS5 external-content indexing for log messages
  • Covering and composite indexes for common filters and timelines
  • Transactional batch writes
  • Durable source checkpoints and parse errors
  • Maintenance job tracking
  • Online backup support
  • Integrity checks, checkpoints, and vacuum workflows

The current schema history contains 50 sequential migrations. CI derives this denominator from KNOWN_SCHEMA_VERSION and the migration registry.

Authoritative and derived data

Authoritative records include:

  • Normalized logs and raw frames
  • Hosts and source identities
  • Transcript source, checkpoint, import, and parse-error records
  • Heartbeats and component snapshots
  • Inventory snapshots and collector state
  • Error signatures and acknowledgement events
  • Skill, MCP, and hook events
  • Notification outbox and firing history
  • LLM invocation audit records

Derived accelerators include:

  • AI session rollups
  • Hourly timeline rollups
  • Inventory statistics
  • Stream-last-seen state
  • Entity graph tables and evidence relationships

Derived data can be refreshed or rebuilt from authoritative evidence.

Storage guardrails

The daemon enforces retention and a logical database budget in chunks. It can enter a write-block state before uncontrolled growth damages the host, then resume after recovery thresholds are met. An optional minimum-free-disk guard protects against pressure caused by data outside the Cortex database without deleting Cortex data merely because another application filled the filesystem.

Operational commands:

cortex db status
cortex db integrity
cortex db checkpoint
cortex db backup --help
cortex db vacuum --help

Maintenance operations, including synchronous and background integrity checks, share one process-wide single-flight gate and are separately limited from heavy read queries. Concurrent attempts return a retryable busy response.

Deployment and distribution

Current identities

ArtifactCurrent identity
Canonical source repositorydinglebear-ai/cortex
Native binary and CLIcortex
npm launcher@dinglebear/cortex
MCP Registry server nameai.dinglebear/cortex
Published OCI imageghcr.io/dinglebear-ai/cortex:v<version>

The source repository and its published artifacts both live under the dinglebear-ai organization. The legacy jmagar namespace is retired: scripts/check-public-identity.sh fails the build on any tracked file that reintroduces it, and the release workflow derives the MCP Registry OCI identifier from the same REGISTRY/IMAGE_NAME it pushes to, so the two cannot drift apart again.

Container images published before the move remain readable under the legacy namespace for older pinned deployments, but nothing new is pushed there.

Native and npm

  • The repository ships Linux x86_64 and Windows x86_64 release installers.
  • The npm launcher supports linux/x64 and win32/x64 and verifies release checksums.
  • Source builds use Rust edition 2024 and the current stable toolchain in CI.

Docker Compose

The repository includes:

  • docker-compose.yml for a local build from the checkout
  • docker-compose.prod.yml for the published image
  • config/Dockerfile for a non-root Debian runtime image

Manual Compose deployment expects an external Docker network named cortex unless DOCKER_NETWORK overrides it:

docker network inspect cortex >/dev/null 2>&1 || docker network create cortex
cp .env.example .env
bash scripts/prepare-compose-dirs.sh
docker compose up -d
curl -fsS http://127.0.0.1:3100/health

The preflight resolves the /backups bind with Docker Compose's own parser and creates the default or CORTEX_BACKUP_DIR override at mode 0700. Compose is configured not to create this host path implicitly, preventing root-owned or overly permissive backup directories.

The Compose files:

  • Publish syslog on UDP/TCP 1514
  • Publish HTTP to host loopback by default
  • Persist the database in a stable named volume or configured bind mount
  • Run as a non-root UID/GID
  • Mount inventory SSH credentials and workspace data read-only
  • Mount a dedicated file-tail root read-only
  • Use a 2 GiB default memory limit, configurable per host
  • Include a health check and bounded container logs

For managed installation and repair:

cortex setup check
cortex setup repair

Host agents

Cortex includes setup and runtime support for satellite collection, including:

  • Heartbeat agents
  • Docker stream agents
  • AI-session watch services and timers
  • Shell-history forwarding
  • Agent-command forwarding
  • Completion and debug wrappers

Use cortex setup --help, cortex ingest --help, and cortex heartbeat --help for the exact platform-specific command tree.

Operations

Common operator commands:

# Health and diagnostics
cortex status
cortex doctor
cortex doctor binary

# Managed setup
cortex setup check
cortex setup repair

# Database operations
cortex db status
cortex db integrity
cortex db checkpoint
cortex db backup --help
cortex db vacuum --help

# Compose lifecycle
cortex compose status
cortex compose doctor
cortex compose pull
cortex compose up
cortex compose restart
cortex compose logs

# Collection and inventory
cortex ingest inventory status --json
cortex ingest inventory refresh --json
cortex ingest filetail list
cortex sessions doctor

# Updates and configuration
cortex update --help
cortex config list
cortex completions zsh

The daemon exposes minimal and full health responses, records database maintenance jobs, reports projection and collector degradation, and surfaces ingest queue and write-block state through CLI, REST, and MCP.

Development and verification

Tooling

The repository uses:

  • Rust edition 2024
  • mise for pinned development tools
  • just for common workflows
  • cargo-nextest for the hermetic Rust suite
  • cargo-llvm-cov for coverage
  • cargo-deny for dependency policy
  • Lefthook and cargo xtask for local release and pre-push checks
  • A custom soldr-backed Rust compiler wrapper for fast local and CI builds

Common commands

mise install
just dev
just build
just check
just lint
just fmt
just test
just test-doc
just coverage
just coverage-html
just test-live
just validate-plugin
cargo xtask pre-push

just test-live (also just live-smoke) is the canonical fail-closed pull-request subset. It exercises real HTTP JSON-RPC, UDP and TCP syslog ingest, CLI/REST behavior, browser routes, and managed file-tail behavior in a run-owned topology. Run just live-mcp for every registered MCP action; the scheduled aggregate combines all authoritative owner profiles. Specialist profiles are documented in the live qualification guide. Docker collection has separate agent-deployment tests and a mocked Docker HTTP fixture for central pull.

CI gates include:

  • Formatting
  • Clippy with warnings denied
  • Nextest and doctests
  • Version and distribution identity synchronization
  • MCP integration
  • npm launcher checks
  • Secret scanning
  • cargo-deny
  • Coverage generation
  • Repository module-size policy

See tests/TEST_COVERAGE.md and docs/RELEASE.md for the split between hermetic CI and live-fleet verification.

Documentation

The code-owned registries and runtime schemas are authoritative for command names, actions, routes, scopes, defaults, and validation. Human documentation explains how to operate those surfaces.

DocumentPurpose
docs/README.mdDocumentation index and authority map
docs/SETUP.mdInstallation and deployment walkthrough
docs/CONFIG.mdComplete configuration reference
docs/CLI.mdCLI reference
docs/api.mdREST API reference
docs/architecture.mdRuntime and data-flow architecture
docs/mcp/SCHEMA.mdMCP action and parameter schema
docs/mcp/PROMPTS.mdPrompt catalog
docs/SECURITY.mdConsolidated trust model
docs/OAUTH.mdOAuth configuration
docs/INVENTORY.mdComponent and surface inventory
docs/RELEASE.mdRelease and verification gates
CHANGELOG.mdRelease history

Design plans, runbooks, and session logs under docs/plans, docs/runbooks, and docs/sessions are valuable engineering history, but they are not the source of truth for the current public interface.

Current boundaries

Cortex is intentionally opinionated:

  • It is a single-node SQLite service, not a distributed ingestion cluster.
  • OTLP support is logs-over-HTTP only. Traces, metrics, and OTLP/gRPC are outside the current implementation.
  • Syslog does not authenticate senders. Network and CIDR controls matter.
  • The graph is derived evidence, not authoritative configuration state.
  • MCP and REST expose bounded operations, not arbitrary SQL or unaudited log mutation.
  • LLM-backed assessments are local-only and require an operator-controlled Gemini environment.
  • Central Docker pull requires privileged read access to Docker endpoints and is disabled by default.
  • Inventory quality depends on collector access, SSH trust, optional API credentials, and cache freshness.
  • The bundled browser app is an investigation workspace preview, not a full monitoring dashboard.
  • Cortex is built for a homelab or small trusted fleet. Internet-facing or multi-tenant deployment requires additional isolation and policy outside the binary.

License

Original Dinglebear-authored portions of this project are licensed under AGPL-3.0-only. Separate commercial licensing is available for organizations that need terms outside the AGPL. Third-party material remains under its original license. See LICENSING.md.

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Configuration

CORTEX_RECEIVER_HOST*

Hostname or IP of the syslog listener.

CORTEX_TOKENsecret

Bearer token for MCP endpoint authentication.

CORTEX_RECEIVER_PORT

Syslog listener port (UDP + TCP). Default: 1514.

Categories
Monitoring & Observability
Registryactive
Packageghcr.io/jmagar/cortex:1.16.5
TransportSTDIO, HTTP
AuthRequired
UpdatedJun 10, 2026
View on GitHub

More from jmagar

  • Unraid MCP77
  • Syslog MCP1
  • Gotify Mcp4
  • Overseerr MCP5
  • Gotify MCP4

Related Monitoring & Observability MCP Servers

View all →
jmagar avatar
Syslog MCP

jmagar/syslog-mcp

Syslog receiver and MCP server for homelab log intelligence.
1
kascada avatar
Logmcp

kascada/logmcp

MCP server — read-only log access for AI assistants, without giving AI shell access.
1
mbk-dev avatar
Okama Mcp

mbk-dev/okama-mcp

Portfolio analytics via the okama library: backtests, Monte Carlo, efficient frontier, PNG charts
1
mleoca avatar
Ucn

mleoca/ucn

Code intelligence for AI agents. Extract, trace, and analyze code without reading whole files.
1
envigoinnovations avatar
Mcp

net.memberpass/mcp

MemberPass MCP — manage projects, plans, members, payments, and analytics for Telegram creators.
1
nevent-dev avatar
Nevent MCP

nevent-dev/mcp-nevent

Talk to your live-events CRM (campaigns, analytics, paid ads, segments) in Claude and ChatGPT.
1