"""Public exports for the Synapse MCP package."""
from .app import auth, health_check, initialize_server, mcp
from .connection_auth import get_synapse_client
from .context_helpers import (
ConnectionAuthError,
first_successful_result,
get_entity_operations,
get_request_context,
require_request_context,
)
from .resources import (
get_dataset_annotations,
get_dataset_by_id_or_name,
get_dataset_children,
get_dataset_parent,
get_entity_annotations_resource,
get_entity_by_id_or_name,
get_entity_children_resource,
get_file_annotations,
get_file_by_id_or_name,
get_file_children,
get_file_parent,
get_folder_annotations,
get_folder_by_id_or_name,
get_folder_children,
get_folder_parent,
get_project_annotations,
get_project_by_id_or_name,
get_project_children,
get_project_parent,
get_table_annotations,
get_table_by_id_or_name,
get_table_children,
get_table_parent,
query_entities_by_parent,
query_entities_by_type,
)
from .tools import (
get_entity,
get_entity_annotations,
get_entity_children,
search_synapse,
)
# Deprecated legacy helpers preserved for API compatibility
def initialize_authentication():
"""Deprecated placeholder for the old global authentication flow."""
print("WARNING: initialize_authentication() is deprecated. Authentication is now per-connection.")
return False, False
def authenticate_synapse_client(access_token: str):
"""Deprecated placeholder for the old global authentication flow."""
print("WARNING: authenticate_synapse_client() is deprecated. Authentication is now per-connection.")
return False
def is_authenticated():
"""Deprecated placeholder for the old global authentication flow."""
print("WARNING: is_authenticated() is deprecated. Use connection_auth.is_authenticated(ctx) instead.")
return False
def is_using_pat_auth():
"""Deprecated placeholder for the old global authentication flow."""
print("WARNING: is_using_pat_auth() is deprecated. Check user_auth_info from connection context.")
return False
__all__ = [
"auth",
"authenticate_synapse_client",
"ConnectionAuthError",
"first_successful_result",
"get_dataset_annotations",
"get_dataset_by_id_or_name",
"get_dataset_children",
"get_dataset_parent",
"get_entity",
"get_entity_annotations",
"get_entity_annotations_resource",
"get_entity_by_id_or_name",
"get_entity_children",
"get_entity_children_resource",
"get_entity_operations",
"get_file_annotations",
"get_file_by_id_or_name",
"get_file_children",
"get_file_parent",
"get_folder_annotations",
"get_folder_by_id_or_name",
"get_folder_children",
"get_folder_parent",
"get_project_annotations",
"get_project_by_id_or_name",
"get_project_children",
"get_project_parent",
"get_synapse_client",
"get_request_context",
"get_table_annotations",
"get_table_by_id_or_name",
"get_table_children",
"get_table_parent",
"health_check",
"initialize_authentication",
"initialize_server",
"is_authenticated",
"is_using_pat_auth",
"mcp",
"query_entities_by_parent",
"query_entities_by_type",
"require_request_context",
"search_synapse",
]