Skip to content

Commit fcfcd31

Browse files
committed
Update format and README
1 parent b4cabd1 commit fcfcd31

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Model Context Protocol (MCP) server for Slack Workspaces. This integration suppo
2121
- Required inputs:
2222
- `channel_types` (string): Comma-separated channel types. Allowed values: 'mpim', 'im', 'public_channel', 'private_channel'. Example: 'public_channel,private_channel,im'.
2323
- `sort` (string): Type of sorting. Allowed values: 'popularity' - sort by number of members/participants in each channel.
24+
- `limit` (string, default: 100): Limit of channels to fetch.
25+
- `cursor` (string): Cursor for pagination. Use the value of the last row and column in the response as next_cursor field returned from the previous request.
2426
- Returns: List of channels
2527

2628
## Setup Guide

pkg/handler/channels.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type Channel struct {
2222
Topic string `json:"topic"`
2323
Purpose string `json:"purpose"`
2424
MemberCount int `json:"memberCount"`
25-
Cursor string `json:"cursor"`
25+
Cursor string `json:"cursor"`
2626
}
2727

2828
type ChannelsHandler struct {
@@ -76,10 +76,10 @@ func (ch *ChannelsHandler) ChannelsHandler(ctx context.Context, request mcp.Call
7676
Types: channelTypes,
7777
Limit: limit,
7878
ExcludeArchived: true,
79-
Cursor: cursor,
79+
Cursor: cursor,
8080
}
8181
var (
82-
total int
82+
total int
8383
nextcur string
8484
)
8585
for {

0 commit comments

Comments
 (0)