Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
knitbrain_pingA

Health check — returns pong and the server version.

knitbrain_optimizeA

Compress a payload (JSON / code / prose) into a token-cheap skeleton. The exact original is stored locally and recoverable via knitbrain_retrieve using the returned ⟨ccr:hash⟩. Returns the original unchanged if compression wouldn't help.

knitbrain_retrieveA

Retrieve the exact original bytes for a ⟨ccr:hash⟩ handle produced by compression. Use when a skeleton isn't enough and you need the precise content.

knitbrain_record_learningA

Record a non-obvious project learning (summary + lesson + tags) for future sessions.

knitbrain_search_learningsB

Search project learnings; returns ranked headlines (id + summary). Call knitbrain_get_learning for a full lesson.

knitbrain_get_learningA

Fetch the full lesson for a learning id (from knitbrain_search_learnings).

knitbrain_save_handoffC

Save session handoff state so the next session can resume.

knitbrain_load_sessionA

Load the prior handoff + top recent learnings to resume work. Resets the context meter for the new session.

knitbrain_context_meterA

Token-window meter: how full the context is, tokens saved by optimization, and whether it's time to save a handoff and clear the session.

knitbrain_scanA

Scan the project and (re)build the import/export knowledge graph.

knitbrain_query_importsC

What a file imports (module specifiers + names).

knitbrain_query_exportsC

What a file exports.

knitbrain_query_dependentsA

Which files import the given file (blast radius before editing).

knitbrain_classify_taskC

Classify a task into a tier (inquiry/trivial/standard/complex) with phases + plan-mode signal. Follow the returned plan.

knitbrain_metricsA

Compression telemetry: CCR tier counts + per-kind retrieval rates (TOIN self-tuning).

knitbrain_propose_agentsB

Auto-detect project-specific agent proposals from the knowledge graph (domains + guardrails). Review/edit, then create with knitbrain_create_agent.

knitbrain_create_agentB

Generate a project-specific subagent (.claude/agents/.md) with 4 guardrails: file scope, allowed-tools, optional review gate, context budget.

knitbrain_team_postC

Post a finding to the shared team board (stored compressed; full original recoverable).

knitbrain_team_boardA

Read the shared team board — compressed skeletons of every posting (cheap to scan; fetch full with knitbrain_team_get).

knitbrain_team_getC

Fetch the full original of a board posting by id.

knitbrain_team_clearB

Clear the shared team board (CCR originals are retained until tiered out).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PDgit12/knitbrain'

If you have feedback or need assistance with the MCP directory API, please join our Discord server