# Manage sitemaps and indexing with Kimi Code

> Have Kimi Code list StoreSEO's sitemap, noindex and nofollow flags, change one resource at a time and set up an HTML sitemap you add to a menu.

Managing sitemaps and indexing in Kimi Code means asking Moonshot AI's terminal agent to list the sitemap, noindex and nofollow flags StoreSEO holds for each resource, change them one at a time, and set up an HTML sitemap for your Shopify store.

## How do you set up Kimi Code for this?

### 1. Add StoreSEO to Kimi Code

Create or edit ~/.kimi-code/mcp.json so every project on your machine can use StoreSEO. For one repository only, use .kimi-code/mcp.json inside it. You can also run /mcp-config in Kimi Code and have it add the server for you.

```json
{
  "mcpServers": {
    "storeseo": {
      "url": "https://mcp.storeseo.com/mcp"
    }
  }
}
```

### 2. Sign in to your store

Start a new Kimi Code session (a server added mid-session registers in the next one), run this command, then follow the browser window: pick your Shopify store and approve access.

```text
/mcp-config login storeseo
```

### 3. Or connect with an access token (optional)

If you cannot use a browser sign-in, generate a token in StoreSEO under Settings, AI Toolkit and add it as a header in the same server entry.

```json
{
  "mcpServers": {
    "storeseo": {
      "url": "https://mcp.storeseo.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN"
      }
    }
  }
}
```

Then ask: "Use StoreSEO to list every collection and page marked noindex and tell me which ones look like they should be indexed."

## How does this work in Kimi Code?

You ask something like which products are excluded from my sitemap or marked noindex. Kimi Code calls storeseo_list_resource_sitemaps for a resource type, product, collection, page or article, and can filter by sitemap, noindex or nofollow state. Each row carries the flags and a resource id, which the write tool takes. The list is a read, so in Always Ask mode it runs without a panel and you can page through a large catalog quickly.

Changes are one resource per call. storeseo_update_resource_sitemap sets sitemap_disabled, no_index or no_follow for a single product, collection, page or article, writing the matching Shopify metafields. A noindex flag removes a page from search results, so the agent should name the resource and wait for your yes, and after the write it should list the flags again in the same turn rather than assume the change took. In a terminal that makes a neat loop: change, re-list, report the current state.

The HTML sitemap has its own pair of tools. Kimi Code reads the current state with storeseo_get_html_sitemap_settings, generates it with storeseo_update_html_sitemap, and fetches your navigation menus with storeseo_list_sitemap_menus. Adding the link to a menu is a step you do in Shopify admin, because no tool does it, so the agent hands you the edit URL and the sitemap address and then marks setup complete once you tell it the link is in. If you only want a page out of the XML sitemap and not out of search, say so, because sitemap exclusion and noindex are separate flags and the agent should set only the one you name.

### Example session (illustrative)

**You:** Which pages are marked noindex right now?
→ `storeseo_start` (read-only)
→ `storeseo_list_resource_sitemaps` (read-only)
**Agent:** Illustrative result: the Summer Sale page and the Returns page are both noindex. The Summer Sale page is expired, so that looks right. Shall I set the Returns page back to indexable?
**You:** Yes, change the Returns page only.
→ `storeseo_update_resource_sitemap` (needs approval)
→ `storeseo_list_resource_sitemaps` (read-only)
**Agent:** Re-listed: the Returns page is now indexable and still in the sitemap.

## What StoreSEO does: sitemaps and indexing

StoreSEO controls two things here: per-resource sitemap flags (left out of the XML sitemap, noindex, nofollow) and an HTML sitemap page. The agent lists flags, changes them one resource at a time and walks you through the HTML sitemap setup.

Tools: `storeseo_list_resource_sitemaps`, `storeseo_update_resource_sitemap`, `storeseo_get_html_sitemap_settings`, `storeseo_update_html_sitemap`, `storeseo_list_sitemap_menus`

