Skip to main content
Glama
campertunity

Campertunity MCP Server

Official
by campertunity
client.ts1.16 kB
const CAMPERTUNITY_API_URL = process.env.CAMPERTUNITY_API_URL || "https://campertunity.com/public/api"; const CAMPERTUNITY_API_KEY = process.env.CAMPERTUNITY_API_KEY; if (!CAMPERTUNITY_API_KEY) { throw new Error("CAMPERTUNITY_API_KEY environment variable is required"); } export class CampertunityClient { async get(path: string) { const response = await fetch(`${CAMPERTUNITY_API_URL}${path}`, { method: "GET", headers: { Authorization: `Bearer ${CAMPERTUNITY_API_KEY}`, }, }); if (!response.ok) { throw new Error(`Campertunity API error: ${response.statusText}`); } return response.json(); } async post(path: string, data: any) { const response = await fetch(`${CAMPERTUNITY_API_URL}${path}`, { method: "POST", headers: { Authorization: `Bearer ${CAMPERTUNITY_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify(data), }); if (!response.ok) { throw new Error(`Campertunity API error: ${response.statusText}`); } return response.json(); } } export const campertunityClient = new CampertunityClient();

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/campertunity/mcp-server'

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