Abcoder logo

Abcoder

Organization
cloudwego

deep, reliable and confidential coding-context

Publishercloudwego
Repositoryabcoder
LanguageGo
Forks
58
Stars
390
Available tools
0
Transport typestdio
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Abcoder exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    390 stars and 58 forks from the linked repository.

ABCoder: AI-Based Coder(AKA: A Brand-new Coder)

ABCoder

Overview

ABCoder, an AI-oriented Code-processing Framework, is designed to enhance and extend the coding context for Large-Language-Model (LLM), finally boosting the development of AI-assisted-programming applications.

Features

  • Universal Abstract-Syntax-Tree (UniAST), a language-independent, AI-friendly specification of code information, providing a boundless, flexible and structural coding context for both AI and humans.

  • General Parser, parses arbitrary-language codes to UniAST.

  • General Writer transforms UniAST back to code.

  • Code-Retrieval-Augmented-Generation (Code-RAG), provides a set of MCP tools to help the LLM understand code repositories precisely and locally. And it can support both in-workspace and out-of-workspace third-party libraries simultaneously -- I guess you are thinking about DeepWiki and context7, but ABCoder is more reliable and confidential -- no need to wait for their services to be done, and no worry about your codes will be uploaded!

Based on these features, developers can easily implement or enhance their AI-assisted programming applications, such as reviewing, optimizing, translating, etc.

Universal Abstract-Syntax-Tree Specification

see UniAST Specification

Quick Start

Claude Code Integration

ABCoder provides deep integration with Claude Code through the AST-Driven Coding workflow, enabling hallucination-free code analysis and precise execution. Check Claude Code Specification for more details.

Setup

Use the init-spec command to automatically configure Claude Code integration for your project:

bash
# Install ABCoder
go install github.com/cloudwego/abcoder@latest

# Run init-spec in your project directory (optional: specify target path)
cd /path/to/your/project
abcoder init-spec

The init-spec command will:

  1. Copy .claude directory to your project root
  2. Configure MCP servers in ~/.claude.json:
    • abcoder: for code analysis using AST
    • sequential-thinking: for complex problem decomposition
  3. Replace all {{CLAUDE_HOME_PATH}} placeholders with actual project paths

Start Coding with Claude Code

Once setup, you can start coding with Claude Code:

  1. Start Claude Code in your project directory
  2. Use slash common /abcoder:schedule <problem_desc> to address your feature/requirement/issue, and ABCoder will help you analyze the codebase and design a technical solution.
  3. Once all questions are set, use slash common /abcoder:task <task_name> to create a coding task(specification)
  4. Recheck the task using /abcoder:recheck <task_name> before real implementation
  5. Begin coding! Claude Code will process the task step by step according to the specification, leveraging the power of AST-driven analysis.

AST-Driven Coding Workflow

.claude/hooks provide a 4-layer analysis chain from repository to node details:

list_repos → get_repo_structure → get_package_structure → get_file_structure → get_ast_node
     │              │                      │                       │                    │
     └── repo_name  └── mod/pkg list       └── file list           └── node list        └── dependencies/references

Claude Code Slash Commands

.claude/commands provide three custom slash commands to streamline development:

CommandFunctionDescription
/abcoder:schedule <task_desc>Design implementationAnalyze codebase by using ABCoder, design technical solution
/abcoder:task <name>Create coding taskGenerate standardized CODE_TASK document
/abcoder:recheck <task>Verify solutionCritically check CODE_TASK feasibility, useful when a CODE_TASK contains external dependencies

Workflow

User Request
    │
    ▼
/abcoder:schedule ──────────→ Design Solution (ABCoder Analysis)
    │                          │
    ▼                          ▼
/abcoder:task ─────────→ CODE_TASK (with Technical Specs, including accurate `get_ast_node` call args)
    │                          │
    ▼                          ▼