1. **List the flags.** The agent lists products, collections, pages or articles with their sitemap, noindex and nofollow flags, filtered as you ask.
2. **Change one resource.** After your yes it sets the flags on one resource, which writes the matching Shopify metafields.
3. **Re-read before reporting.** Flags can also change in the StoreSEO app, so the agent re-lists before telling you the current state.
4. **Create the HTML sitemap.** It reads the HTML sitemap settings, then generates and enables the page.
5. **Add it to a menu.** It lists your navigation menus with their edit links; you add the sitemap link to a menu in Shopify admin, then the agent marks setup complete.

## Sitemaps and indexing reference

| Setting or limit | What applies |
|---|---|
| Flags per resource | Excluded from sitemap, noindex, nofollow |
| Resource types | Products, collections, pages and articles |
| Where flags live | Shopify metafields on the resource |
| HTML sitemap steps | Generate and enable, add the link to a menu yourself, mark complete |
| HTML sitemap settings | Replaced wholesale on update; read first |
| Menus | Listed with edit links; the menu you choose is not stored |
| Plan | Every active plan |

## Rules Kimi Code follows

- A noindex flag removes a page from search results, so the agent names the resource and waits for your yes.
- The agent re-lists flags in the same turn before telling you their current state.
- Adding the sitemap link to a menu is a step you do in Shopify admin; no tool does it.
- HTML sitemap settings are read before every update, because an update replaces them.

**In Kimi Code:** Sitemap flags are single-resource writes with search consequences, and a long catalog tempts you toward Approve for this session. In Kimi Code that choice turns a careful one-page change into a loop that can flip many flags without a panel, and a wrong noindex only shows up weeks later in search traffic. Approve each write on its own, or keep a rule that leaves storeseo_update_resource_sitemap on ask while the list tools run freely.

## What can you ask Kimi Code to do?

- Use StoreSEO to list every collection and page marked noindex and tell me which ones look like they should be indexed.
- Exclude my old Summer Sale page from the sitemap, then list its flags again to confirm.
- Set up the HTML sitemap and give me the menu edit link and sitemap address so I can add it myself.
- Which of my products are set to noindex or excluded from the sitemap?
- Exclude the product Gift Card Test from the sitemap and set it to noindex.
- Set up an HTML sitemap for my store and tell me which menu to add it to.
- Are any of my blog posts set to nofollow?
- Remove noindex from the page About Us.

## Frequently asked questions

### Can Kimi Code add the HTML sitemap link to my menu?

No. Adding the link is a step you do in Shopify admin. Kimi Code can fetch your menus and their edit links with StoreSEO, give you the sitemap address, and mark setup complete after you tell it the link is in place.

### Why does Kimi Code re-list flags after changing one?

StoreSEO tells the agent to re-read the flags in the same turn before reporting their state, so what you hear back is what the store now holds, not what the agent expected the write to do.

### What is the difference between excluding a page from the sitemap and noindex?

Excluding a resource leaves it out of your XML sitemap, so crawlers are not pointed at it. Noindex tells search engines not to show the page in results even if they find it. StoreSEO sets each flag separately per resource.

### Can the agent add the HTML sitemap to my menu?

No. The agent generates the HTML sitemap and lists your menus with their edit links, and you add the sitemap link to a menu in Shopify admin. Then the agent can mark setup complete.

### Do sitemap tools need a paid plan?

No. The sitemap tools work on every active StoreSEO plan.

### Why does the agent check the flags again before answering?

Sitemap flags can also be changed in the StoreSEO app outside the conversation, so an earlier listing may be stale. Re-reading in the same turn keeps the answer accurate.

## Sitemaps and indexing with other agents

