get-base-url
Retrieve the base API URL for accessing Bitcoin mempool data through the Mempool MCP Server, enabling AI clients to query real-time blockchain information.
Instructions
Returns mempool.space base url api
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/interface/controllers/HelpToolsController.ts:14-23 (registration)Registers the 'get-base-url' MCP tool with server.tool(), providing description and an inline async handler that fetches the base URL from HelpService and formats the response.private registerGetBaseURL(): void { this.server.tool( "get-base-url", "Returns mempool.space base url api", async () => { const text = await this.service.getBaseUrl(); return { content: [{ type: "text", text }] }; } ); }
- Core helper method in HelpService that returns the formatted base URL string, which is used by the tool's handler.async getBaseUrl(): Promise<string> { return `base URL: ${this.baseUrl}`; }