Skip to main content
Glama
by Srish-ty
Context.ts658 B
import mongoose from 'mongoose'; const contextSchema = new mongoose.Schema({ userId: { type: String, required: true, unique: true }, prompts: [{ type: String, required: true }], responses_normal: [{ type: String, required: true }], responses_mcp: [{ type: String, required: true }], createdAt: { type: Date, default: Date.now }, updatedAt: { type: Date, default: Date.now } }); // Update the updatedAt timestamp before saving contextSchema.pre('save', function(next) { this.updatedAt = new Date(); next(); }); export const Context = mongoose.model('Context', contextSchema);

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/Srish-ty/MCP-Testing-interface-for-LLMs'

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