MCP Server: TypeScript Project Initializer

by Flow-Research

134 downloads
Not rated
GitHub

Description

# MCP Server: TypeScript Project Initializer This project implements a Model Context Protocol (MCP) server that provides a tool to initialize a basic TypeScript project structure. The server exposes a single tool, `init-typescript`, which takes a project name and destination…

About

# MCP Server: TypeScript Project Initializer This project implements a Model Context Protocol (MCP) server that provides a tool to initialize a basic TypeScript project structure. The server exposes a single tool, `init-typescript`, which takes a project name and destination folder as input and creates: * A project…

Details

Author
Flow-Research
Downloads
134
Categories
Other

- Exposes a single tool: init-typescript.
- Takes a project name and destination folder as input.
- Runs npm init -y to create package.json.
- Installs typescript as a dev dependency.
- Creates tsconfig.json with basic settings.
- Adds build and start npm scripts.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server: TypeScript Project Initializer
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

The server can be run using the provided Makefile (make install, make build, make inspect) or manually (npm install, npm run build, then node build/index.js). It does not require any environment variables; it listens for MCP tool calls from the client.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server: typescript project initializer": {
            "mcp-server-typescript-init": {
                "command": "npx",
                "args": [
                    "@modelcontextprotocol/inspector",
                    "node",
                    "build/index.js"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-typescript-init": {
        "command": "npx",
        "args": [
            "@modelcontextprotocol/inspector",
            "node",
            "build/index.js"
        ]
    }
}

MCP Server: TypeScript Project Initializer

This project implements a Model Context Protocol (MCP) server that provides a tool to initialize a basic TypeScript project structure.

The server exposes a single tool, init-typescript, which takes a project name and destination folder as input and creates:

A project directory.
package.json (via npm init -y).
Installs typescript as a dev dependency.
tsconfig.json with basic settings.
A src directory with a simple index.ts file.
Adds build and start scripts to package.json.

Prerequisites

Node.js and npm (or a compatible package manager)
Make

Usage with Makefile

A Makefile is provided for common tasks. Run these commands from the root directory of this project (mcp-server-typescript-init):

Install Dependencies:

    make install

(Runs npm install)

Build the Project:

    make build

(Runs npm run build, which compiles TypeScript to JavaScript in the build/ directory)

Inspect the Server:

    make inspect

(Runs make build first, then starts the MCP inspector using npx @modelcontextprotocol/inspector node build/index.js)

Install, Build, and Inspect (Default):

    make

or
    make all

(Runs make install, make build, and make inspect sequentially)

Clean Project:

    make clean

(Removes node_modules, build, dist, and
.tsbuildinfo files)

Running Manually

If you prefer not to use Make:

1. Install dependencies: npm install
2. Build the project: npm run build
3. Run the server (e.g., with the inspector):

    npx @modelcontextprotocol/inspector node build/index.js

Or run the server directly if connecting with a client:
    node build/index.js

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.