Skip to main content
Glama
register.ts1.87 kB
import type { FastMCP, Tool as FastMCPTool, ToolParameters } from 'fastmcp'; import { initialContextGuard } from './context/initial-context-guard.js'; import { getInitialContextTool } from './context/get-initial-context.js'; import { getProposalTemplatesTool } from './favorites/get-proposal-templates.js'; import { getAutomationSetsTool } from './automations/get-automation-sets.js'; import { getDesignTemplatesTool } from './settings/get-design-templates.js'; import { getEmailTemplatesTool } from './settings/get-email-templates.js'; import { getTextTemplatesTool } from './settings/get-text-templates.js'; import { getAccountUsersTool } from './account/get-users.js'; import { getContactDetailsTool } from './contacts/get-contact-details.js'; import { searchContactOrganisationsTool } from './contacts/search-contact-organisations.js'; import { searchContactPeopleTool } from './contacts/search-contact-people.js'; import { createContactTool } from './contacts/create-contact.js'; import { searchProposalsTool } from './proposals/search-proposals.js'; import { getProposalDirectoriesTool } from './proposals/get-proposal-directories.js'; import { createProposalTool } from './proposals/create-proposal.js'; import { sendProposalTool } from './proposals/send-proposal.js'; const tools = [ getInitialContextTool, getAccountUsersTool, getAutomationSetsTool, getContactDetailsTool, getDesignTemplatesTool, getEmailTemplatesTool, getProposalDirectoriesTool, getProposalTemplatesTool, getTextTemplatesTool, searchContactOrganisationsTool, searchContactPeopleTool, searchProposalsTool, createContactTool, createProposalTool, sendProposalTool, ]; export function registerTools({ server }: { server: FastMCP }) { (tools as unknown as FastMCPTool<Record<string, unknown>, ToolParameters>[]).map(initialContextGuard).forEach((tool) => server.addTool(tool)); }

Implementation Reference

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

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