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
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes |
Implementation Reference
- slack_mcp/server.py:490-504 (handler)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)
- slack_mcp/server.py:201-204 (helper)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)
- slack_mcp/server.py:490-490 (registration)The @mcp.tool() decorator registers the unarchive_channel function as an MCP tool.@mcp.tool()