Connect

Claude Code plugin, SKILL.md & CLI

Adding the MCP server gives Claude Code the Kognite tools. The plugin adds hooks, so memory works even when the agent doesn’t think to call a tool: your context is loaded when a session starts and the conversation is saved before it is compacted.

Just the MCP server

bash
claude mcp add --transport http Kognite https://mcp.kognite.dev/mcp

Claude Code opens a browser tab to sign in on first use. See the Quickstart.

The plugin

The plugin bundles the Kognite MCP server (sign-in through the browser, as above) and three hooks:

HookWhat it does
SessionStartAdds your profile, the context blocks that match this repo and relevant memories to the session (at most about 2,000 tokens).
PreCompactSends the turns not yet saved to Kognite before Claude Code compacts the conversation. Kognite stores them and extracts facts, as episode_log does.
StopThe same, after each turn. It runs in the background, so it never slows Claude Code down.

The hooks run npx -y --prefer-offline kognite@0.2 hook <event>. They never block or fail a session: each one finishes within about 8 seconds, always exits cleanly, and does nothing if you aren’t signed in. Fact extraction needs the LLM; while it is unavailable, the turns are stored and facts are extracted later.

Install it from inside Claude Code:

text
/plugin marketplace add global-software-development-eu/memcore-portable-agent-memory-saas
/plugin install kognite@kognite

The MCP server signs in through the browser. The hooks call the REST API and look for a credential in this order: the KOGNITE_API_KEY environment variable, the plugin’s optional Kognite API key setting, and the login saved by npx kognite login. Create a key on the dashboard’s API keys page.

Skills as SKILL.md

Kognite skills import from and export to the open Agent Skills format: a SKILL.md file with YAML frontmatter (name, description) followed by markdown instructions, the format Claude Code reads from .claude/skills/. Store a skill once in Kognite, share it with a team, and write it out wherever an agent expects it:

bash
kognite skill export deploy-checklist -o .claude/skills   # writes .claude/skills/deploy-checklist/SKILL.md
kognite skill export deploy-checklist --skill-version 1.2.0 --stdout
kognite skill import .claude/skills                        # imports every SKILL.md under the folder
kognite skill import ./SKILL.md --team acme-eng

Kognite-specific fields (slug, version, inputs) are kept under metadata as kognite-slug, kognite-version and kognite-inputs, so an export followed by an import gives back the same skill. Import is idempotent: a new skill is created, an unchanged one is skipped, and a changed one gets a new version (a patch bump, unless the file’s kognite-version is higher).

Over REST: GET /api/skills/:slug/export returns the SKILL.md as text/markdown (?version= for an older version), and POST /api/skills/import takes { skill_md, slug?, team? } and answers with action: created, updated or unchanged (see REST API).

The kognite CLI

bash
npx kognite login          # or: npm i -g kognite

kognite was called memcore. The old command still works as an alias and prints a deprecation notice; your ~/.memcore settings are copied to ~/.kognite on first run, and MEMCORE_* environment variables are still read as fallbacks for KOGNITE_*. Node.js 20.9 or later.

CommandWhat it does
kognite loginSign in with the browser device flow, or -t <api-key>.
kognite statusConnection, scope and usage.
kognite mcpA stdio bridge to the hosted MCP server, for clients that only speak stdio.
kognite syncWrite your Kognite MCP servers into local client config files.
kognite rules import [--dry-run] [--skip-existing]Import rules files as context blocks.
kognite blocks list | get | set | rmManage context blocks.
kognite skill list | get | run | export | importManage skills, including SKILL.md.
kognite hook session-start | pre-compact | stop | session-endThe Claude Code hook handler. The plugin wires the first three; session-end is there for hand-written hook configs.

KOGNITE_API_KEY overrides the stored login. Most commands take --team <slug>.