Skip to main content
Glama
tairqaldy

CodeArchitect MCP

by tairqaldy

CodeArchitect MCP

Your AI conversations shouldn't disappear. CodeArchitect MCP automatically saves and retrieves your discussions with AI assistants, solving context continuity for developers. Never re-explain architecture decisions or code solutions. Built on Model Context Protocol (MCP) - works seamlessly with Cursor and VS Code. Expanding into comprehensive system design and architecture assistance.

Quick Start

1. Install Node.js

Download from nodejs.org (v18+). Open terminal → type node --version to verify.

2. Install Package

npm install -g codearchitect-mcp

3. Configure IDE

Step 1: Open Cursor Settings

  1. Open Cursor (the code editor)

  2. Look at the bottom left corner - click the gear icon ⚙️ (or press Ctrl+, on Windows/Linux, Cmd+, on Mac)

  3. This opens Settings

Step 2: Find MCP Settings

  1. In the Settings search box at the top, type: "MCP" or "Model Context Protocol"

  2. You should see "Tools & MCP" section

  3. Click on it

Step 3: Add CodeArchitect Server

  1. Look for "MCP Servers" or "Add Server" button

  2. Click "Add Server" or the + button

  3. A form will appear. Fill it in:

    • Name: codearchitect (or any name you like)

    • Command: npx

    • Args: -y codearchitect-mcp@latest

  4. Click Save or OK

OR (Alternative Method - Manual Config File):

  1. Close Cursor

  2. Open File Explorer (Windows) or Finder (Mac)

  3. Go to your home folder:

    • Windows: C:\Users\YourName\.cursor\ (create .cursor folder if it doesn't exist)

    • Mac/Linux: ~/.cursor/ (create .cursor folder if it doesn't exist)

  4. Create a file named mcp.json in that folder

  5. Open it in any text editor and paste this:

{
  "mcpServers": {
    "codearchitect": {
      "command": "npx",
      "args": ["-y", "codearchitect-mcp@latest"]
    }
  }
}
  1. Save the file

  2. Open Cursor again

Step 4: Verify It's Working

  1. In Cursor, look at the bottom status bar

  2. You should see "MCP" or "codearchitect" with a green dot (connected)

  3. If you see red or yellow, something went wrong - see troubleshooting below

Step 5: Reload Cursor

  1. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)

  2. Type: "Reload Window"

  3. Press Enter

  4. Cursor will restart - wait for it to finish loading

Step 6: Test It Works

  1. Open any chat/conversation in Cursor

  2. Type: "use codearchitect"

  3. You should see a list of features and workflow guide

  4. If you see an error, see troubleshooting below

Export Chat (How to Save Conversations)

  1. In Cursor chat, look at the top right corner

  2. Click the three dots menu (⋯)

  3. Click "Export Chat"

  4. A save dialog appears

  5. Navigate to: C:\Users\YourName\.codearchitect\exports\ (Windows) or ~/.codearchitect/exports/ (Mac/Linux)

    • Create the exports folder if it doesn't exist

  6. Click Save

  7. The file will be saved as .md format (that's normal)

Need Help?

Stuck at any step? Reach out to Tair:

Step 1: Open Command Palette

  1. Open VS Code (Visual Studio Code)

  2. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)

  3. A box appears at the top - this is the Command Palette

Step 2: Add MCP Server

  1. In the Command Palette box, type: "MCP: Add Server"

  2. You should see "MCP: Add Server..." appear in the list

  3. Click it (or press Enter)

Step 3: Choose Installation Method

  1. A menu appears asking how to install

  2. Choose: "Download with npm package" (click it)

  3. Another box appears asking for the package name

Step 4: Enter Package Name

  1. Type exactly: codearchitect-mcp

  2. Press Enter

  3. VS Code will download and install it (wait a few seconds)

Step 5: Verify It's Working

  1. Look at the bottom right corner of VS Code

  2. You should see "MCP" or "codearchitect" with a green indicator (connected)

  3. If you see red or an error, see troubleshooting below

Step 6: Reload VS Code

  1. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) again

  2. Type: "Developer: Reload Window"

  3. Press Enter

  4. VS Code will restart - wait for it to finish

Step 7: Test It Works

  1. Open any chat/conversation in VS Code

  2. Type: "use codearchitect"

  3. You should see a list of features and workflow guide

  4. If you see an error, see troubleshooting below

