Skip to main content
Glama

Synapse MCP Server

MIT License
5
  • Linux
  • Apple
file.py1 kB
import synapseclient from typing import Dict, List, Any, Optional from .base import BaseEntityOperations class FileOperations(BaseEntityOperations): """Operations for Synapse File entities.""" def get_file_content_url(self, file_id: str) -> str: """Get the URL for downloading a file's content. Args: file_id: The Synapse ID of the file Returns: URL for downloading the file content """ file_handle = self.synapse_client.get(file_id, downloadFile=False) return file_handle.get('_file_handle', {}).get('url', '') def get_file_metadata(self, file_id: str) -> Dict[str, Any]: """Get metadata for a file. Args: file_id: The Synapse ID of the file Returns: File metadata as a dictionary """ file_entity = self.synapse_client.get(file_id, downloadFile=False) return self.format_entity(file_entity)

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/susheel/synapse-mcp'

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