Skip to main content
Glama

MCP Agent Toolkit

An MCP (Model Context Protocol) server that exposes production agent-kernel tools — blackboard shared state, SCAR failure memory, and LLM response cache — as standard MCP tools any Claude or GPT agent can call.

For project walkthroughs, architecture flowcharts, and system context, visit the live landing page: my-portfolio-github-io-beta-five.vercel.app/projects/mcp-agent-toolkit.html

What it does

Connects the three core reliability patterns from 18 months of building production multi-agent systems into a single MCP server:

Tool Group

Tools

What it solves

Blackboard

blackboard_write, blackboard_read, blackboard_list

Shared agent state without direct coupling

SCAR Memory

scar_lookup, scar_record

Repeated failure prevention — find the known fix before retrying

Response Cache

cache_get, cache_set

Stop paying twice for identical LLM requests

Related MCP server: memhippo

Part of The Machine OS

This repo is a spoke of The Machine OS: it backs the ~~scar-memory and ~~blackboard connectors that supercharge the /debug, /incident-response, and /agent-design skills.

Prerequisite: Node.js 22.5+ (node:sqlite is built in from 22.5; on recent versions it runs without a flag and just prints an experimental warning to stderr, which does not affect the stdio protocol).

/plugin marketplace add shubham0086/the-machine-os
/plugin install ai-engineering-tools@machine-os
/reload-plugins

This launches the server for you (as the agent-memory MCP server) — no manual config.

Option B — point any MCP client at it directly

Works in Claude Desktop, Cursor, Windsurf, Cline, Zed, or any mcp.json client. No clone needed; npx fetches and runs it:

{
  "mcpServers": {
    "agent-memory": {
      "command": "npx",
      "args": ["-y", "github:shubham0086/mcp-agent-toolkit"],
      "env": { "MCP_AGENT_TOOLKIT_DATA_DIR": "/abs/path/to/persist" }
    }
  }
}

MCP_AGENT_TOOLKIT_DATA_DIR is optional but recommended under npx: it points the SQLite store at a stable path so blackboard state and SCAR memory survive across runs (the npx package dir is ephemeral). Omit it and storage falls back to the package's own data/ dir.

Local dev

npm install
npm start    # runs the stdio server from this checkout

Tool reference

Blackboard

blackboard_write(run_id, agent, key, value)  — persist an artifact
blackboard_read(run_id, agent, key)          — read latest artifact
blackboard_list(run_id, agent)               — list all keys for an agent

Agents communicate through the blackboard, never directly. The Coder writes code. The Auditor reads code. If either fails and retries, the other's work is still in SQLite.

SCAR Memory

scar_lookup(agent, error_type, context?)  — retrieve known resolution
scar_record(agent, error_type, resolution, context?)  — store a new resolution

When an agent hits JSONDecodeError and you fixed it with json_repair(), record it. Next time any agent hits the same error in the same context, scar_lookup returns the fix before the retry loop starts.

Response Cache

cache_get(messages, model)                    — check cache before calling LLM
cache_set(messages, model, response, provider)  — store response after call

SHA-256 hashes the messages + model into a cache key. Identical requests never hit the API twice.

Tests

npm test

13 tests covering blackboard isolation, SCAR round-trips, and cache hit/miss behavior.

Stack

  • MCP SDK (@modelcontextprotocol/sdk) — the official Anthropic MCP server library

  • node:sqlite — Node.js 22 built-in synchronous SQLite, zero native compilation

  • stdio transport — standard MCP pattern, works with any client

Available Tools

7 tools
blackboard_listA

List all artifact keys written by a specific agent in a run.

ParametersJSON Schema
NameRequiredDescriptionDefault
run_idYes
agentYes

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full burden. It does not disclose whether the operation is read-only, authentication requirements, rate limits, or any side effects. The description only says it lists keys, leaving the agent uninformed about behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence of 10 words, front-loading the core purpose. Every word earns its place with no redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 2 required params and no output schema. The description does not explain the return format (e.g., list of strings), pagination, or what constitutes an 'artifact key'. This leaves the agent guessing about the output structure, making it incomplete for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description only maps parameters to 'agent' and 'run' but adds no further meaning like format, allowed values, or constraints. This provides minimal additional value beyond the parameter names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists artifact keys, filtered by agent and run. It uses specific verb 'list' and resource 'artifact keys', distinguishing it from sibling tools like blackboard_read (reads a single key) and cache_get (different storage).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use when you need keys from a specific agent in a run, providing clear context. However, it does not explicitly state when not to use this tool or mention alternatives like blackboard_read for reading a specific key.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

