MCP: instructions для Claude (что у нас на сегодня -> очередь бухгалтерии) и промпт today; текст в p-mcp-instructions.md
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user