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
@@ -50,9 +52,9 @@ const flowcoreClient = new FlowcoreClient({
50
52
// Create an MCP server
51
53
constserver=newMcpServer({
52
54
name: "Flowcore Platform",
53
-
version: "1.0.0",
55
+
version: pkg.version,
54
56
description:
55
-
"An MCP server for managing and interacting with Flowcore Platform. For information on the details of the flowcore platform, you can check the Flowcore Platform Data Core, as it houses all actions that have happened in the platform. These actions are called events and are the main building blocks of the platform and housed within the data core inside the event type. The hirearchy of the platform is as follows: Users -> Tenant -> Data Core -> Flow Type -> Event Type -> Events. Tenants and organizations are the same thing in the platform, we are transitioning to use the term tenant. The events are stored in time buckets, and can be fetched by using the get_time_buckets tool.",
57
+
"An MCP server for managing and interacting with Flowcore Platform. For information on the details of the flowcore platform, you can check the Flowcore Platform Data Core, as it houses all actions that have happened in the platform. These actions are called events and are the main building blocks of the platform and housed within the data core inside the event type. The hirearchy of the platform is as follows: Users -> Tenant -> Data Core -> Flow Type -> Event Type -> Events. Tenants and organizations are the same thing in the platform, we are transitioning to use the term tenant. The events are stored in time buckets, and can be fetched by using the get_time_buckets tool. When you fetch events from a time bucket, you can use the cursor to paginate through the events. The default page size is 500 events per page, but you can change this by using the pageSize parameter. Also, the order of the events fetched from each time bucket is ascending by default, but you can change this by using the order parameter but keep in mind that when using desc, pagination and filters are not possible.",
56
58
})
57
59
58
60
server.tool("list_tenants","List all tenants I have access to",listTenantsHandler(flowcoreClient))
@@ -101,7 +103,7 @@ server.tool(
101
103
"The time bucket to get events from, the timebucket is in the format of YYYYMMDDhhiiss, normally the ii and ss are 0000",
102
104
),
103
105
cursor: z.string().optional().describe("The paging cursor for pagination"),
104
-
pageSize: z.number().optional().describe("The number of events per page (default is 10,000)"),
106
+
pageSize: z.number().default(500).describe("The number of events per page (default is 500)"),
105
107
fromEventId: z.string().optional().describe("Start from this event ID"),
106
108
afterEventId: z
107
109
.string()
@@ -122,7 +124,7 @@ server.tool(
122
124
{
123
125
eventTypeId: z.string().describe("Event type ID to get time buckets for"),
124
126
fromTimeBucket: z.string().optional().describe("Start time bucket (YYYYMMDDhhiiss)"),
125
-
toTimeBucket: z.string().optional().describe("End time bucket (YYYYMMDDhhiiss)"),
127
+
toTimeBucket: z.string().optional().describe("End time bucket (YYYYMMDDhhiiss)"),
126
128
pageSize: z.number().optional().describe("Number of time buckets per page"),
0 commit comments