blackboard_readC

Read the latest artifact from the blackboard for a given run, agent, and key.

ParametersJSON Schema
NameRequiredDescriptionDefault
run_idYes
agentYes
keyYes

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must disclose behavioral traits. It only says 'read', implying a read-only operation, but does not explain what happens if the key does not exist, whether the operation is idempotent, or if any side effects occur.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence with no redundancy, but it could benefit from being slightly more structured (e.g., listing parameters explicitly or noting output). Still efficient and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description is insufficient for an agent to reliably invoke the tool. It omits parameter formats, return value type, and error handling, leaving significant gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description mentions the three parameters by name but adds no further meaning beyond the parameter names. With 0% schema description coverage, details like format, constraints, or examples are entirely absent.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Read') and resource ('latest artifact from the blackboard'), and distinguishes from siblings (e.g., blackboard_list lists artifacts, blackboard_write writes). It unambiguously states what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool vs alternatives. No mention of prerequisites, when not to use it, or scenarios better suited for siblings like blackboard_list or cache_get.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

blackboard_writeB

Write an agent artifact to the shared blackboard. Use this to persist any agent output so downstream agents can read it.

ParametersJSON Schema
NameRequiredDescriptionDefault
run_idYesUnique identifier for the current pipeline run.
agentYesName of the agent writing the artifact (e.g. 'researcher').
keyYesArtifact key (e.g. 'research_brief', 'audit_report').
valueYesThe artifact payload (any JSON-serialisable object).

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully disclose behavioral traits. It states 'write' and 'persist', implying mutation, but lacks details on overwrite behavior, idempotency, permissions, or error states. The agent cannot infer critical behavioral aspects from this description alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with two sentences, front-loaded with the verb and resource. Every word serves a purpose, and there is no superfluous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool writes to a shared blackboard with nested objects and no output schema. The description is too brief; it lacks details on write semantics (e.g., overwrite vs. append), required prerequisites, or what happens on duplicate keys. For a mutation tool, this is incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%; all four parameters have descriptions in the input schema. The description adds no additional parameter context beyond what the schema already provides, so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Write' and the resource 'shared blackboard'. It explains the purpose: persist agent output for downstream agents. While it doesn't explicitly distinguish from siblings like blackboard_list or cache_set, the tool name and context make the purpose clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a clear usage context: use this to persist agent output so downstream agents can read it. However, it does not mention when not to use it or list alternatives (e.g., cache_set, blackboard_read), leaving the agent without guidance on tool selection in ambiguous situations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

cache_getA

Check if an identical LLM request was already executed and cached. Returns the cached response or null.

ParametersJSON Schema
NameRequiredDescriptionDefault
messagesYesThe messages array that will be sent to the LLM.
modelYesThe model identifier.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It states it checks and returns cached response or null, but does not explicitly confirm it is read-only or has no side effects. Adequate but could add 'does not modify cache'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, 18 words, front-loaded with purpose. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple cache lookup tool with no output schema, the description covers the key behavior. Could elaborate on exact match criteria but sufficient for most agents.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters are well-described there. The description adds no extra meaning beyond the schema, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks if an identical LLM request is cached, using specific verb+resource. It distinguishes from siblings like cache_set and blackboard tools which serve different purposes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage before executing an LLM request to avoid duplication. It does not explicitly mention when not to use or name alternatives, but the context is clear enough.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

cache_setA

Store an LLM response in the cache. Call this after receiving a response to avoid re-paying for identical future requests.

ParametersJSON Schema
NameRequiredDescriptionDefault
messagesYes
modelYes
responseYesThe full LLM response object to cache.
providerNoProvider name (anthropic, openai, etc.).

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided. Description only says 'store in cache' with no details on overwriting, key generation, idempotency, or caching policy. Agent lacks critical behavioral info.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with action and use case. No wasted words, though could briefly mention key generation without bloat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a simple cache write with no output schema, but missing overwrite behavior and key formation details that would help agent avoid unintended overwrites.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50% with only 'response' and 'provider' described. The description adds no extra meaning to 'messages' or 'model' beyond implied role. Agent cannot infer how keys are formed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states 'Store an LLM response in the cache' with a specific verb and resource. Distinguishes from sibling cache_get (retrieve) by context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says 'Call this after receiving a response to avoid re-paying for identical future requests', providing clear usage context. Doesn't mention when not to use, but siblings are distinct enough.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