/abcoder:recheck ────→ Verify Solution (ABCoder Validation. After `/abcoder:task` Claude Code will tell you what the external dependencies CODE_TASK contains, use `/abcoder:recheck` to analyze external ast_node and technical detail with ABCoder)
    │                          │
    ▼                          ▼
Start coding(sub-agent) ─────────→ Execute Implementation

Configuration Files

FilePurpose
CLAUDE.mdCore AST-Driven Coder role definition
settings.jsonHooks and permissions configuration
hooks/Automation scripts (parse/prompt/reminder)
commands/Slash command definitions (abcoder:task/abcoder:schedule/abcoder:recheck)
tmpls/ABCODER_CODE_TASK.mdCoding task template

Dependencies

  • Claude Code CLI
  • ABCoder MCP server (provides mcp__abcoder tools)
  • Sequential-thinking MCP server (provides mcp__sequential_thinking tools, automatically configured by init-spec)

For detailed configuration, see claude-code-spec.md

Watch the demo video here

Use ABCoder as a MCP server

  1. Install ABCoder:

    bash
    go install github.com/cloudwego/abcoder@latest
  2. Use ABCoder to parse a repository to UniAST (JSON)

    bash
    abcoder parse {language} {repo-path} -o xxx.json

    ABCoder will try to install any dependency automatically. In case of failure (or if you want to customize installation), refer to the docs.

    For example, to parse a Go repository:

    bash
    git clone https://github.com/cloudwego/localsession.git localsession
    abcoder parse go localsession -o /abcoder-asts/localsession.json
  3. Integrate ABCoder's MCP tools into your AI agent.

    json
    {
        "mcpServers": {
            "abcoder": {
                "command": "abcoder",
                "args": [
                    "mcp",
                    "{the-AST-directory}"
                ]
            }
        }
    }
  4. Enjoy it!

    Try to click and watch the video below:

Tips:

Use ABCoder as an Agent (WIP)

You can also use ABCoder as a command-line Agent like:

bash
export API_TYPE='{openai|ollama|ark|claude}' 
export API_KEY='{your-api-key}' 
export MODEL_NAME='{model-endpoint}' 
abcoder agent {the-AST-directory}

For example:

bash
$ API_TYPE='ark' API_KEY='xxx' MODEL_NAME='zzz' abcoder agent ./testdata/asts

Hello! I'm ABCoder, your coding assistant. What can I do for you today?

$ What does the repo 'localsession' do?

The `localsession` repository appears to be a Go module (`github.com/cloudwego/localsession`) that provides functionality related to managing local sessions. Here's a breakdown of its structure and purpose:
...
If you'd like to explore specific functionalities or code details, let me know, and I can dive deeper into the relevant files or nodes. For example:
- What does `session.go` or `manager.go` implement?
- How is the backup functionality used?

$ exit
  • NOTICE: This feature is Work-In-Progress. It only supports code analysis at present.

Supported Languages

ABCoder currently supports the following languages:

LanguageParserWriter
Go✅✅
Rust✅Coming Soon
C✅Coming Soon
Python✅Coming Soon
JS/TS✅Coming Soon
Java✅Coming Soon

Getting Involved

We encourage developers to contribute and make this tool more powerful. If you are interested in contributing to ABCoder project, kindly check out our guide:

Note: This is a dynamic README and is subject to changes as the project evolves.

Contact Us

   

Contributors

Thank you for your contribution to ABCoder!

Contributors

License

This project is licensed under the Apache-2.0 License.

Use Abcoder MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Abcoder is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Abcoder as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Abcoder MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "abcoder": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Abcoder MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Abcoder MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Abcoder to help me with this task?
Abcoder
Sure. I read it.
Here is what I found using Abcoder.

Frequently asked questions

What is the Abcoder MCP server used for?

Abcoder is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Abcoder MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Abcoder with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Abcoder MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Abcoder connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Abcoder MCP to TypingMind?

Abcoder runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Abcoder MCP provide in TypingMind?

Abcoder exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Abcoder MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Abcoder requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