whatisgithub

What is aias-spec?

dianakerim/aias-spec — explained in plain English

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 3/5LicenseSetup · easy

In one sentence

A code generator that reads special comments above your functions and produces a working MCP server so AI tools can call them.

Mindmap

mindmap
  root((aias-spec))
    What it does
      Parses @ai annotations
      Generates MCP server
      Validates parameters
    Tech stack
      TypeScript
      Node.js
      MCP SDK
    Use cases
      Turn functions into AI tools
      Skip writing OpenAPI specs
      Generate starter MCP servers
    Audience
      Developers
    Setup
      Requires Node 20 plus
      Run aias generate

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Turn an existing function into an AI-callable tool without writing an OpenAPI spec.

USE CASE 2

Let Claude Desktop or another MCP client call your app's functions directly.

USE CASE 3

Generate a starter MCP server for a new feature and refine the annotations as requirements grow.

USE CASE 4

Enforce that AI tools decline instead of guess when required information is missing.

What is it built with?

TypeScriptNode.jsMCP SDK

How does it compare?

dianakerim/aias-spec0xradioac7iv/tempfs52191314/web-agent-proxy-sdk
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatemoderate
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires Node.js 20 or newer, generated server files should not be hand-edited.

MIT license, meaning you can use, modify, and distribute it freely, including for commercial purposes, as long as you keep the copyright notice.

So what is it?

aias-spec turns ordinary annotated functions in your JavaScript or TypeScript code into a working MCP server, which is the kind of server that lets AI tools like Claude Desktop call your code as a tool. Instead of writing an OpenAPI spec by hand or building a server from scratch, you write special comments, starting with @ai, directly above a function describing what it does, what parameters it takes, and how the AI should confirm the action back to the user. Running the aias generate command reads those comments and produces the server code for you. The project claims a benchmark result showing that tools generated this way made no wrong tool-call errors across 25 test requests, and correctly refused to guess when a request was missing required information, compared to a plain conversion from an OpenAPI spec. To use it, you need Node.js version 20 or newer. After installing the package, you run a setup command to create a config file, then annotate your functions with the special comments and run the generate command. The tool checks your annotations carefully and will fail with a clear error, pointing to the exact file and line, if a parameter name does not match your real function, if a confirmation message references an unknown parameter, or if required information is missing. Functions marked private are never turned into callable tools. The tool currently understands three common ways of writing functions in JavaScript and TypeScript, including standalone exported functions, exported constants that hold functions, and class methods, but does not yet support certain other shapes, such as functions written directly inside object literals. There are also different compliance levels, where the basic level gives you a fully working tool right away, while higher levels only generate a skeleton that still needs manual wiring for things like callbacks. The generated server code is meant to be treated like other auto-generated code and not edited by hand. The project is released under the MIT license.

Copy-paste prompts

Prompt 1
Show me how to write an @ai: annotation for a function that adds a new item to a list.
Prompt 2
Walk me through installing aias-spec and running aias generate for the first time.
Prompt 3
Help me debug why my annotated function isn't showing up as an MCP tool after generation.
Prompt 4
Explain the difference between basic, standard, and full compliance levels in aias-spec.

Frequently asked questions

What is aias-spec?

A code generator that reads special comments above your functions and produces a working MCP server so AI tools can call them.

What language is aias-spec written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, MCP SDK.

What license does aias-spec use?

MIT license, meaning you can use, modify, and distribute it freely, including for commercial purposes, as long as you keep the copyright notice.

How hard is aias-spec to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is aias-spec for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.