About MCP Server & VSCode Extension
This project pairs an MCP server with a VSCode extension for generating HTML, CSS, and JavaScript applications from natural-language prompts using Google's LLM. It is aimed at developers who want to create and refine web apps within VSCode.
Key features
- 01Generate HTML, CSS, and JavaScript apps
- 02VSCode extension integration
- 03Use Google's LLM to generate code
- 04Open generated files automatically
- 05Preview apps in a browser
Use cases
- 01Scaffolding a web app from a prompt
- 02Generating app files from VSCode
- 03Refining generated code and previewing a web app
MCP support
The MCP server processes prompts and generates code for the VSCode extension. The extension communicates with the server at http://localhost:3000.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Server & VSCode Extension
This repository contains the code for the MCP (Model-Controlled Programming) Server and a VSCode extension that enables developers to create applications using HTML, CSS, and JavaScript through simple prompts, powered by Google's LLM.
Features
- Generate full HTML, CSS, and JavaScript applications using natural language prompts.
- Seamless integration with VSCode for an enhanced developer experience.
- Leverages Google LLM for high-quality AI-generated code.
- MCP Server acts as the backend to process prompts and generate code dynamically.
Installation
MCP Server
- Clone this repository:
git clone https://github.com/your-username/mcp-server-vscode-extension.git - Navigate to the server directory:
cd mcp-server - Install dependencies:
npm install - Start the server:
npm start
VSCode Extension
- Open VSCode and navigate to the
extensionsdirectory:cd vscode-extension - Install dependencies:
npm install - Run the extension in VSCode:
npm run compile - Open the
Run and Debugtab in VSCode and launch the extension.
Usage
- Open VSCode and start the MCP Server.
- Use the command palette (
Ctrl+Shift+P/Cmd+Shift+P) and select "Create App with Prompt". - Enter your prompt describing the application you want to generate.
- The extension will generate and open the required files automatically.
- Edit and refine as needed, then preview the app in a browser.
Configuration
- Ensure that the MCP Server is running before using the extension.
- The extension communicates with the server via
http://localhost:3000. Modify theconfig.jsonif needed.
Contributing
Feel free to fork this repository and contribute via pull requests. Ensure that your code follows best practices and includes documentation where necessary.
License
This project is licensed under the MIT License.
Contact
For any issues or feature requests, please open an issue in the repository or reach out via email at [email protected].
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.