Back to Home
tyranosurasmax icon

MCP-CODEGEN

by tyranosurasmax

Overview

Generates type-safe TypeScript wrappers for MCP, REST, and GraphQL APIs to enable AI agents to interact with external services with 98% token reduction.

Installation

Run Command
node dist/cli.js quickstart

Environment Variables

  • GITHUB_TOKEN
  • STRIPE_API_KEY
  • SHOPIFY_TOKEN
  • SHOPIFY_ACCESS_TOKEN
  • BRAVE_API_KEY

Security Notes

The MCPAdapter and RawMCPClient components use Node.js `child_process.spawn` to execute commands and arguments defined in configuration files (e.g., `command: 'npx'`, `args: [...]`). If an attacker can inject or modify a configuration file, they could execute arbitrary code on the host system. The project explicitly states, 'No sandboxing: Generated code runs with full privileges' and lists sandboxing as a planned feature, indicating a known critical risk. While authentication for external APIs uses environment variables, the ability to run arbitrary child processes from configuration is a significant vulnerability for an AI agent tool.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Avg Tokens139
Stars0
Forks0
Last Update2026-01-06

Tags

codegencode-modeuniversal-apiai-agentstypescript