Integrates with Firebase Firestore and Authentication to support remote project management and data storage for mobile application development.
Provides tools for managing remote assets and image uploads using Google Cloud Storage, including support for weekly expiring asset buckets.
Enables remote file synchronization and management through an integrated proxy, supporting rclone operations like bisync for mobile project assets.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pistachio MCP Servercalculate 256 times 12"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Pistachio MCP Server
A remote MCP (Model Context Protocol) server built with Node.js and TypeScript for mobile app development. This server provides tools and prompts for remote project management, testing, and asset search.
Prerequisites
Before setting up this repository, ensure you have the following installed:
Node.js (v20 or higher)
Yarn (v4.10.3 or compatible version)
Git
Setup Instructions
1. Clone the Repository
2. Install Yarn (if not already installed)
This project uses Yarn 4.10.3 as the package manager. If you don't have Yarn installed or need to upgrade:
3. Install Dependencies
Install all project dependencies using Yarn:
This will install all dependencies listed in package.json, including:
@modelcontextprotocol/sdk- MCP SDKfirebase- Firebase SDK for Firestore and Auth@google-cloud/storage- Google Cloud Storage clientzod- Schema validationTypeScript and development dependencies
4. Configure Environment Variables
Create a .env file in the root directory (if needed for custom configuration):
Note: The project uses hardcoded Firebase configuration in src/utils/ServerStorageUtils.ts. For production, you may want to move this to environment variables.
5. Configure Google Cloud Storage (Optional)
If you plan to use Google Cloud Storage features (image uploads), you'll need to set up authentication:
Create a service account in Google Cloud Console
Download the service account key as a JSON file
Set the environment variable:
Alternatively, if running on Google Cloud Platform, authentication is handled automatically.
6. Build the Project
Compile TypeScript to JavaScript:
This will generate the dist/ directory with compiled JavaScript files.
7. Verify Installation
Run the tests to verify everything is set up correctly:
Running the Server
Development Mode
Run the server in development mode with hot reload:
The server will start on port 3001 by default (or the port specified by the PORT environment variable).
Production Mode
Using PM2
PM2 is a process manager that provides automatic restarts, log rotation, and process monitoring. To use PM2:
Install PM2 log rotation module (first time only):
pm2 install pm2-logrotate pm2 set pm2-logrotate:max_size 10M pm2 set pm2-logrotate:retain 30 pm2 set pm2-logrotate:compress true pm2 set pm2-logrotate:rotateInterval "0 0 * * *"Note: PM2 uses the
pm2-logrotatemodule for automatic log rotation. The configuration above sets:max_size: Maximum log file size before rotation (10M)retain: Number of rotated log files to keep (30 days)compress: Compress old log files to save spacerotateInterval: Time-based rotation schedule using cron format"0 0 * * *"(daily at midnight)
Build and start the server:
yarn build yarn pm2:startMonitor the server:
# View logs yarn pm2:logs # Check status yarn pm2:statusManage the server:
# Restart yarn pm2:restart # Stop yarn pm2:stop # Remove from PM2 yarn pm2:delete
Log Files:
Combined logs:
logs/combined.log(all stdout and stderr)Error logs:
logs/error.log(error-level logs only)Logs are rotated daily at midnight and retained for 30 days
Old logs are automatically compressed
Direct Node Execution
Build and run the compiled server directly:
Direct Execution (Development)
Run TypeScript directly without building:
Server Configuration
Default Settings
Port: 3001 (configurable via
PORTenvironment variable)Workers: 2 (configurable via
NUM_WORKERSenvironment variable)Host:
0.0.0.0(accessible from remote clients)
MCP Endpoint
The server exposes an MCP endpoint at /message that accepts:
GET: Establish SSE stream for receiving messages
POST: Send MCP requests
OPTIONS: CORS preflight requests
Example endpoint: http://localhost:3001/message
Managing the Proxy
Build the project first to ensure the proxy is compiled:
Then manage the processes via PM2:
Rclone
Client Configuration
When configuring your local rclone client, point it to the proxy port (8080) instead of the raw rclone port:
Development
Running Tests
Linting
TypeScript Compilation Errors
If you encounter TypeScript errors:
License
MIT