MCP: instructions для Claude (что у нас на сегодня -> очередь бухгалтерии) и промпт today; текст в p-mcp-instructions.md
All checks were successful
ci / test (push) Successful in 37s
ci / deploy (push) Successful in 2m40s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 09:28:12 +03:00
parent aae7472010
commit ac2436e0f0
5 changed files with 69 additions and 5 deletions

View File

@@ -16,6 +16,8 @@ export interface ApiDeps {
pool: Pool;
settings: Pick<AccountingSettings, "http" | "reviewers" | "mcp">;
jobs: JobHandlers;
/** Текст instructions для MCP (из p-mcp-instructions.md); не задан - встроенный. */
mcpInstructions?: string;
}
/**
@@ -78,7 +80,7 @@ export function buildApi(deps: ApiDeps): FastifyInstance {
scopes_supported: ["openid", "email", "profile"],
};
});
registerMcp(app, { pool: deps.pool, settings: deps.settings });
registerMcp(app, { pool: deps.pool, settings: deps.settings, instructions: deps.mcpInstructions });
}
return app;
}