Skip to main content
Glama
bigjeager

Bear App MCP Server

by bigjeager

bear_open_tag

Open notes with specific tags in Bear App to organize and access related content using the Bear App MCP Server integration.

Instructions

Open notes with specific tag(s)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTag name or comma-separated list of tags
tokenNoBear API token
show_windowNoShow Bear window

Implementation Reference

  • The handler function for 'bear_open_tag' tool. Builds parameters for opening notes by tag using Bear's x-callback-url 'open-tag', executes via callback server, and returns JSON response with callback data.
    private async openTag(args: any) { const params: Record<string, string | boolean> = { name: args.name }; if (args.token) params.token = args.token; if (args.show_window) params.show_window = "yes"; const tagData = await this.executeWithCallback("open-tag", params); return { content: [ { type: "text", text: JSON.stringify({ message: `Opened notes with tag: ${args.name}`, notes: tagData }, null, 2) } ] }; }
  • Input schema definition for the bear_open_tag tool, specifying parameters like tag name (required), optional token, and show_window flag.
    { name: "bear_open_tag", description: "Open notes with specific tag(s)", inputSchema: { type: "object", properties: { name: { type: "string", description: "Tag name or comma-separated list of tags" }, token: { type: "string", description: "Bear API token" }, show_window: { type: "boolean", description: "Show Bear window" } }, required: ["name"] } },
  • src/index.ts:717-718 (registration)
    Registration in the CallToolRequestHandler switch statement, dispatching 'bear_open_tag' calls to the openTag handler method.
    case "bear_open_tag": return await this.openTag(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