ysskrishna logoysskrishna
Cover image for Why Your AI Agent's Slack Messages Are Full of Asterisks (and the MCP Fix)

Why Your AI Agent's Slack Messages Are Full of Asterisks (and the MCP Fix)

ysskrishna profile photoysskrishna
4 min read
Agent Skills
Markdown & Docs
MCP

Here is a typical status update an agent writes:

## Deploy summary
**Status:** green
- [x] migrations
- [ ] cache warm-up
See [runbook](https://example.com/runbook).

Send that string to the Slack API text field as-is and the heading and the [label](url) link are not rendered. You get the characters back:

## Deploy summary
**Status:** green
- [x] migrations
- [ ] cache warm-up
See [runbook](https://example.com/runbook).

Hashes and bracket links sitting there like a diff.

The model did nothing wrong. It wrote standard Markdown. The destination just does not speak it.

Every destination speaks a different dialect

Where it goesWhat it expectsWhat raw Markdown looks like there
Slack API text fieldmrkdwn: *bold*, links shaped as <url|label>Literal **, ## and [label](url)
Microsoft Teams paste or Graph contentType: htmlHTMLPlain text, or a wall of symbols
Jira Cloud REST v3 rich-text fieldsADF (Atlassian Document Format) JSONRejected, or stored as one plain paragraph
Anything that needs plain textStripped textMarkup noise

You can ask the model to "write in Slack format" and it will try. It will also drift, mix dialects, and get Jira's ADF wrong because ADF is a JSON tree, not a text style.

Conversion is a job for code, not for the prompt.

The one-off fix: paste through a converter

If a human is doing the posting, you do not need anything installed. I built free browser tools for exactly this:

Paste Markdown, check the preview, copy, paste into the app.

The repeatable fix: give the agent a converter tool

When the agent posts on its own, through a Slack MCP, a webhook, Graph or the Jira API, it needs the conversion step as a tool it can call. That is Markdown Convert MCP.

It is an MCP server with four tools. Each accepts { "markdown": "<source>" } and returns converted text:

ToolReturnsUse when the next hop expects
markdown_to_slackSlack mrkdwnSlack API or Slack MCP text
markdown_to_teamsHTML with inline CSSTeams paste or Graph contentType: html
markdown_to_jiraADF JSON stringJira Cloud REST v3 rich-text fields, Atlassian MCP
markdown_to_plaintextPlain textAnything that needs stripped text

It supports CommonMark and GitHub-Flavored Markdown, and it is listed on the official MCP Registry as io.github.ysskrishna/markdown-convert-mcp.

Install it in two minutes

The server runs from npm, so most hosts only need this command:

npx -y @ysskrishna/markdown-convert-mcp

Claude Code:

claude mcp add markdown-convert -- npx -y @ysskrishna/markdown-convert-mcp

Add -s user to make it available in every project, then run /mcp in a session to see the tools.

Cursor: add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), then enable markdown-convert in Cursor Settings → MCP:

{
  "mcpServers": {
    "markdown-convert": {
      "command": "npx",
      "args": ["-y", "@ysskrishna/markdown-convert-mcp"]
    }
  }
}

VS Code (Copilot MCP): in .vscode/mcp.json:

{
  "servers": {
    "markdown-convert": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@ysskrishna/markdown-convert-mcp"]
    }
  }
}

Windows hosts that cannot find npx: wrap it in cmd:

{
  "mcpServers": {
    "markdown-convert": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@ysskrishna/markdown-convert-mcp"]
    }
  }
}

Claude Desktop, Windsurf, Codex, Copilot CLI and OpenClaw snippets are in the README.

Teach the agent when to call it

A tool the agent never calls does not help. The repo ships a companion skill, markdown-convert, that tells the agent to convert before it pastes or posts into Slack, Teams or Jira.

npx skills add ysskrishna/markdown-convert-mcp --skill markdown-convert

In Claude Code, the plugin installs the server and the skill together:

/plugin marketplace add ysskrishna/markdown-convert-mcp
/plugin install markdown-convert-mcp@markdown-convert-mcp

A prompt that exercises all four tools

Write a short deploy summary in Markdown with a heading, one bold field,
a two-item checklist and a link. Then give me:
1. the Slack version (markdown_to_slack),
2. the Teams HTML (markdown_to_teams),
3. the Jira ADF (markdown_to_jira),
4. a plain-text version (markdown_to_plaintext).

Check each output against where it is going. The Slack version should use single asterisks and <url|label> links. The Jira version should be a JSON document, not text.

Three mistakes to avoid

Converting for the Slack composer. markdown_to_slack is for the API text field. If you are pasting into the Slack app by hand, use the browser converter instead. Fields that take markdown_text want Markdown passed straight through.

Expecting Teams Adaptive Cards. markdown_to_teams returns HTML. It does not build Adaptive Cards and it does not send messages.

Using the Jira tool for Jira Server. markdown_to_jira returns ADF for Jira Cloud REST v3. It is not wiki markup, and it does not create issues.

Limits worth knowing

  • Whitespace-only input returns success with an empty string.
  • Input over 200,000 characters returns a tool error (isError: true), not a transport failure.
  • Slack may truncate around 40k characters in the text field, so split long reports.

What to do next

  1. Paste one of your agent's real reports into the Markdown to Slack Converter and see the difference.
  2. Add the server to your host with the snippet above.
  3. Install the markdown-convert skill so the agent calls the right tool on its own.

Further reading

Continue exploring

ProductnpmMarkdown Convert MCP

Markdown Convert MCP

Your AI agent's reports, ready for Slack, Jira and Teams. No manual cleanup.
Markdown & Docs
Text & Data Conversion
+4
CourseCover image for Agent Building Blocks: Skills, Subagents, MCP and Hooks

Agent Building Blocks: Skills, Subagents, MCP and Hooks

A free, hands-on course on the four pieces behind Cursor and Claude Code agents: skills, subagents, MCP servers and hooks. Build each one, then combine them.

Agent Skills
Chat & AI
+1

9 chapters · 25 min

BlogCover image for 17 Thinking Skills for AI Agents: Pre-Mortem, Five Whys, Six Hats and More

17 Thinking Skills for AI Agents: Pre-Mortem, Five Whys, Six Hats and More

AI Apps & Assistants
Agent Skills
4 min read
ToolCover image for AI Token Counter

AI Token Counter

AI token counter with model pricing and context-window comparison in your browser.

Chat & AI
AI Apps & Assistants
+1
Productskills.sh+1Claude Code Subagents for Cursor

Claude Code Subagents for Cursor

Your Cursor subagents can finally run on the model you picked in each agent file.
Chat & AI
Agent Skills
+2
BlogCover image for How to Install Caveman in Cursor and Claude Code

How to Install Caveman in Cursor and Claude Code

AI Apps & Assistants
Agent Skills
+1
3 min read