- [Manage sitemaps and indexing with Claude](https://storeseo.com/agent/claude/sitemaps)
- [Manage sitemaps and indexing with ChatGPT](https://storeseo.com/agent/chatgpt/sitemaps)
- [Manage sitemaps and indexing with Claude Code](https://storeseo.com/agent/claude-code/sitemaps)
- [Manage sitemaps and indexing with Claude Cowork](https://storeseo.com/agent/claude-cowork/sitemaps)
- [Manage sitemaps and indexing with Cursor](https://storeseo.com/agent/cursor/sitemaps)
- [Manage sitemaps and indexing with Codex](https://storeseo.com/agent/codex/sitemaps)
- [Manage sitemaps and indexing with Gemini CLI](https://storeseo.com/agent/gemini-cli/sitemaps)
- [Manage sitemaps and indexing with GitHub Copilot](https://storeseo.com/agent/github-copilot/sitemaps)
- [Manage sitemaps and indexing with Windsurf](https://storeseo.com/agent/windsurf/sitemaps)
- [Manage sitemaps and indexing with Grok](https://storeseo.com/agent/grok/sitemaps)
- [Manage sitemaps and indexing with ChatGPT dots](https://storeseo.com/agent/chatgpt-dots/sitemaps)
- [Manage sitemaps and indexing with Grok Bot](https://storeseo.com/agent/grok-bot/sitemaps)
- [Manage sitemaps and indexing with Muse](https://storeseo.com/agent/muse/sitemaps)
- [Manage sitemaps and indexing with Manus](https://storeseo.com/agent/manus/sitemaps)
- [Manage sitemaps and indexing with OpenClaw](https://storeseo.com/agent/openclaw/sitemaps)
- [Manage sitemaps and indexing with Hermes Agent](https://storeseo.com/agent/hermes-agent/sitemaps)
- [Manage sitemaps and indexing with Paperclip](https://storeseo.com/agent/paperclip/sitemaps)
- [Manage sitemaps and indexing with NanoClaw](https://storeseo.com/agent/nanoclaw/sitemaps)
- [Manage sitemaps and indexing with OpenCode](https://storeseo.com/agent/opencode/sitemaps)
- [Manage sitemaps and indexing with Zed](https://storeseo.com/agent/zed/sitemaps)
- [Manage sitemaps and indexing with Kiro](https://storeseo.com/agent/kiro/sitemaps)
- [Manage sitemaps and indexing with Antigravity](https://storeseo.com/agent/antigravity/sitemaps)

## More Kimi Code guides

- [Kimi Code and StoreSEO overview](https://storeseo.com/agent/kimi)
- [Audit your store's SEO with Kimi Code](https://storeseo.com/agent/kimi/seo-audit)
- [Optimize meta tags and content with Kimi Code](https://storeseo.com/agent/kimi/optimize-meta)
- [Optimize images and alt text with Kimi Code](https://storeseo.com/agent/kimi/image-seo)
- [Get products ready for AI search with Kimi Code](https://storeseo.com/agent/kimi/ai-search-readiness)
- [Publish llms.txt and agents.md with Kimi Code](https://storeseo.com/agent/kimi/llms-txt-agents-md)
- [Set up structured data with Kimi Code](https://storeseo.com/agent/kimi/structured-data)
- [Track keyword rankings with Kimi Code](https://storeseo.com/agent/kimi/keyword-tracking)
- [Read Search Console and Analytics with Kimi Code](https://storeseo.com/agent/kimi/google-reports)
- [Write SEO blog post drafts with Kimi Code](https://storeseo.com/agent/kimi/blog-posts)

## Related documentation

- [How to generate an HTML sitemap](https://storeseo.com/docs/how-to-generate-html-sitemap)
- [Choose products to include in the sitemap](https://storeseo.com/docs/how-to-choose-products-to-include-in-sitemap)
- [Store not appearing in Google search results](https://storeseo.com/docs/store-not-appearing-in-google-search-results)

---

Canonical: https://storeseo.com/agent/kimi/sitemaps
Last updated: October 2026.

Approval: Reads run straight away; StoreSEO tells the agent to preview and wait for your yes before it writes, spends credit or publishes, and your client's tool-approval setting is the hard stop.

Every agent guide: https://storeseo.com/agent · Connect the MCP server: https://storeseo.com/docs/connect-storeseo-mcp-to-your-ai-assistant · Pricing: https://storeseo.com/pricing · Install StoreSEO: https://apps.shopify.com/storeseo
