You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add getPromptContent tool for auto-discovery
- Add MCP tool that dynamically discovers all available prompts
- Tool description includes comprehensive list of all prompts with descriptions
- Auto-generates enum of available prompts from markdown frontmatter
- Enables LLM auto-discovery of TimescaleDB guidance prompts
- Updated timescaledb setup prompt description to be more comprehensive
Benefits:
- LLM can automatically choose appropriate prompts based on user needs
- No need for users to explicitly know prompt names
- Stays in sync as new .md files are added
prompt_name: z.string().describe('The name of the requested prompt'),
41
+
title: z.string().describe('The display title of the prompt'),
42
+
description: z.string().describe('Description of what this prompt does'),
43
+
content: z.string().describe('The full prompt content'),
44
+
}asconst;
45
+
46
+
exportconstgetPromptContentFactory: ApiFactory<
47
+
ServerContext,
48
+
typeofinputSchema,
49
+
typeofoutputSchema
50
+
>=({ pgPool })=>({
51
+
name: 'getPromptContent',
52
+
config: {
53
+
title: 'Get TimescaleDB Prompt Content',
54
+
description: `Retrieve detailed prompt content for TimescaleDB guidance and best practices. This tool provides access to comprehensive guides that help with TimescaleDB implementation.
Copy file name to clipboardExpand all lines: src/prompts/md/timescaledb_setup_prompt.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
name: timescaledbSetup
3
3
title: TimescaleDB Complete Setup Guide
4
-
description: Step-by-step instructions for setting up TimescaleDB with hypertables, compression, retention policies, and continuous aggregates
4
+
description: Step-by-step instructions for designing table schemas and setting up TimescaleDB with hypertables, indexes, compression, retention policies, and continuous aggregates. Instructions for selecting: partition columns, segment_by columns, order_by columns, chunk time interval, real-time aggregation.
5
5
---
6
6
7
7
# TimescaleDB Complete Setup Guide for AI Coding Assistants
0 commit comments