Skip to main content
Glama
bigjeager

Bear App MCP Server

by bigjeager

bear_get_today

Retrieve today's notes from Bear App using search filters and API authentication to access daily content.

Instructions

Get today's notes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNoSearch term
tokenNoBear API token
show_windowNoShow Bear window

Implementation Reference

  • The main handler function for the 'bear_get_today' tool. It constructs parameters from input arguments (search, token, show_window), calls the shared executeWithCallback method with action 'today', and returns a formatted content block with the retrieved notes.
    private async getToday(args: any) { const params: Record<string, string | boolean> = {}; if (args.search) params.search = args.search; if (args.token) params.token = args.token; if (args.show_window) params.show_window = "yes"; const todayData = await this.executeWithCallback("today", params); return { content: [ { type: "text", text: JSON.stringify({ message: `Retrieved today's notes${args.search ? ` matching: ${args.search}` : ""}`, notes: todayData }, null, 2) } ] }; }
  • Input schema defining the parameters for the bear_get_today tool: optional search (string), token (string), and show_window (boolean).
    inputSchema: { type: "object", properties: { search: { type: "string", description: "Search term" }, token: { type: "string", description: "Bear API token" }, show_window: { type: "boolean", description: "Show Bear window" } } }
  • src/index.ts:592-612 (registration)
    Registration of the bear_get_today tool in the MCP server's tools list, including name, description, and input schema.
    { name: "bear_get_today", description: "Get today's notes", inputSchema: { type: "object", properties: { search: { type: "string", description: "Search term" }, token: { type: "string", description: "Bear API token" }, show_window: { type: "boolean", description: "Show Bear window" } } } },
  • src/index.ts:727-728 (registration)
    Switch case that registers and dispatches execution of the bear_get_today tool to its handler method.
    case "bear_get_today": return await this.getToday(args);

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/bigjeager/bear-mcp-server'

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