Skip to main content
Glama

ServiceNow MCP Server

config.py1.31 kB
""" Configuration module for the ServiceNow MCP server. """ from enum import Enum from typing import Optional from pydantic import BaseModel, Field class AuthType(str, Enum): """Authentication types supported by the ServiceNow MCP server.""" BASIC = "basic" OAUTH = "oauth" API_KEY = "api_key" class BasicAuthConfig(BaseModel): """Configuration for basic authentication.""" username: str password: str class OAuthConfig(BaseModel): """Configuration for OAuth authentication.""" client_id: str client_secret: str username: str password: str token_url: Optional[str] = None class ApiKeyConfig(BaseModel): """Configuration for API key authentication.""" api_key: str header_name: str = "X-ServiceNow-API-Key" class AuthConfig(BaseModel): """Authentication configuration.""" type: AuthType basic: Optional[BasicAuthConfig] = None oauth: Optional[OAuthConfig] = None api_key: Optional[ApiKeyConfig] = None class ServerConfig(BaseModel): """Server configuration.""" instance_url: str auth: AuthConfig debug: bool = False timeout: int = 30 @property def api_url(self) -> str: """Get the API URL for the ServiceNow instance.""" return f"{self.instance_url}/api/now"

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/vparlapalli490/MCP'

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