Skip to main content
Glama
bigjeager

Bear App MCP Server

by bigjeager

bear_create_note

Create a new note in Bear with customizable title, content, tags, attachments, and display options to organize information efficiently.

Instructions

Create a new note in Bear

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoNote title
textNoNote content
tagsNoComma-separated list of tags
pinNoPin note to top of list
timestampNoPrepend current date and time
clipboardNoGet text from clipboard
fileNoFile path to add to note
filenameNoCustom filename for attached file
open_noteNoOpen note after creation
new_windowNoOpen in new window
floatNoFloat note window
show_windowNoShow Bear window
editNoPlace cursor in note editor
typeNoNote type
urlNoURL to include in note

Implementation Reference

  • The main handler function for the 'bear_create_note' tool. It maps input arguments to Bear URL parameters, executes the 'create' action via callback, and returns the note data.
    private async createNote(args: any) { const params: Record<string, string | boolean> = {}; if (args.title) params.title = args.title; if (args.text) params.text = args.text; if (args.tags) params.tags = args.tags; if (args.pin) params.pin = "yes"; if (args.timestamp) params.timestamp = "yes"; if (args.clipboard) params.clipboard = "yes"; if (args.file) params.file = args.file; if (args.filename) params.filename = args.filename; if (args.open_note) params.open_note = "yes"; if (args.new_window) params.new_window = "yes"; if (args.float) params.float = "yes"; if (args.show_window) params.show_window = "yes"; if (args.edit) params.edit = "yes"; if (args.type) params.type = args.type; if (args.url) params.url = args.url; const noteData = await this.executeWithCallback("create", params); return { content: [ { type: "text", text: JSON.stringify({ message: `Created new note in Bear${args.title ? ` with title: ${args.title}` : ""}`, note: noteData }, null, 2) } ] }; }
  • The input schema defining parameters for the 'bear_create_note' tool, registered in the list of available tools.
    { name: "bear_create_note", description: "Create a new note in Bear", inputSchema: { type: "object", properties: { title: { type: "string", description: "Note title" }, text: { type: "string", description: "Note content" }, tags: { type: "string", description: "Comma-separated list of tags" }, pin: { type: "boolean", description: "Pin note to top of list" }, timestamp: { type: "boolean", description: "Prepend current date and time" }, clipboard: { type: "boolean", description: "Get text from clipboard" }, file: { type: "string", description: "File path to add to note" }, filename: { type: "string", description: "Custom filename for attached file" }, open_note: { type: "boolean", description: "Open note after creation" }, new_window: { type: "boolean", description: "Open in new window" }, float: { type: "boolean", description: "Float note window" }, show_window: { type: "boolean", description: "Show Bear window" }, edit: { type: "boolean", description: "Place cursor in note editor" }, type: { type: "string", description: "Note type" }, url: { type: "string", description: "URL to include in note" } } } },
  • src/index.ts:707-708 (registration)
    Switch case registration that dispatches 'bear_create_note' tool calls to the createNote handler method.
    case "bear_create_note": return await this.createNote(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