mcpbookmarks: Instructions file for Gemini CLI

GEMINI.md

mcpbookmarks GEMINI.md is an instructions file for Gemini CLI from linonon/mcpbookmarks. It costs 8,423 tokens per session, scanned A, a copy of mcpbookmarks CLAUDE.md, MIT.

A set of Gemini CLI instructions for the MCP Bookmarks VS Code extension, which lets AI and developers mark important code locations with notes.

In plain words
What is it for?
Use it when developing or maintaining the extension, its bookmark tools, or its documentation.
Why use it?
Bookmarks grouped by file, editor markers, and hover notes make unfamiliar code easier to understand and navigate.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is linonon/mcpbookmarks's own configuration. It tells Gemini CLI how to work on mcpbookmarks itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcpbookmarks configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/name/project/src/main.go:100.

Reuse

Borrowing it

Nothing to install: this file belongs to linonon/mcpbookmarks. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/linonon/mcpbookmarks/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/linonon/mcpbookmarks

Made for: Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcpbookmarks GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/linonon/mcpbookmarks/gemini-md/github.svg)](https://agentmods.dev/instructions/linonon/mcpbookmarks/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/linonon/mcpbookmarks/gemini-md"><img src="https://agentmods.dev/badge/instructions/linonon/mcpbookmarks/gemini-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcpbookmarks GEMINI.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/linonon/mcpbookmarks/gemini-md"><img src="https://agentmods.dev/badge/instructions/linonon/mcpbookmarks/gemini-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,423 This file is loaded in full into every session.
When invoked 8,423 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.08423 $0.08423
Opus 5.5 $0.03369 $0.03369
Sonnet 5.5 $0.01685 $0.01685
Haiku 4.5 $0.00842 $0.00842

Measured 2mo ago against content hash cba43c77bf19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcpbookmarks GEMINI.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to mcpbookmarks CLAUDE.md — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

GEMINI.md · 923 lines

How it starts

The opening of the file, as written. The whole thing — 923 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP Bookmarks - VSCode Extension

这个文档应该与 ./CLAUDE.md 中的说明保持同步更新, 应该保持一模一样的内容.

項目概述

這是一個 VSCode 擴展,提供「AI 書籤」功能。AI(通過 Claude Code)可以在代碼中標記重要位置,並寫入詳細說明,幫助理解和導航代碼庫。

核心功能

  1. AI 可調用的書籤工具 - 通過 MCP 協議暴露書籤操作
  2. 手動書籤管理 - 用戶可直接在 VSCode 中創建、編輯、刪除書籤
  3. 書籤側邊欄 - 在 VSCode 中顯示所有書籤,按文件分組
  4. 行內標記 - 在編輯器 gutter 區域顯示書籤圖標
  5. 懸浮預覽 - hover 時顯示書籤說明

技術架構

┌─────────────────────────────────────────────────────────┐
│                      VSCode                              │
│  ┌─────────────────┐    ┌─────────────────────────────┐ │
│  │  擴展 UI         │◄───│  MCP Server (內嵌)          │ │
│  │  - TreeView     │    │  - add_bookmark             │ │
│  │  - Decorations  │    │  - list_bookmarks           │ │
│  │  - HoverProvider│    │  - remove_bookmark          │ │
│  └─────────────────┘    │  - update_bookmark          │ │
│                          └──────────▲──────────────────┘ │
└─────────────────────────────────────│────────────────────┘
                                      │ MCP (stdio)
                              ┌───────┴───────┐
                              │  Claude Code   │
                              └───────────────┘

雙版本 MCP Server 架構 (重要!)

本項目有兩套獨立的 MCP Server 實現, 修改功能時必須同時修改兩邊:

版本 用途 文件
Embedded VSCode 擴展內嵌運行 server.ts, handlers.ts, bookmarkStore.ts
Standalone Claude Code 獨立運行 serverStandalone.ts, handlersStandalone.ts, bookmarkStoreStandalone.ts

為什麼有兩個版本?

  • Embedded: 在 VSCode 進程內運行, 可以直接訪問 VSCode API (如 vscode.workspace)
  • Standalone: 通過 npx 獨立運行, 不依賴 VSCode, Claude Code 使用這個版本

修改功能時的注意事項

任何 MCP 工具的修改都需要同時修改兩套文件!

例如添加新工具:

  1. src/store/types.ts - 添加類型定義 (共用)
  2. src/store/bookmarkStore.ts + bookmarkStoreStandalone.ts - 添加存儲邏輯
  3. src/mcp/handlers.ts + handlersStandalone.ts - 添加處理函數
  4. src/mcp/server.ts + serverStandalone.ts - 添加工具定義和 switch case

重要: Serena MCP 行號偏移問題

使用 Serena MCP 獲取代碼符號位置時, 必須進行行號轉換:

Read the full file on GitHub · 923 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 923 lines · 8,423 tokens per session scan A cba43c77bf19

Subscribe to this mod's changes

mcpbookmarks GEMINI.md is an instructions file published in the GitHub repository linonon/mcpbookmarks (1 stars, last pushed 1mo ago), licensed MIT. It adds 8,423 tokens to every session, about $0.0337 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to mcpbookmarks CLAUDE.md, differing in 2 lines, and is treated as a copy.

Related

mcpbookmarks GEMINI.md compared with instructions from other repositories

mcpbookmarks GEMINI.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcpbookmarks GEMINI.mdlinonon/mcpbookmarksInstructions file11mo agoMITA8,423Gemini CLI
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot