Skip to main content
Glama
piekstra

Slack MCP Server

by piekstra

unarchive_channel

Restore archived Slack channels using their unique Channel ID. This tool facilitates channel reactivation directly within Slack workspaces, ensuring continuity in team communication and collaboration.

Instructions

Unarchive a Slack channel.

Args: channel: Channel ID to unarchive

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelYes

Implementation Reference

  • The main MCP tool handler for 'unarchive_channel'. It creates a SlackClient instance and calls its unarchive_channel method to unarchive the specified channel, returning the JSON result or error.
    @mcp.tool() async def unarchive_channel(channel: str) -> str: """ Unarchive a Slack channel. Args: channel: Channel ID to unarchive """ try: client = SlackClient() result = await client.unarchive_channel(channel) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
  • Helper method in SlackClient class that performs the actual Slack API call to unarchive the channel using conversations.unarchive endpoint.
    async def unarchive_channel(self, channel: str) -> Dict[str, Any]: """Unarchive a channel.""" data = {"channel": channel} return await self._make_request("POST", "conversations.unarchive", json_data=data)
  • The @mcp.tool() decorator registers the unarchive_channel function as an MCP tool.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/piekstra/slack-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server