Add title guidance for MCP (#12242)

* Add title guidance for MCP

* Scope H1 guidance to documents only
This commit is contained in:
Tom Moor
2026-05-02 09:54:13 -04:00
committed by GitHub
parent 269e7d048f
commit f270611505
+3 -1
View File
@@ -23,7 +23,9 @@ import { version } from "../../../package.json";
const app = new Koa();
const router = new Router();
const defaultInstructions = `Document and collection markdown support @mentions using the syntax: @[Display Name](mention://user/userId). For example: @[John Doe](mention://user/c9a1b2e3-...). Use the list_users tool to find user IDs.`;
const defaultInstructions = `Document markdown content must not begin with a top-level heading (H1) — the title is stored as a separate field, so set it via the title parameter and start the content with body text or a lower-level heading instead.
Document and collection markdown support @mentions using the syntax: @[Display Name](mention://user/userId). For example: @[John Doe](mention://user/c9a1b2e3-...). Use the list_users tool to find user IDs.`;
/**
* Creates a fresh MCP server instance with tools filtered by the OAuth