Skip to content

Commit a6adc48

Browse files
zimegClaude
andauthored
feat: add admin.apps.mcp.servers.list method (#2032)
Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
1 parent 82ea7a6 commit a6adc48

4 files changed

Lines changed: 83 additions & 2 deletions

File tree

‎slack_sdk/web/async_client.py‎

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎slack_sdk/web/client.py‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,32 @@ def admin_apps_config_set(
383383
kwargs.update({"domain_restrictions": json.dumps(domain_restrictions)})
384384
return self.api_call("admin.apps.config.set", params=kwargs)
385385

386+
def admin_apps_mcp_servers_list(
387+
self,
388+
*,
389+
limit: Optional[int] = None,
390+
cursor: Optional[str] = None,
391+
**kwargs,
392+
) -> SlackResponse:
393+
"""List third-party app MCP servers approved for an organization, derived from the org's MCP server allowlist.
394+
395+
Entries reflect allowlist state, not install/scope liveness: servers of apps that are uninstalled (but not deleted)
396+
are still listed.
397+
398+
https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.list
399+
400+
Args:
401+
limit: The maximum number of items to return. Must be between 1 - 1000 both inclusive.
402+
cursor: Set `cursor` to `next_cursor` returned by the previous call to list items in the next page
403+
"""
404+
kwargs.update(
405+
{
406+
"limit": limit,
407+
"cursor": cursor,
408+
}
409+
)
410+
return self.api_call("admin.apps.mcp.servers.list", params=kwargs)
411+
386412
def admin_auth_policy_getEntities(
387413
self,
388414
*,

‎slack_sdk/web/legacy_client.py‎

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)