Skip to main content
Glama
api.md1.13 kB
# API Reference Complete API documentation for the test repository. ## Classes ### Client The main client class for interacting with the API. #### Methods ##### `connect()` Establishes a connection to the server. **Parameters:** - `host`: Server hostname - `port`: Server port number **Returns:** Connection object ##### `disconnect()` Closes the connection to the server. **Returns:** None ### Server Server-side implementation. #### Configuration ```json { "host": "localhost", "port": 8080, "timeout": 30 } ``` ## Functions ### `initialize(config)` Initializes the system with the provided configuration. **Parameters:** - `config`: Configuration dictionary **Example:** ```python config = { "host": "localhost", "port": 8080 } initialize(config) ``` ### `shutdown()` Gracefully shuts down the system. ## Error Handling Common errors and their solutions: - `ConnectionError`: Check network connectivity - `TimeoutError`: Increase timeout value - `ConfigError`: Validate configuration file ## See Also - [User Guide](guide.md) - [README](README.md) - [Contributing](CONTRIBUTING.md)

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/oraios/serena'

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