cls-mcp-server 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -117,7 +117,9 @@ mcpServer.tool('GetTopicInfoByName', 'search topic info by topic name', {
117
117
  .default(false)
118
118
  .describe('If precise search(true) or fuzzy search(false), default false. Recommend to use fuzzy search.'),
119
119
  region: zod_1.z.string().describe('地域信息,必传,如:ap-guangzhou'),
120
- }, async ({ region: regionFromAI, searchText, preciseSearch }) => {
120
+ offset: zod_1.z.number().optional().describe('Offset of the topic list, default 0'),
121
+ limit: zod_1.z.number().optional().describe('Limit of the topic list, default 20'),
122
+ }, async ({ region: regionFromAI, searchText, preciseSearch, offset = 0, limit = 20 }) => {
121
123
  try {
122
124
  const region = regionFromAI || process.env.TENCENTCLOUD_REGION;
123
125
  if (!region) {
@@ -148,6 +150,8 @@ mcpServer.tool('GetTopicInfoByName', 'search topic info by topic name', {
148
150
  ]
149
151
  : [],
150
152
  PreciseSearch: preciseSearch ? 1 : 0,
153
+ Offset: offset,
154
+ Limit: limit,
151
155
  });
152
156
  const topics = response?.Topics?.map((topic) => ({
153
157
  TopicName: topic.TopicName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cls-mcp-server",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "dist"