scar_lookupA

Look up whether a failure pattern has been seen and resolved before. Returns the resolution if found, null otherwise.

ParametersJSON Schema
NameRequiredDescriptionDefault
agentYesAgent name where the failure occurred.
error_typeYesError class or type string (e.g. 'JSONDecodeError', 'RateLimitError').
contextNoBrief context snippet (first 200 chars of the failed prompt or task).

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must disclose behavior. It indicates a read operation ('look up') and the return type, but does not state that it is read-only, nor does it mention any side effects or prerequisites.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the core purpose. Every word adds value with no waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple nature of the tool (3 parameters, no output schema), the description adequately covers the purpose and return value. It could mention that context is optional, but the schema already indicates that.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The tool description does not add additional meaning beyond what the schema already provides for the parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Look up'), the resource ('failure pattern'), and the outcome ('returns the resolution if found, null otherwise'). It effectively distinguishes from siblings like scar_record which records a failure.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for checking previously resolved failures but does not explicitly state when to use it versus scar_record or other tools. No exclusions or alternatives are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

scar_recordC

Record a new failure resolution in SCAR memory so it can be retrieved next time.

ParametersJSON Schema
NameRequiredDescriptionDefault
agentYes
error_typeYes
contextNo
resolutionYesWhat fixed the failure (prompt change, retry strategy, fallback used, etc.).

TDQS

C2.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden for behavioral traits. It does not disclose what happens on duplicate entries, whether it overwrites, authorization needs, or side effects. The minimal description ('record so it can be retrieved') lacks transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (one sentence) with no wasted words, but it does not fully earn its place as it under-specifies behavior and parameters. Could be more informative while remaining concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 4 parameters, no output schema, and no annotations, the description is incomplete. It fails to explain return values, behavior on errors or duplicates, or any limitations. The agent lacks confidence to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is low (25%). Only 'resolution' has a description. The tool description provides no additional parameter meaning beyond the schema, leaving agents to infer the format and semantics of 'agent', 'error_type', and 'context'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Record') and resource ('SCAR memory') to clearly state the tool's action. It implies storing failure resolutions for later retrieval, which distinguishes it from sibling tools like scar_lookup which retrieves. However, it does not explicitly differentiate from siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives (e.g., scar_lookup for retrieval). No prerequisites, context, or when-not-to-use conditions are mentioned. The usage is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 7 tool updatesv1.0.0
    • First observedblackboard_list
    • First observedblackboard_read
    • First observedblackboard_write
    • First observedcache_get
    • First observedcache_set
    • First observedscar_lookup
    • First observedscar_record

TDQS

A3.6/5.0

Scored across 7 tools

Disambiguation5/5

Each tool has a distinct purpose within clear subsystems (blackboard, cache, scar). There is no overlap between the three groups, and within each group, operations are differentiated by action (list/read/write, get/set, lookup/record).

Naming Consistency5/5

All tool names follow a consistent pattern: a lowercase prefix (blackboard_, cache_, scar_) followed by a verb in snake_case. This makes it easy to infer the domain and action for each tool.

Tool Count5/5

With 7 tools, the set is well-scoped for an agent coordination toolkit. Each tool serves a distinct, necessary function, and the count is neither too sparse nor overwhelming.

Completeness4/5

The toolkit covers the core operations for each subsystem: read/write/list for blackboard, get/set for cache, lookup/record for scar. Minor gaps exist, such as missing delete operations, but the essential lifecycle for agent coordination is present.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Gives AI agents persistent memory, handoffs, and shared context across sessions, enabling seamless continuity and multi-agent collaboration.
    14 npm
    69
    -
  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides persistent, shared memory for AI agents by capturing conversations verbatim, distilling facts and summaries, and enabling retrieval through search, timeline, details, and explicit remember tools.
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    Provides persistent memory for AI agents, including context storage, facts, plans, RAG search, code snippets, and conversation compaction, enabling state to survive across sessions and processes.
    14
    20 npm
    2
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to maintain long-term, cross-session memory by extracting facts, reconciling state conflicts, and retrieving relevant memories via vector search.
    4
    MIT