A new interface for crafting personal software
- Greeting serverlet: Greet a person by name
- HTML to Markdown serverlet: Convert a webpage to markdown format
- Bun (v1.0.0 or higher)
-
Clone the repository:
git clone https://github.com/yourusername/tiles.git cd tiles
-
Install dependencies:
bun install
To run the development server:
bun run start
This will start the server at http://localhost:3000.
To build the project:
bun run build
This will:
- Build the JavaScript bundle
- Extract the HTML, JavaScript, and manifest from the source code
- Save them to the
build
directory
To serve the built files:
bun run serve
This will start a server at http://localhost:3000 that serves the files from the build
directory.
index.ts
: Main entry point for the applicationbuild.js
: Build script to extract HTML and JavaScript from index.tsserver.js
: Server script to serve the built filesbuild/
: Directory containing the built filesindex.html
: HTML file for the web appletapplet.js
: JavaScript file for the web appletmanifest.json
: Manifest file for the web appletindex.js
: Built JavaScript bundle
This project demonstrates how to integrate with mcp.run serverlets. It includes:
- Session management with MCP
- Calling MCP tools with proper error handling
- Fallback to mock implementations for demonstration purposes
See the LICENSE file for details.