Skip to main content
Glama
constants.ts1.34 kB
// Constants for Foundry MCP Bridge Module /** * Module constants */ export const MODULE_ID = 'foundry-mcp-bridge'; export const MODULE_TITLE = 'Foundry MCP Bridge'; /** * Socket event names */ export const SOCKET_EVENTS = { MCP_QUERY: 'mcp-query', MCP_RESPONSE: 'mcp-response', BRIDGE_STATUS: 'bridge-status', PING: 'ping', PONG: 'pong', } as const; /** * Default configuration values */ export const DEFAULT_CONFIG = { MCP_HOST: 'localhost', MCP_PORT: 31415, CONNECTION_TIMEOUT: 10, RECONNECT_ATTEMPTS: 5, RECONNECT_DELAY: 1000, LOG_LEVEL: 'info', } as const; /** * Connection states */ export const CONNECTION_STATES = { DISCONNECTED: 'disconnected', CONNECTING: 'connecting', CONNECTED: 'connected', RECONNECTING: 'reconnecting', } as const; /** * Token dispositions */ export const TOKEN_DISPOSITIONS = { HOSTILE: -1, NEUTRAL: 0, FRIENDLY: 1, } as const; /** * Error messages */ export const ERROR_MESSAGES = { NOT_INITIALIZED: 'Data provider not initialized', NOT_CONNECTED: 'Not connected to Foundry VTT', CHARACTER_NOT_FOUND: 'Character not found', SCENE_NOT_FOUND: 'Scene not found', ACCESS_DENIED: 'Access denied - feature is disabled', QUERY_TIMEOUT: 'Query timeout', UNKNOWN_METHOD: 'Unknown method', BRIDGE_NOT_RUNNING: 'MCP Bridge is not running', } as const;

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/adambdooley/foundry-vtt-mcp'

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