Export Chat (How to Save Conversations)

  1. In VS Code chat, press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)

  2. Type: "Export Chat"

  3. Click "Export Chat" from the list

  4. A save dialog appears

  5. IMPORTANT: Name your file something meaningful, like:

    • auth-implementation.json

    • database-design.json

    • api-routes.json

    • (Use .json at the end - VS Code will add it automatically)

  6. Navigate to: C:\Users\YourName\.codearchitect\exports\ (Windows) or ~/.codearchitect/exports/ (Mac/Linux)

    • Create the exports folder if it doesn't exist

  7. Click Save

  8. The file will be saved as .json format (that's normal - CodeArchitect supports this!)

Need Help?

Stuck at any step? Reach out to Tair:

4. Verify Setup

  • Check MCP status: Should show green/connected in IDE

  • Test: Say "use codearchitect" - should see features list

  • If not working: Reload IDE and check MCP logs / Reach out to Tair

5. Start Using

  • "use codearchitect" - See features and workflow guide

  • "use codearchitect store_session" - Save conversation

  • "use codearchitect get_session" - Retrieve session

  • "use codearchitect search_session [query]" - Search across all sessions

Related MCP server: Memory MCP Server

Storage

Main location: ~/.codearchitect/sessions/ (always)

  • Windows: C:\Users\YourName\.codearchitect\sessions\

  • Linux/Mac: ~/.codearchitect/sessions/

Optional: Also save to project folder (specify projectDir)

Exports: ~/.codearchitect/exports/ (for export file detection)

Workflow

  1. Export chat → Save to ~/.codearchitect/exports/

  2. Store session"use codearchitect store_session"

  3. Retrieve"use codearchitect get_session [topic]"

  4. Search"use codearchitect search_session [query]" - Find sessions by keyword

  5. Repeat → Build knowledge base iteratively

Docs


Made with ❤️ by Tair Kaldybayev

Available Tools

4 tools
codearchitect_helpA

Get help about CodeArchitect MCP features. Use when user says "use codearchitect" without specifying a feature, or asks "what can codearchitect do?". Returns available features with examples and next steps.

ParametersJSON Schema
NameRequiredDescriptionDefault
featureNoOptional: Specific feature name to get help for (store_session, get_session, search_session). If not provided, returns help for all features.

TDQS

A4.7/5.0
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses that the tool returns available features with examples and next steps. It doesn't mention side effects or auth, but as a help tool, this is adequate. Slightly improved by stating it's safe and read-only.

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 with no waste. First sentence defines purpose, second provides usage guidance. Front-loaded and efficient.

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

Completeness5/5

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

Given one optional parameter, no output schema, no annotations, the description is complete: it explains purpose, when to use, and what is returned. No missing context.

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

Parameters4/5

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

Schema description coverage is 100%. The description adds value by listing valid feature names (store_session, get_session, search_session) and explaining behavior when feature is not provided, which goes beyond the schema's description.

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 is for getting help about CodeArchitect MCP features, specifying when to use it (when user says 'use codearchitect' without specifying a feature or asks capabilities). It distinguishes from siblings (store_session, get_session, search_session) by being the help tool.

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

Usage Guidelines5/5

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

Explicitly states when to use: when user says 'use codearchitect' without specifying a feature or asks 'what can codearchitect do?'. This provides clear context and implies alternatives.

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

get_sessionA

[CodeArchitect] Retrieve previous conversations to avoid re-explaining.

=== WHEN TO USE ===

  • User says: "use codearchitect get_session", "get that previous conversation", "retrieve session"

  • User mentions something they discussed before

  • User wants to continue work on a previous topic

=== STORAGE BEHAVIOR ===

  • Always retrieves from main folder: ~/.codearchitect/sessions/ (user's home directory)

  • No project detection - all sessions are in main folder

=== USAGE ===

  • No parameters: Lists all sessions

  • filename: Get specific session by topic folder name

  • date: List sessions from specific date (YYYY-MM-DD format)

  • limit: Limit number of results when listing

ParametersJSON Schema
NameRequiredDescriptionDefault
dateNoOptional: Filter sessions by date (YYYY-MM-DD format). Only used when listing sessions.
limitNoOptional: Limit number of sessions returned when listing. Default: no limit
formatNoOutput format. "json" for JSON, "toon" for TOON format (~40% token reduction), "auto" to automatically choose best format. Default: "auto"auto
filenameNoOptional: Specific session filename (topic folder name) to retrieve. If not provided, lists all sessions.

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description fully informs about storage location ('~/.codearchitect/sessions/') and behavior when no parameters are provided (lists all sessions). It does not cover authentication or side effects, but as a read-only tool, this is acceptable.

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?

The description is well-structured with clear headings and sections. While somewhat long, all content is relevant. Minor redundancy (e.g., repeating 'main folder') but overall efficient.

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 description lacks details on what the tool returns (e.g., session content format). There is no output schema, so the description should explain the response structure. The 'format' parameter suggests different outputs, but no description of them is provided.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by explaining each parameter's purpose in the 'USAGE' section, e.g., 'filename: Get specific session by topic folder name'. This goes beyond the schema descriptions.

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 it retrieves previous conversations, using verbs like 'retrieve' and 'list'. However, it does not explicitly differentiate from the sibling tool 'search_session', which could also retrieve conversations but likely via content search.

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 includes a 'WHEN TO USE' section with specific user phrases and scenarios. It does not explicitly state when not to use it or provide alternatives, but the guidance is clear and actionable.

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

search_sessionA

[CodeArchitect] Search across all stored sessions to find relevant conversations.

=== WHEN TO USE ===

  • User says: "use codearchitect search_session [query]", "search for [topic]", "find sessions about [topic]"

  • User wants to find sessions by keyword or topic

  • User remembers discussing something but not the exact session name

=== STORAGE BEHAVIOR ===

  • Always searches in main folder: ~/.codearchitect/sessions/ (user's home directory)

  • Searches through all date folders unless filtered

=== SEARCH BEHAVIOR ===

  • Full-text search across topic, content, and messages

  • Case-insensitive matching

  • Returns relevance scores and context snippets

  • Results sorted by relevance (highest first), then by date (newest first)

=== PARAMETERS ===

  • query (required): Search query string

  • date (optional): Filter by specific date (YYYY-MM-DD format)

  • dateFrom (optional): Filter from date (YYYY-MM-DD format)

  • dateTo (optional): Filter to date (YYYY-MM-DD format)

  • limit (optional): Limit number of results returned

=== RESPONSE === Returns matching sessions with:

  • Relevance score (0-1)

  • Matched snippets showing context

  • Match count

  • Session metadata (topic, date, filename)

ParametersJSON Schema
NameRequiredDescriptionDefault
dateNoOptional: Filter sessions by specific date (YYYY-MM-DD format)
limitNoOptional: Limit number of results returned. Default: no limit
queryYesRequired: Search query string to find in sessions
dateToNoOptional: Filter sessions up to this date (YYYY-MM-DD format)
dateFromNoOptional: Filter sessions from this date onwards (YYYY-MM-DD format)

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description fully covers behavioral traits: storage location (~/.codearchitect/sessions/), search behavior (full-text, case-insensitive, relevance scoring, sorting), and response structure (relevance score, snippets). No contradictions.

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?

Well-structured with clear sections (WHEN TO USE, STORAGE BEHAVIOR, etc.), but verbose with repeated examples (e.g., user phrases). Could be more concise while retaining key information.

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

Completeness5/5

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

Despite no output schema, description details return values (relevance score, snippets, match count, metadata). Covers parameters, search behavior, and storage. Contextually complete for a search tool.

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%, so baseline is 3. Description adds some value like default for limit (not in schema) and format hints, but mostly repeats schema info. No major additional meaning beyond schema.

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 identifies the tool as searching across sessions, using specific verb 'search' and resource 'sessions'. It distinguishes from siblings like store_session and get_session by focusing on search functionality.

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?

Provides explicit user action phrases and scenarios (e.g., 'User remembers discussing something but not the exact session name'), guiding when to use. Lacks explicit when-not-to-use and direct sibling comparison, but 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.

store_sessionA

[CodeArchitect] Save important conversations for future reference.

=== WHEN TO USE ===

  • User says: "use codearchitect store_session", "save this conversation", "store this", "remember this"

  • User wants to keep/remember an important discussion

  • After solving complex problems or making architecture decisions

=== STORAGE BEHAVIOR ===

  1. ALWAYS saves to main folder: ~/.codearchitect/sessions/ (user's home directory)

  2. OPTIONALLY saves to project folder if user specifies projectDir parameter

  3. NEVER auto-detects project - only use projectDir if user explicitly provides it

=== CONVERSATION SOURCE (CHOOSE ONE) ===

OPTION 1: Export File (RECOMMENDED - Most Reliable)

  • User exports conversation from Cursor/VS Code to .codearchitect/exports/ folder

  • Tool automatically detects and processes the export file

  • No need to manually extract conversation

WORKFLOW:

  1. User exports chat: In Cursor/VS Code → three dots (⋯) → "Export Chat"

  2. User saves to: ~/.codearchitect/exports/ folder (main location - always the same)

  3. User says: "use codearchitect store_session"

  4. Tool automatically finds newest export file and stores it

If multiple exports exist:

  • Tool processes newest file (modified in last 10 minutes)

  • If user wants specific file: use exportFilename parameter (e.g., "resolve_mcp")

OPTION 2: Direct Conversation Parameter (Fallback)

  • Only use if export file method doesn't work

  • Extract FULL conversation from your context window

  • Format as plain text with USER/ASSISTANT markers OR JSON array

=== PARAMETERS ===

  • conversation (optional): Direct conversation text/JSON - only use if export file unavailable

  • exportFilename (optional): Pattern to match specific export file (e.g., "resolve_mcp" matches "cursor_resolve_mcp_configuration_issues.md")

  • topic (optional): Session topic - auto-extracted if not provided

  • projectDir (optional): Project directory path - if provided, saves to both main and project folders

  • format (optional): "plain" or "messages" - default "plain"

=== WORKFLOW (EXPORT METHOD) === Step 1: User exports conversation to ~/.codearchitect/exports/ folder (main location) Step 2: User says "use codearchitect store_session" Step 3: Tool detects export file automatically from main exports folder Step 4: Tool parses and stores conversation Step 5: Tool saves to main sessions folder (always) + optionally project folder if projectDir specified

=== ERROR HANDLING === If no export file found:

  • Return clear instructions with OS/IDE-specific export folder path

  • Tell user exactly where to save the export file

  • Provide step-by-step instructions

=== RESPONSE === After saving, return concise message:

  • "Detected export file '[filename]', saved to main: [topic-name]. Next: use codearchitect get_session [topic-name]"

  • Or if projectDir provided: "Detected export file '[filename]', saved to main: [topic-name] and project: [topic-name]. Next: use codearchitect get_session [topic-name]"

ParametersJSON Schema
NameRequiredDescriptionDefault
topicNoOptional: Session topic/title. If not provided, will be auto-extracted from conversation.
formatNoFormat of conversation input. "plain" for text, "messages" for JSON array. Default: "plain"plain
projectDirNoOptional: Project directory path. If specified, saves to BOTH main folder (~/.codearchitect/sessions/) AND project/.codearchitect/sessions/. Always saves to main folder first, then also to project folder.
conversationNoOPTIONAL: Direct conversation text/JSON. Only use if export file method unavailable. If not provided, tool will automatically look for export file in .codearchitect/exports/ folder. Format as plain text with USER/ASSISTANT markers OR as JSON array [{"role": "user/assistant", "content": "..."}].
exportFilenameNoOPTIONAL: Pattern to match specific export file (case-insensitive). Example: "resolve_mcp" matches "cursor_resolve_mcp_configuration_issues.md". If not provided, tool uses newest export file (modified in last 10 minutes).

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description fully discloses behavior: storage locations (main folder always, project folder optionally), no auto-detection, export file vs direct conversation methods, error handling, and response format. No contradictions.

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?

The description is lengthy but well-structured with clear sections (WHEN TO USE, STORAGE BEHAVIOR, PARAMETERS, WORKFLOW, ERROR HANDLING, RESPONSE). It is front-loaded with purpose. Some redundancy exists, but overall it is organized.

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

Completeness5/5

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

For a tool with 5 parameters, no output schema, and no annotations, the description is exhaustive: it covers purpose, usage, behavior, parameter guidance, workflow steps, error handling, and response format, leaving no gaps.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by explaining when to use each parameter (e.g., 'only use if export file unavailable' for conversation) and providing workflow context, making semantics clearer.

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's purpose: 'Save important conversations for future reference.' It differentiates from siblings (get_session, search_session) by focusing on saving, and provides explicit usage examples like 'save this conversation'.

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

Usage Guidelines5/5

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

A dedicated 'WHEN TO USE' section lists specific user phrases and contexts (e.g., after solving complex problems). It implicitly excludes retrieval use cases handled by sibling tools.

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. 4 tool updatesv0.1.8
    • First observedcodearchitect_help
    • First observedget_session
    • First observedsearch_session
    • First observedstore_session

TDQS

A4.4/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: help provides guidance, store saves sessions, get retrieves sessions, and search finds sessions by content. No overlap or ambiguity between them.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern: codearchitect_help, store_session, get_session, search_session. The convention is uniform and predictable.

Tool Count5/5

With 4 tools covering help, store, get, and search, the set is well-scoped for session management. Neither too few nor too many tools for the domain.

Completeness4/5

The set covers the main lifecycle (store, get, search) and help, which is solid. Minor gaps exist like missing update or delete operations, but the core functionality is complete for session storage and retrieval.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers