get-base-url
Retrieve the base API URL for mempool.space, enabling access to real-time Bitcoin blockchain and mempool data via the Mempool MCP Server.
Instructions
Returns mempool.space base url api
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Inline handler function for the "get-base-url" MCP tool. It calls HelpService.getBaseUrl() to retrieve the base URL and returns it formatted as MCP text content.async () => { const text = await this.service.getBaseUrl(); return { content: [{ type: "text", text }] }; }
- src/interface/controllers/HelpToolsController.ts:14-23 (registration)Registers the "get-base-url" tool on the MCP server, specifying the name, description, and inline handler.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 }] }; } ); }
- The core logic for retrieving the base URL, formatting it as a string using the service's baseUrl property set in the constructor.async getBaseUrl(): Promise<string> { return `base URL: ${this.baseUrl}`; }