# DeepWiki MCP

> Read the wiki outline or contents of an indexed public GitHub repository and ask DeepWiki questions about the codebase from your FlyMy.AI agent.

Give your agent the name of a public GitHub repository that DeepWiki has indexed, such as `facebook/react`. It can look up the wiki's table of contents, read the documentation, or ask a question grounded in the repository.

> Use DeepWiki to list the wiki topics for CognitionAI/deepwiki and suggest where a new contributor should start.

## What it can do

| Method | What it does |
| --- | --- |
| [`read_wiki_structure`](#read-wiki-structure) | Lists the wiki topics for one repository. Start here when you need to find your way around. |
| [`read_wiki_contents`](#read-wiki-contents) | Reads the wiki contents for one repository. Ask your assistant to summarize the parts relevant to your task. |
| [`ask_wiki_question`](#ask-wiki-question) | Sends a written question to DeepWiki about one repository or up to ten indexed public repositories together. |

## How to get credentials

Sign in to FlyMy.AI in your MCP client and select the DeepWiki public connector (`deepwiki_public`) for your agent. DeepWiki's public repository service requires no DeepWiki account or API key. [DeepWiki connection settings](https://app.flymy.ai/mcp-configs#deepwiki_public)

## Fields to fill in FlyMy.AI

There are no provider credential fields. Supply the repository and, when asking a question, the question text in the action arguments.

## Action reference

### read-wiki-structure

`read_wiki_structure` - List the documentation topics for a single repository.

Use the outline to decide what to read first.

| Parameter | Type | Required | Default | Meaning |
| --- | --- | --- | --- | --- |
| `repoName` | string | Yes | None | One public GitHub owner/repo identifier. |

Example arguments

```json
{
  "repoName": "facebook/react"
}
```

**Result:** The wiki outline appears in the returned text.

Illustrative response shape

```json
{
  "content": [
    {
      "type": "text",
      "text": "Example topic"
    }
  ],
  "structuredContent": {
    "result": "Example topic"
  }
}
```

### read-wiki-contents

`read_wiki_contents` - Read the wiki documentation for a single repository.

The input selects the whole repository wiki. Your assistant can summarize a section from the returned contents.

| Parameter | Type | Required | Default | Meaning |
| --- | --- | --- | --- | --- |
| `repoName` | string | Yes | None | One public GitHub owner/repo identifier. |

Example arguments

```json
{
  "repoName": "facebook/react"
}
```

**Result:** The returned text contains the repository wiki contents.

Illustrative response shape

```json
{
  "content": [
    {
      "type": "text",
      "text": "Example wiki text"
    }
  ],
  "structuredContent": {
    "result": "Example wiki text"
  }
}
```

### ask-wiki-question

`ask_wiki_question` - Ask DeepWiki a question about a codebase.

Supply one repository or an ordered list of up to ten indexed public repositories. For comparisons, ask which repository supports each part of the answer.

| Parameter | Type | Required | Default | Meaning |
| --- | --- | --- | --- | --- |
| `repoName` | string or array of strings | Yes | None | One GitHub owner/repo identifier or a list of 1-10 identifiers. |
| `question` | string | Yes | None | The question you want DeepWiki to answer using the selected repositories. |

Example arguments

```json
{
  "repoName": "facebook/react",
  "question": "Which parts of the repository handle rendering to the DOM?"
}
```

**Result:** DeepWiki returns its generated answer as text.

Illustrative response shape

```json
{
  "content": [
    {
      "type": "text",
      "text": "Example answer"
    }
  ],
  "structuredContent": {
    "result": "Example answer"
  }
}
```

## Troubleshooting

- **The wiki is missing.** Open the public repository on DeepWiki and check that it has a wiki. Pass the repository as `owner/repo`, for example `facebook/react`. A GitHub URL, branch name or file path is a different input.
- **A question needs context.** Name the component and the decision you are making. To compare repositories, send their identifiers together in one question. To read their outlines, request each one separately.
- **The tool reports an error.** Treat `isError: true` as a failed tool result. A timeout can leave a question's outcome unknown. Check its outcome before asking the same question again.

## Links

- [DeepWiki MCP on FlyMy.AI](https://flymy.ai/mcp/deepwiki-public/)
- [Using DeepWiki MCP to read GitHub repository documentation](https://flymy.ai/blog/deepwiki-mcp/)
- [DeepWiki's MCP reference](https://docs.devin.ai/work-with-devin/deepwiki-mcp)
- [React's public wiki](https://deepwiki.com/facebook/react)
