Cortex Bi-Temporal Memory Gateway
Local-First Bi-Temporal Knowledge Graph & Cross-Agent Persistent Memory Model Context Protocol (MCP) server. Provides immutable episodic memory, causal entity-relationship tracking, and time-travel provenance queries for autonomous agents.
- Selected price
- $0.001 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Cortex Bi-Temporal Memory Gateway
Prepare your request, then continue with your agent.
Selected price
$0.001 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
idintegerjsonrpcstringresultobjecttoolsobject[]descriptionstringinputSchemaobjectpropertiesobjectcategoryobjectdescriptionstringenumstring[]typestring
contentobjectdescriptionstringtypestring
entities_mentionedobjectdescriptionstringitemsobjecttypestring
typestring
files_touchedobjectdescriptionstringitemsobjecttypestring
typestring
timestampobjectdescriptionstringtypestring
titleobjectdescriptionstringtypestring
confidenceobjectdefaultnumberdescriptionstringtypestring
object_idobjectdescriptionstringtypestring
object_valueobjectdescriptionstringtypestring
predicateobjectdescriptionstringtypestring
singularobjectdefaultbooleandescriptionstringtypestring
source_episode_idobjectdescriptionstringtypestring
subject_idobjectdescriptionstringtypestring
valid_fromobjectdescriptionstringtypestring
as_ofobjectdescriptionstringtypestring
include_supersededobjectdefaultbooleandescriptionstringtypestring
max_tokensobjectdefaultintegerdescriptionstringtypestring
queryobjectdescriptionstringtypestring
entity_idobjectdescriptionstringtypestring
max_hopsobjectdefaultintegerdescriptionstringtypestring
auto_resolveobjectdefaultbooleandescriptionstringtypestring
requiredstring[]typestring
namestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
id?: number;
jsonrpc?: string;
result?: {
tools?: Array<{
description?: string;
inputSchema?: {
properties?: {
category?: {
description?: string;
enum?: Array<string>;
type?: string;
};
content?: {
description?: string;
type?: string;
};
entities_mentioned?: {
description?: string;
items?: {
type?: string;
};
type?: string;
};
files_touched?: {
description?: string;
items?: {
type?: string;
};
type?: string;
};
timestamp?: {
description?: string;
type?: string;
};
title?: {
description?: string;
type?: string;
};
confidence?: {
default?: number;
description?: string;
type?: string;
};
object_id?: {
description?: string;
type?: string;
};
object_value?: {
description?: string;
type?: string;
};
predicate?: {
description?: string;
type?: string;
};
singular?: {
default?: boolean;
description?: string;
type?: string;
};
source_episode_id?: {
description?: string;
type?: string;
};
subject_id?: {
description?: string;
type?: string;
};
valid_from?: {
description?: string;
type?: string;
};
as_of?: {
description?: string;
type?: string;
};
include_superseded?: {
default?: boolean;
description?: string;
type?: string;
};
max_tokens?: {
default?: number;
description?: string;
type?: string;
};
query?: {
description?: string;
type?: string;
};
entity_id?: {
description?: string;
type?: string;
};
max_hops?: {
default?: number;
description?: string;
type?: string;
};
auto_resolve?: {
default?: boolean;
description?: string;
type?: string;
};
};
required?: Array<string>;
type?: string;
};
name?: string;
}>;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
codesphereugCurrent Cortex Bi-Temporal Memory Gateway · POST · View API reference | $0.001 / call | — | —successP50— |
- Unit price
- $0.001
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.
Total $0.1
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/codesphereug/cortex/mcp- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/codesphereug/cortex/mcp' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
No input fields are required by this API contract.
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"description": "Record an immutable engineering episode (ADR, bug_root_cause, invariant, session_note, migration, incident) with associated files and mentioned entities.",
"inputSchema": {
"properties": {
"category": {
"description": "Episode classification category.",
"enum": [
"adr",
"bug_root_cause",
"incident",
"invariant",
"migration",
"session_note"
],
"type": "string"
},
"content": {
"description": "Detailed architectural or technical note.",
"type": "string"
},
"entities_mentioned": {
"description": "Canonical entity IDs referenced in this episode.",
"items": {
"type": "string"
},
"type": "array"
},
"files_touched": {
"description": "Relative repository file paths involved.",
"items": {
"type": "string"
},
"type": "array"
},
"timestamp": {
"description": "Optional ISO-8601 UTC timestamp.",
"type": "string"
},
"title": {
"description": "Short descriptive title of the episode.",
"type": "string"
}
},
"required": [
"title",
"category",
"content"
],
"type": "object"
},
"name": "memory_record_episode"
},
{
"description": "Record a structured entity-relationship fact (subject_id, predicate, object) with automatic bi-temporal conflict detection and supersession of stale facts.",
"inputSchema": {
"properties": {
"confidence": {
"default": 1.0,
"description": "Confidence score in [0.0, 1.0].",
"type": "number"
},
"object_id": {
"description": "Target entity identifier (if relational).",
"type": "string"
},
"object_value": {
"description": "Target literal value (if attribute).",
"type": "string"
},
"predicate": {
"description": "Relationship or attribute predicate.",
"type": "string"
},
"singular": {
"default": true,
"description": "If true, supersedes any prior active fact with the same (subject_id, predicate).",
"type": "boolean"
},
"source_episode_id": {
"description": "Optional episode ID that established this fact.",
"type": "string"
},
"subject_id": {
"description": "Source entity identifier.",
"type": "string"
},
"valid_from": {
"description": "Optional ISO-8601 UTC timestamp when fact became true.",
"type": "string"
}
},
"required": [
"subject_id",
"predicate"
],
"type": "object"
},
"name": "memory_upsert_fact"
},
{
"description": "Compile a token-budgeted, provenance-cited context bundle for a coding query, automatically suppressing superseded/stale facts.",
"inputSchema": {
"properties": {
"as_of": {
"description": "Optional ISO-8601 timestamp for point-in-time compilation.",
"type": "string"
},
"include_superseded": {
"default": false,
"description": "Whether to include historically superseded facts.",
"type": "boolean"
},
"max_tokens": {
"default": 1200,
"description": "Strict maximum token budget for the compiled context.",
"type": "integer"
},
"query": {
"description": "Task description, symbol, or file query.",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"name": "memory_compile_context"
},
{
"description": "Inspect an entity's active facts, superseded historical facts, related episodes, and K-hop ego-graph neighborhood.",
"inputSchema": {
"properties": {
"entity_id": {
"description": "Entity ID to inspect.",
"type": "string"
},
"include_superseded": {
"default": true,
"description": "Include historical facts superseded by newer decisions.",
"type": "boolean"
},
"max_hops": {
"default": 2,
"description": "Maximum hop distance for ego-graph traversal.",
"type": "integer"
}
},
"required": [
"entity_id"
],
"type": "object"
},
"name": "memory_query_entity"
},
{
"description": "Query the knowledge graph as of a specific ISO-8601 timestamp to inspect historical architecture state.",
"inputSchema": {
"properties": {
"as_of": {
"description": "ISO-8601 UTC timestamp to inspect.",
"type": "string"
}
},
"required": [
"as_of"
],
"type": "object"
},
"name": "memory_time_travel"
},
{
"description": "Verify cryptographic SHA-256 hashes of all episodes and facts and compute the graph Merkle digest.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "memory_verify_integrity"
},
{
"description": "Scan active facts in the bi-temporal graph to detect unresolved logical contradictions (negation polarity inversions, antonym objects, predicate alias collisions, or unsuperseded multi-value drift) and recommend or apply supersession resolutions.",
"inputSchema": {
"properties": {
"as_of": {
"description": "Optional ISO-8601 timestamp to audit active facts at a historical point.",
"type": "string"
},
"auto_resolve": {
"default": false,
"description": "If true, automatically supersedes the older/lower-confidence conflicting fact.",
"type": "boolean"
}
},
"type": "object"
},
"name": "cortex_audit_contradictions"
}
]
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Cortex Bi-Temporal Memory Gateway
Local-First Bi-Temporal Knowledge Graph & Cross-Agent Persistent Memory Model Context Protocol (MCP) server. Provides immutable episodic memory, causal entity-relationship tracking, and time-travel provenance queries for autonomous agents.
Documentation: https://openany.si/apis/ec1ba258-f646-4dfb-b882-b8d387c25d23
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/codesphereug/cortex/mcp
Price: $0.001 / call
Provider: codesphereug
Contract revision: 5
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/codesphereug/cortex/mcp' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Cortex Bi-Temporal Memory Gateway",
"endpoint": "https://api.openany.si/v1/agent-apis/codesphereug/cortex/mcp",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "1000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Recorded upstream MCP tools/list (HTTP 200)",
"request": {
"body": {
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"description": "Record an immutable engineering episode (ADR, bug_root_cause, invariant, session_note, migration, incident) with associated files and mentioned entities.",
"inputSchema": {
"properties": {
"category": {
"description": "Episode classification category.",
"enum": [
"adr",
"bug_root_cause",
"incident",
"invariant",
"migration",
"session_note"
],
"type": "string"
},
"content": {
"description": "Detailed architectural or technical note.",
"type": "string"
},
"entities_mentioned": {
"description": "Canonical entity IDs referenced in this episode.",
"items": {
"type": "string"
},
"type": "array"
},
"files_touched": {
"description": "Relative repository file paths involved.",
"items": {
"type": "string"
},
"type": "array"
},
"timestamp": {
"description": "Optional ISO-8601 UTC timestamp.",
"type": "string"
},
"title": {
"description": "Short descriptive title of the episode.",
"type": "string"
}
},
"required": [
"title",
"category",
"content"
],
"type": "object"
},
"name": "memory_record_episode"
},
{
"description": "Record a structured entity-relationship fact (subject_id, predicate, object) with automatic bi-temporal conflict detection and supersession of stale facts.",
"inputSchema": {
"properties": {
"confidence": {
"default": 1.0,
"description": "Confidence score in [0.0, 1.0].",
"type": "number"
},
"object_id": {
"description": "Target entity identifier (if relational).",
"type": "string"
},
"object_value": {
"description": "Target literal value (if attribute).",
"type": "string"
},
"predicate": {
"description": "Relationship or attribute predicate.",
"type": "string"
},
"singular": {
"default": true,
"description": "If true, supersedes any prior active fact with the same (subject_id, predicate).",
"type": "boolean"
},
"source_episode_id": {
"description": "Optional episode ID that established this fact.",
"type": "string"
},
"subject_id": {
"description": "Source entity identifier.",
"type": "string"
},
"valid_from": {
"description": "Optional ISO-8601 UTC timestamp when fact became true.",
"type": "string"
}
},
"required": [
"subject_id",
"predicate"
],
"type": "object"
},
"name": "memory_upsert_fact"
},
{
"description": "Compile a token-budgeted, provenance-cited context bundle for a coding query, automatically suppressing superseded/stale facts.",
"inputSchema": {
"properties": {
"as_of": {
"description": "Optional ISO-8601 timestamp for point-in-time compilation.",
"type": "string"
},
"include_superseded": {
"default": false,
"description": "Whether to include historically superseded facts.",
"type": "boolean"
},
"max_tokens": {
"default": 1200,
"description": "Strict maximum token budget for the compiled context.",
"type": "integer"
},
"query": {
"description": "Task description, symbol, or file query.",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"name": "memory_compile_context"
},
{
"description": "Inspect an entity's active facts, superseded historical facts, related episodes, and K-hop ego-graph neighborhood.",
"inputSchema": {
"properties": {
"entity_id": {
"description": "Entity ID to inspect.",
"type": "string"
},
"include_superseded": {
"default": true,
"description": "Include historical facts superseded by newer decisions.",
"type": "boolean"
},
"max_hops": {
"default": 2,
"description": "Maximum hop distance for ego-graph traversal.",
"type": "integer"
}
},
"required": [
"entity_id"
],
"type": "object"
},
"name": "memory_query_entity"
},
{
"description": "Query the knowledge graph as of a specific ISO-8601 timestamp to inspect historical architecture state.",
"inputSchema": {
"properties": {
"as_of": {
"description": "ISO-8601 UTC timestamp to inspect.",
"type": "string"
}
},
"required": [
"as_of"
],
"type": "object"
},
"name": "memory_time_travel"
},
{
"description": "Verify cryptographic SHA-256 hashes of all episodes and facts and compute the graph Merkle digest.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "memory_verify_integrity"
},
{
"description": "Scan active facts in the bi-temporal graph to detect unresolved logical contradictions (negation polarity inversions, antonym objects, predicate alias collisions, or unsuperseded multi-value drift) and recommend or apply supersession resolutions.",
"inputSchema": {
"properties": {
"as_of": {
"description": "Optional ISO-8601 timestamp to audit active facts at a historical point.",
"type": "string"
},
"auto_resolve": {
"default": false,
"description": "If true, automatically supersedes the older/lower-confidence conflicting fact.",
"type": "boolean"
}
},
"type": "object"
},
"name": "cortex_audit_contradictions"
}
]
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Recorded upstream MCP tools/list (HTTP 200)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/codesphereug/cortex/mcp' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "id": 2, "jsonrpc": "2.0", "method": "tools/list" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "id": 2, "jsonrpc": "2.0", "result": { "tools": [ { "description": "Record an immutable engineering episode (ADR, bug_root_cause, invariant, session_note, migration, incident) with associated files and mentioned entities.", "inputSchema": { "properties": { "category": { "description": "Episode classification category.", "enum": [ "adr", "bug_root_cause", "incident", "invariant", "migration", "session_note" ], "type": "string" }, "content": { "description": "Detailed architectural or technical note.", "type": "string" }, "entities_mentioned": { "description": "Canonical entity IDs referenced in this episode.", "items": { "type": "string" }, "type": "array" }, "files_touched": { "description": "Relative repository file paths involved.", "items": { "type": "string" }, "type": "array" }, "timestamp": { "description": "Optional ISO-8601 UTC timestamp.", "type": "string" }, "title": { "description": "Short descriptive title of the episode.", "type": "string" } }, "required": [ "title", "category", "content" ], "type": "object" }, "name": "memory_record_episode" }, { "description": "Record a structured entity-relationship fact (subject_id, predicate, object) with automatic bi-temporal conflict detection and supersession of stale facts.", "inputSchema": { "properties": { "confidence": { "default": 1.0, "description": "Confidence score in [0.0, 1.0].", "type": "number" }, "object_id": { "description": "Target entity identifier (if relational).", "type": "string" }, "object_value": { "description": "Target literal value (if attribute).", "type": "string" }, "predicate": { "description": "Relationship or attribute predicate.", "type": "string" }, "singular": { "default": true, "description": "If true, supersedes any prior active fact with the same (subject_id, predicate).", "type": "boolean" }, "source_episode_id": { "description": "Optional episode ID that established this fact.", "type": "string" }, "subject_id": { "description": "Source entity identifier.", "type": "string" }, "valid_from": { "description": "Optional ISO-8601 UTC timestamp when fact became true.", "type": "string" } }, "required": [ "subject_id", "predicate" ], "type": "object" }, "name": "memory_upsert_fact" }, { "description": "Compile a token-budgeted, provenance-cited context bundle for a coding query, automatically suppressing superseded/stale facts.", "inputSchema": { "properties": { "as_of": { "description": "Optional ISO-8601 timestamp for point-in-time compilation.", "type": "string" }, "include_superseded": { "default": false, "description": "Whether to include historically superseded facts.", "type": "boolean" }, "max_tokens": { "default": 1200, "description": "Strict maximum token budget for the compiled context.", "type": "integer" }, "query": { "description": "Task description, symbol, or file query.", "type": "string" } }, "required": [ "query" ], "type": "object" }, "name": "memory_compile_context" }, { "description": "Inspect an entity's active facts, superseded historical facts, related episodes, and K-hop ego-graph neighborhood.", "inputSchema": { "properties": { "entity_id": { "description": "Entity ID to inspect.", "type": "string" }, "include_superseded": { "default": true, "description": "Include historical facts superseded by newer decisions.", "type": "boolean" }, "max_hops": { "default": 2, "description": "Maximum hop distance for ego-graph traversal.", "type": "integer" } }, "required": [ "entity_id" ], "type": "object" }, "name": "memory_query_entity" }, { "description": "Query the knowledge graph as of a specific ISO-8601 timestamp to inspect historical architecture state.", "inputSchema": { "properties": { "as_of": { "description": "ISO-8601 UTC timestamp to inspect.", "type": "string" } }, "required": [ "as_of" ], "type": "object" }, "name": "memory_time_travel" }, { "description": "Verify cryptographic SHA-256 hashes of all episodes and facts and compute the graph Merkle digest.", "inputSchema": { "properties": {}, "type": "object" }, "name": "memory_verify_integrity" }, { "description": "Scan active facts in the bi-temporal graph to detect unresolved logical contradictions (negation polarity inversions, antonym objects, predicate alias collisions, or unsuperseded multi-value drift) and recommend or apply supersession resolutions.", "inputSchema": { "properties": { "as_of": { "description": "Optional ISO-8601 timestamp to audit active facts at a historical point.", "type": "string" }, "auto_resolve": { "default": false, "description": "If true, automatically supersedes the older/lower-confidence conflicting fact.", "type": "boolean" } }, "type": "object" }, "name": "cortex_audit_contradictions" } ] } }