16 lines
413 B
Python
16 lines
413 B
Python
"""Server configuration for Graphiti MCP Server."""
|
|
|
|
import argparse
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class MCPConfig(BaseModel):
|
|
"""Configuration for MCP server."""
|
|
|
|
transport: str = 'sse' # Default to SSE transport
|
|
|
|
@classmethod
|
|
def from_cli(cls, args: argparse.Namespace) -> 'MCPConfig':
|
|
"""Create MCP configuration from CLI arguments."""
|
|
return cls(transport=args.transport)
|