Skip to main content
Glama
RestDB

Codehooks.io MCP Server

by RestDB

deploy_code

Deploy JavaScript code to create serverless APIs and backends on Codehooks.io, enabling instant CRUD operations and database management.

Instructions

Deploy JavaScript code to Codehooks.io project.

MINIMAL WORKING EXAMPLE:

import { app } from 'codehooks-js'; app.get('/hello', (req, res) => { res.json({ message: 'Hello, world!' }); }); // MANDATORY: bind to serverless runtime export default app.init();

INSTANT CRUD BACKEND:

import { app } from 'codehooks-js'; // Creates complete CRUD API for any collection (no schema required) app.crudlify(); export default app.init();

KEY REQUIREMENTS:

  • Always import from 'codehooks-js'

  • Always end with export default app.init();

  • Use app.get(), app.post(), app.put(), app.delete() for routes

  • For database: const conn = await Datastore.open(); conn.insertOne(collection, data);

  • Use app.crudlify() to create complete CRUD backend with no schema required

  • Package.json will be auto-generated if not provided

DOCUMENTATION:

  • Use 'docs' tool for more information

  • Online ChatGPT prompt: https://codehooks.io/docs/chatgpt-backend-api-prompt

  • Online Workflow API: https://codehooks.io/docs/workflow-api

  • LLM-optimized docs: https://codehooks.io/llms.txt and https://codehooks.io/llms-full.txt

Note: Codehooks.io has CORS built-in by default, so no additional CORS middleware is needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesArray of files to deploy
mainNoApplication main file (defaults to 'index')
jsonNoOutput JSON format
projectIdNoProject ID
spaceIdNoSpace IDdev

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RestDB/codehooks-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server