verifiedstate/sdk
TypeScript SDK for VerifiedState — verified memory infrastructure for AI agents
Platform-specific configuration:
{
"mcpServers": {
"sdk": {
"command": "npx",
"args": [
"-y",
"sdk"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
The official TypeScript SDK for VerifiedState — verified memory infrastructure for AI agents.
[](https://npmjs.com/package/@verifiedstate/sdk) [](https://opensource.org/licenses/MIT)
npm install @verifiedstate/sdkimport { VerifiedStateClient } from '@verifiedstate/sdk';
const client = new VerifiedStateClient({
apiKey: 'vs_live_...',
baseUrl: 'https://api.verifiedstate.ai', // optional, this is the default
});
// Store content
const artifact = await client.ingest({
namespace_id: 'your-namespace-uuid',
content: 'The user prefers dark mode and uses PostgreSQL.',
source_type: 'user_input',
});
// Extract assertions
const extracted = await client.extract({
namespace_id: 'your-namespace-uuid',
artifact_id: artifact.artifact_id,
});
// Verify an assertion
const receipt = await client.verify({
assertion_id: extracted.assertion_ids[0],
namespace_id: 'your-namespace-uuid',
});
// Query memory
const results = await client.query({
namespace_id: 'your-namespace-uuid',
query_text: 'What database does the user prefer?',
});ingest(params)Store raw content and create an artifact with spans.
const result = await client.ingest({
namespace_id: 'uuid',
content: 'Raw text content to store',
source_type: 'user_input', // or 'document', 'api', etc.
source_id: 'optional-external-id',
});
// => { artifact_id, span_count, r2_stored }extract(params)Extract structured assertions from an artifact using LLM.
const result = await client.extract({
namespace_id: 'uuid',
artifact_id: 'artifact-uuid',
});
// => { assertions_created, assertion_ids }verify(params)Run the verification ladder and produce a signed receipt.
const result = await cLoading reviews...