Skip to main content
Glama

Weather & Stock MCP Server

by Jeetinida
date-to-primitive.js523 B
'use strict'; var anObject = require('../internals/an-object'); var ordinaryToPrimitive = require('../internals/ordinary-to-primitive'); var $TypeError = TypeError; // `Date.prototype[@@toPrimitive](hint)` method implementation // https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive module.exports = function (hint) { anObject(this); if (hint === 'string' || hint === 'default') hint = 'string'; else if (hint !== 'number') throw new $TypeError('Incorrect hint'); return ordinaryToPrimitive(this, hint); };

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/Jeetinida/stocknews-mcp'

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