About MCP
MCP is an MCP server published by cogitator-ai in the RAG category: aI agents that survive production. Self-hosted TypeScript runtime: multi-provider LLMs, tools with approvals, memory & RAG, durable workflows, multi-agent swarms, sandboxed execution, MCP and A2A. Conduid read 87 tools from its source: accept, agents, answer, ask, base64, base64_decode and 81 more. It is published to npm as @cogitator-ai/mcp, a package with no command-line entry point.
The cogitator-ai/Cogitator-AI monorepo this package is published from has 44 stars and 16 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is create-cogitator-app@0.8.0 (20 Oct 2026): Minor Changes 201 f3a8929 - The scaffolder offers to start the project's compose services once the project is created. It follows @cogitator-ai/cli@0.8.0 (20 Oct 2026), and the 5 most recent releases go back to create-cogitator-app@0.7.1 (19 Oct 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include a2a, agentic-framework, agentic-workflow, ai-framework, multi-agent and ollama.
Install
npm install @cogitator-ai/mcpgit clone https://github.com/cogitator-ai/Cogitator-AITools (87)
acceptTake what a finished job changed in its git worktree into the checkout this session works in. The changes arrive as one change that is staged and not committed: look at it and commit it yourself. When files would conflict nothing is touched and the answer names them. The worktree is removed. Only for a job this session handed over.| Parameter | Type | Description |
|---|---|---|
| asBranch | any | Leave the work as a branch instead of bringing it into your checkout, for a change that goes on as a pull request: true for the branch of the worktree, or the name the branch is to have |
agentsList the sessions of coding agents the bridge knows in this project, and the agents it can start a session of. Their names are what delegate takes.answerAnswer a question another agent asked about a job, or decide its permission request. The answer goes to that agent, who does not see this conversation. A permission request takes a decision.| Parameter | Type | Description |
|---|---|---|
| answer | string | The answer to a question, or the reason of a decision |
| decision | string | For a permission request: allow or deny the call. person leaves a request or a question to the user, when it is not for you to say |
| letter | string | The id of the letter this answers, from its first line. The open question of the job by default |
askAsk the other agent of a job a question: whoever handed you the job, or the agent you handed one to. The answer comes back as a letter that wakes this session, so end your turn after asking.| Parameter | Type | Description |
|---|---|---|
| question * | string | The question, with what the other agent needs to answer it |
base64Encode or decode Base64 text. Supports standard and URL-safe variants.| Parameter | Type | Description |
|---|---|---|
| operation * | string | Whether to encode or decode |
| text * | string | Text to encode or decode |
| urlSafe | boolean | Use URL-safe Base64 variant |
base64_decodeDecode a base64 string back to plain text.| Parameter | Type | Description |
|---|---|---|
| data * | string | The base64 string to decode |
| urlSafe | boolean | Input uses URL-safe base64 encoding (default: false) |
base64_encodeEncode a string to base64. Optionally use URL-safe encoding.| Parameter | Type | Description |
|---|---|---|
| data * | string | The string to encode |
| urlSafe | boolean | Use URL-safe base64 encoding (default: false) |
browser_block_resourcesBlock specific resource types (images, stylesheets, fonts, media, scripts) from loading in all tabs.browser_capture_harStart or stop capturing HTTP traffic of all tabs. On stop, returns the captured entries and optionally writes a HAR 1.2 file.browser_clickClick an element on the page by CSS selector.browser_click_by_descriptionFind an element by natural language description and click it. Tries role, text, label, and placeholder strategies.browser_drag_and_dropDrag an element and drop it onto another element.browser_extract_structuredExtract clean readable text from the page for agent processing. Removes scripts, styles, and non-visible elements.browser_extract_tableExtract structured data from an HTML table. Returns headers and rows as arrays.browser_fill_formSmart form filler. Finds inputs by name, placeholder, aria-label, or associated label text and fills them.browser_find_by_descriptionFind elements matching a natural language description using the accessibility tree.browser_get_api_callsGet XHR/fetch API calls captured since the session started, optionally filtered by URL substring (or /regex/flags) and HTTP method.browser_get_attributeGet the value of an attribute on a DOM element.browser_get_current_urlGet the current page URL and title.browser_get_htmlGet HTML content of the page or a specific element. Supports inner/outer HTML.browser_get_linksExtract all links from the page or a scoped element. Returns text, href, and title for each link.browser_get_textExtract text content from the page or a specific element. Returns body innerText if no selector is given.browser_go_backGo back to the previous page in browser history.browser_go_forwardGo forward to the next page in browser history.browser_hoverHover over an element on the page.browser_intercept_requestIntercept and modify, block, or continue HTTP requests matching a URL pattern in all tabs. Returns an interceptorId that can be passed to browser_remove_interceptor.browser_navigateNavigate to a URL in the browser. Returns the final URL, page title, and HTTP status.browser_press_keyPress a keyboard key, optionally with modifier keys.browser_query_selector_allQuery all elements matching a CSS selector. Returns tag, text, attributes, and visibility for each.browser_reloadReload the current page.browser_remove_interceptorRemove a request interceptor created by browser_intercept_request or browser_block_resources. Omit interceptorId to remove all interceptors.browser_screenshotTake a screenshot of the current page or a specific element. Returns base64-encoded image data.browser_screenshot_elementScreenshot a specific element and return its base64 image with bounding box coordinates.browser_scrollScroll the page or a specific element in any direction.browser_select_optionSelect an option from a <select> element by value, label, or index.browser_typeType text into an input element. Uses fill() for instant input or type() for keystroke simulation.browser_upload_fileUpload files to a file input element.browser_wait_for_navigationWait for the page to navigate to a URL matching the given pattern.browser_wait_for_responseWait for an HTTP response whose URL contains the given substring (or matches /regex/flags). Returns status, headers, and body.browser_wait_for_selectorWait for a CSS selector to appear on the page. Returns whether the element was found.buildHand a job over to be done, checked and reviewed in one go: an agent does it in a git worktree of its own, the bridge runs the checks, another agent reviews the work, and the author fixes what the review found until it is clean or the rounds run out. Returns a job number at once. One report comes back at the end: how the review ended, what is still open, and which job holds the work for accept. For a job that needs no review, use delegate.| Parameter | Type | Description |
|---|---|---|
| checks | array | Shell commands that show the job is done, such as the tests of what it touches. The bridge runs those your own rules allow without asking after the work and after every round of fixes |
| cwd | string | The folder the job is about, inside this project. This session's by default |
| task * | string | The job: what to do, and what done looks like. The agents see nothing of this conversation, so name the files, the constraints and the decisions already made |
| title | string | A short name of the job, its first line by default |
| to * | string | Who does the work: "codex" or "claude" for a session of that agent, started for the job, or "${AUTO_ADDRESS}" for the agent whose jobs of this type held best so far |
| worktree | boolean | False to have the work done in your folder instead of a git worktree of its own. In a worktree by default: the work starts from your last commit and comes back with accept |
calculateEvaluate a mathematical expression safely. Supports +, -, *, /, %, and parentheses.| Parameter | Type | Description |
|---|---|---|
| expression * | string | Mathematical expression to evaluate (e.g., "2 + 2 * 3") |
calculatorEvaluate mathematical expressions. Supports +, -, *, /, ^ (power), parentheses, and functions: sqrt, sin, cos, tan, log, abs, round, floor, ceil. Constants: pi, e.| Parameter | Type | Description |
|---|---|---|
| expression * | string | Mathematical expression to evaluate (e.g., "2 + 3 * 4") |
cancelTake back a job this session handed over. The agent that worked on it is told to stop, and what it did so far stays where it is.| Parameter | Type | Description |
|---|---|---|
| reason | string | Why, for the agent that worked on it |
colorConvert color formats (HEX, RGB, HSL) and calculate WCAG 2.x contrast ratios with AA/AAA compliance checks| Parameter | Type | Description |
|---|---|---|
| color | string | Color string for convert, or first color for contrast (#rgb, #rrggbb, #rrggbbaa, rgb, rgba, hsl, hsla) |
| color2 | string | Second color for contrast calculation |
| operation * | string | Color operation: "convert" (format conversion) or "contrast" (WCAG contrast check) |
compressionCompress and decompress data using gzip| Parameter | Type | Description |
|---|---|---|
| data * | string | Data to compress/decompress |
| inputEncoding | string | Input encoding (default: utf8 for compress, base64 for decompress) |
| level | number | Compression level (0-9, default 6) |
| operation * | string | Operation |
| outputEncoding | string | Output encoding (default: base64 for compress, utf8 for decompress) |
config_readRead the current assistant configuration (cogitator.yml)config_updateUpdate assistant configuration. Provide a partial config object that will be deep-merged with the current config. Changes are validated before saving. The assistant will restart automatically after a successful update.| Parameter | Type | Description |
|---|---|---|
| updates * | object | Partial config to deep-merge with current config |
csvParse and generate CSV data (RFC 4180 compliant)| Parameter | Type | Description |
|---|---|---|
| data * | any | CSV string or array data |
| delimiter | string | Field delimiter (default: ",") |
| headers | any | Handle headers |
| operation * | string | Parse CSV string or stringify array |
| quote | string | Quote character (default: '"') |
datetimeParse, format, and manipulate dates (UTC + offset timezones)| Parameter | Type | Description |
|---|---|---|
| amount | number | Amount for add/subtract |
| date | string | Date string to process |
| endDate | string | End date for diff operation |
| format | string | Date format tokens: YYYY MM DD HH mm ss SSS Z; wrap literal text in [brackets] |
| operation * | string | Operation |
| timezone | string | Timezone offset (e.g., "+04:00", "UTC") |
| unit | string |
debatePut a question to two or more agents, who answer each other round by round until they agree or the rounds run out. For a decision worth more than one opinion before the work starts. No file is changed. Returns a job number at once, and one report comes back at the end: where they ended, and with a moderator its summary and what it recommends.| Parameter | Type | Description |
|---|---|---|
| debaters | array | "codex" or "claude" for a fresh session, or an agent name |
| moderator | string | Who sums the debate up at the end and recommends. Nobody by default |
| question * | string | The question, with what the agents have to know to answer it: they see nothing of this conversation |
| rounds | number | How many rounds at most, 3 by default |
| title | string | A short name of the debate |
delegateHand a job to another coding agent on this machine and get its number at once. The agent works in its own session: its questions and its report come back later as letters that wake this session, so end your turn after the call instead of waiting.| Parameter | Type | Description |
|---|---|---|
| checks | array | Shell commands that show the job is done, such as the tests of what it touches. When the job is reported on, the bridge runs those your own rules allow without asking, where the job was done, and the report comes with what they showed |
| cwd | string | The folder the job is done in, inside this project. This session's by default |
| parent | number | The job this one is part of, when this session carries out several. Found by itself otherwise |
| reviewOf | number | When this job is a review of the work of another job: the number of that job. What the review finds is then counted for the agent that did the work |
| task * | string | The job: what to do, and what done looks like. The other agent sees nothing of this conversation, so name the files, the constraints and the decisions already made |
| title | string | A short name of the job, its first line by default |
| to * | string | Who gets the job: "codex" or "claude" for the session of that agent in this project (one is started when none is open), "codex:${NEW_SESSION}" for a fresh one, an agent name from the agents tool such as "codex-2@app", or "${AUTO_ADDRESS}" to let the bridge take the agent whose jobs of this type held best so far |
| worktree | boolean | Give the job a git worktree of its own, made from the last commit of your checkout, and a fresh session to work there. Ask for it when the job changes files while you or other agents change files too. What you have not committed is not there. The work comes back with the accept tool |
diffGenerate diff between two texts using Myers algorithm| Parameter | Type | Description |
|---|---|---|
| context | number | Context lines for unified diff (default 3) |
| format | string | Output format |
| modified * | string | Modified text |
| original * | string | Original text |
download_stt_modelDownload speech recognition model (~75MB) for offline voice message transcription. Call this when the user confirms they want voice message support. Downloads once, works offline after that.env_checkCheck which environment variables are set. Returns true/false for each known variable (never exposes values). Use this before switching LLM providers to verify required keys are configured.| Parameter | Type | Description |
|---|---|---|
| vars | array | Specific vars to check. If omitted, checks all known vars. |
env_setWrite environment variables to the .env file. Merges with existing vars. The assistant will restart automatically to pick up new values.| Parameter | Type | Description |
|---|---|---|
| vars * | object | Key-value pairs to write to .env |
forgetTake a note you put on the board off it, when it turned out wrong or no longer holds. It is found no more. A note of another agent or of the user is theirs to take off.| Parameter | Type | Description |
|---|---|---|
| id * | string | The id of the note, as recall shows it |
generateSpeechConvert text to natural-sounding speech using OpenAI TTS. Returns base64-encoded audio. Max input: 4096 characters.| Parameter | Type | Description |
|---|---|---|
| speed | number | Speech speed (0.25 to 4.0, default 1.0) |
| text * | string | Text to convert to speech (max 4096 characters) |
hash_textCompute cryptographic hash of text. Supports SHA-256, SHA-1, and MD5 algorithms.| Parameter | Type | Description |
|---|---|---|
| algorithm * | string | Hash algorithm to use |
| text * | string | Text to hash |
inboxRead the letters that wait for this session, each under the line that says which job it is about and who wrote it. Letters usually arrive by themselves: use this when nothing woke the session, or for a letter too long to be handed over whole.| Parameter | Type | Description |
|---|---|---|
| job | number | Only the letters of one job |
| peek | boolean | Look without taking: the letters stay as they are |
| unhandled | boolean | Also the letters read before and not answered since |
jobSee one job: its state, who handed it to whom, and for a job of this session its latest letters. Reads only, takes nothing from the inbox.jobsList the jobs this session handed over or carries out: those in progress, or all of them.| Parameter | Type | Description |
|---|---|---|
| all | boolean | Also the jobs that are over, the newest first |
markdownConvert Markdown to HTML (GFM subset)| Parameter | Type | Description |
|---|---|---|
| markdown * | string | Markdown text to convert |
| options | object | Sanitize HTML output |
noteTell the other agent of a job something it should know and need not answer: progress, a finding, a change of plan. The job goes on.| Parameter | Type | Description |
|---|---|---|
| text * | string | What the other agent should know |
planHave two to four agents plan the same work: each writes a plan apart without seeing the others, each reads the plans of the others and says what is better, wrong or missing, the first of them merges it all into one plan, and the others sign that plan or object to it. For a design or a plan worth more than one mind before anybody builds by it. The planners change no file of the project: the plan is written to .cogitator/plans in the folder of the job. Returns a job number at once, and one report comes back at the end: where the plan is, whether all signed it, and what is still not agreed.| Parameter | Type | Description |
|---|---|---|
| cwd | string | The folder the plan is about, inside this project. This session's by default |
| out | string | Where to copy the plan to once it is written, a path inside this repository at which nothing is yet, such as docs/plans/limiter.md. Nowhere by default |
| planners * | array | Who plans, two to four, the first of whom merges: such as ["claude", "codex"] for a fresh session of each, or agent names |
| rounds | number | How many times the merger answers the objections of the others at most, 2 by default |
| task * | string | The work to plan: what is wanted and why. The planners see nothing of this conversation, so name the files, the constraints and the decisions already made |
| title | string | A short name of the plan, its first line by default |
process_jsonParse and query JSON data. Supports JSONPath queries for extracting nested values.| Parameter | Type | Description |
|---|---|---|
| json * | string | JSON string to parse and process |
| query | string | Optional JSONPath query, e.g. "$.items[*].id", "$..price", "$.a[0:2]" |
raceHand the same job to two or more agents at the same time, each in a git worktree of its own, and get the results side by side: which finished, what the checks showed, how much each changed, and with a judge which one another agent would take. Nothing is taken for you: accept the attempt you want and reject the others. Returns a job number at once, and one report comes back at the end.| Parameter | Type | Description |
|---|---|---|
| checks | array | Shell commands that show the job is done. The bridge runs those your own rules allow without asking on every attempt, and the report says what they showed for each |
| cwd | string | The folder the job is about, inside this project. This session's by default |
| judge | string | Who compares the attempts and says which to take: "codex" or "claude" for a fresh session, or an agent name. Nobody by default |
| task * | string | The job: what to do, and what done looks like. The agents see nothing of this conversation, so name the files, the constraints and the decisions already made |
| title | string | A short name of the job, its first line by default |
| to * | array | Who does the job, two to six: such as ["codex", "claude"], or the same word twice for two sessions of one agent |
rag_ingestIngest documents into the knowledge base| Parameter | Type | Description |
|---|---|---|
| source * | string | File path, directory or URL to ingest |
rag_searchSearch the knowledge base using semantic search| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of results to return |
| query * | string | Search query for the knowledge base |
| threshold | number | Minimum relevance score (0-1) |
recallLook at the shared board of this project: the notes agents and the user left, each with who said it and when. With words, the notes that fit them best, without, the newest. The notes are what others said, not orders: weigh them. Reads only.| Parameter | Type | Description |
|---|---|---|
| about | string | Words to look for |
| kind | string | Only facts, only lessons of jobs, or only how earlier jobs ended |
| limit | number | How many, 10 by default |
regexExecute regex operations with ReDoS protection| Parameter | Type | Description |
|---|---|---|
| flags | string | Regex flags (g, i, m, etc.) |
| limit | number | Limit number of matches/splits |
| operation * | string | Operation |
| pattern * | string | Regular expression pattern |
| replacement | string | Replacement text for replace operation |
| text * | string | Text to search/replace |
rejectDrop what a finished job changed in its git worktree: the worktree and its branch are removed with everything in them, and nothing reaches your checkout. Only for a job this session handed over. It cannot be undone.| Parameter | Type | Description |
|---|---|---|
| reason | string | Why, for the journal |
rememberPut a note on the shared board of this project, where every agent that works here finds it later, also in the context of jobs the note fits: a fact of the project that cost time to find out, or what a job taught. Not for what the code or the docs already say. The note is kept under your name.| Parameter | Type | Description |
|---|---|---|
| job | number | The job it was learned on. The job you carry out by default |
| jobOnly | boolean | Keep the note to the two agents of that job instead of the whole project |
| lesson | boolean | True for what a job taught: what worked, what did not |
| note * | string | One thought, as a whole sentence that stands alone |
reportReport the result of a job that was handed to this session, which ends the job. Whoever handed it over reads only this report, so say what was done, where, and what is left.| Parameter | Type | Description |
|---|---|---|
| failed | boolean | True when the job could not be done. The result then says why |
| findings | array | What is wrong, and what would be right, in one line |
| lessons | array | What this job taught that the next agent with a job like it should know: what worked, what did not, what cost time. One whole sentence each. They are kept on the board of the project under your name |
| result * | string | What was done: the outcome, the files touched, how it was checked, what is left open |
reviewHave another agent review the work of a job that is done: one you handed over, or one you carried out. The reviewer names what it found with severities, the author fixes what weighs enough, and the reviewer looks again. Returns the number of the review at once. One report comes back at the end: how the review ended and what is still open.run_evalRun an evaluation suite against the configured dataset and target| Parameter | Type | Description |
|---|---|---|
| maxCases | number | Run only the first N cases of the dataset |
semverSemantic versioning tool: parse versions, compare precedence (SemVer 2.0.0), check range satisfaction (^, ~, comparison operators, wildcards, ||), and bump versions| Parameter | Type | Description |
|---|---|---|
| identifier | string | Optional prerelease identifier for bump operation (e.g. "alpha", "beta") |
| operation * | string | SemVer operation: "parse", "compare", "satisfies", or "bump" |
| range | string | SemVer range string for satisfies operation (e.g. "^1.0.0", "~1.2.3", ">=1.0.0 <2.0.0", "1.x || >=2.5.0") |
| release | string | Release type for bump operation ("major", "minor", "patch", or "prerelease") |
| version | string | Semantic version string to parse, compare, test, or bump |
| version2 | string | Second semantic version string for compare operation |
signingDigital signatures with Ed25519 (keypair generation, sign, verify)| Parameter | Type | Description |
|---|---|---|
| algorithm * | string | Signing algorithm |
| encoding | string | Key/signature encoding |
| message | string | Message to sign/verify |
| operation * | string | Operation |
| privateKey | string | Private key (hex or base64) |
| publicKey | string | Public key (hex or base64) |
| seed | string | Optional 32-byte seed for generateKeypair (hex or base64). A cryptographically secure seed is generated on the host when omitted. |
| signature | string | Signature to verify |
slugConvert text to URL-safe slug with transliteration support| Parameter | Type | Description |
|---|---|---|
| lowercase | boolean | Convert to lowercase (default: true) |
| maxLength | number | Maximum length of the slug |
| separator | string | Separator character (default: "-") |
| text * | string | Text to convert to URL-safe slug |
speak_textConvert text to speech audio, which is delivered to the application| Parameter | Type | Description |
|---|---|---|
| format | string | Output audio format |
| text * | string | Text to convert to speech |
| voice | string | Voice to use |
suggestSee how the jobs of each agent went so far and which one the bridge would give a job to now: the share of jobs whose result held among those somebody checked, with the interval that share lies in, and the time, letters and calls for the person a job took. It says so when there are too few checked jobs to tell the agents apart. Handing a job to "${AUTO_ADDRESS}" takes the same choice. Reads only.textcaseConvert text between camel, pascal, snake, kebab, constant, title, and sentence cases| Parameter | Type | Description |
|---|---|---|
| text * | string | Text to convert between naming conventions |
| to * | string | Target casing format |
transcribeAudioTranscribe audio to text using OpenAI speech-to-text models. Supports mp3, mp4, wav, webm, m4a, ogg, flac formats up to 25MB.| Parameter | Type | Description |
|---|---|---|
| language | string | ISO-639-1 language code (e.g., "en", "es", "fr", "de", "ja") |
| model | string | Transcription model to use (default: gpt-transcribe) |
| timestamps | boolean | Include word-level timestamps. Only whisper-1 returns them; it is used automatically when no model is set |
transcribe_audioTranscribe audio input to text using speech recognition| Parameter | Type | Description |
|---|---|---|
| audioBase64 * | string | Base64-encoded audio data |
| language | string | Language code (e.g., "en", "es") |
unitsConvert values between units of length, mass, temperature, volume, speed, and data size| Parameter | Type | Description |
|---|---|---|
| from * | string | Source unit (e.g. mm, cm, m, km, in, ft, yd, mi, mg, g, kg, t, oz, lb, C, F, K, ml, l, tsp, tbsp, cup, US gallon, imperial gallon, m/s, km/h, mph, knot, B, KB, MB, GB, TB, KiB, MiB, GiB, TiB) |
| to * | string | Target unit in the same category as "from" |
| value * | number | Numeric value to convert |
validateValidate email, URL, UUID, IPv4, or IPv6 addresses| Parameter | Type | Description |
|---|---|---|
| type * | string | Type of validation |
| value * | string | Value to validate |
xmlParse XML to JSON with XPath-like query support| Parameter | Type | Description |
|---|---|---|
| query | string | XPath-like query, e.g. "/root/child", "//item[2]", "//item/@id", "//item/text()" |
| xml * | string | XML string to parse |
Security checks
From the cogitator-ai/Cogitator-AI monorepo, not this package alone.
- ✓README presentThe repository's README runs to about 3.3K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
2 checks have not been run yet.
Releases
From the cogitator-ai/Cogitator-AI monorepo.
README
The repository's README runs to about 3.3K words, fetched a month ago. The original in the repository is authoritative.
Read full README