githubEdit

robotBuild with AI

Connect your AI coding assistant to WDK documentation for context-aware code generation, architecture guidance, and debugging help.

WDK documentation is optimized for AI coding assistants. Give your AI tool context about WDK to get accurate code generation, architecture guidance, and debugging help.

There are two ways to provide WDK context to your AI:

  1. Connect via MCP Server - Best experience. Your AI tool can search and query WDK docs in real time.

  2. Connect via Markdown - Works with any AI tool. Feed documentation directly into the context window.

circle-info

Want to give AI agents wallet access? The MCP Toolkit creates an MCP server that exposes WDK wallets as tools - letting AI agents check balances, send transactions, swap tokens, and more.


Connect WDK Docs via MCP Server

The WDK documentation is available as an MCP server, giving your AI tool searchable access to all modules, API references, quickstarts, and guides. This works with any tool that supports the Model Context Protocol (MCP)arrow-up-right.

MCP Server URL:

https://docs.wallet.tether.io/~gitbook/mcp

Add this server to your AI tool's MCP configuration:

Config path: ~/.cursor/mcp.json (global) or .cursor/mcp.json (project-level)

{
  "mcpServers": {
    "wdk-docs": {
      "url": "https://docs.wallet.tether.io/~gitbook/mcp"
    }
  }
}

Cursor MCP documentationarrow-up-right

circle-info

The MCP server provides access to published documentation only. If your tool is not listed above, add the MCP server URL (https://docs.wallet.tether.io/~gitbook/mcp) to your tool's MCP configuration - most MCP-compatible tools follow a similar JSON format.

circle-exclamation

Add WDK Project Rules (Optional)

Project rules give your AI assistant persistent context about WDK conventions, package naming, and common patterns. This is optional but recommended for teams working extensively with WDK.

Copy the rules content below and save it at the file path for your tool.

Rules Content

Where to Save

AI Coding Assistant
File Path
Notes

Cursor

.cursor/rules/wdk.mdc

Project-level, auto-attached

Claude Code

CLAUDE.md

Place in project root

Windsurf

.windsurf/rules/wdk.md

Project-level rules

GitHub Copilot

.github/copilot-instructions.md

Project-level instructions

Cline

.clinerules

Place in project root

Continue

.continuerules

Place in project root


Connect WDK Docs via Markdown

If your AI tool doesn't support MCP, you can feed WDK documentation directly into the context window using these endpoints:

Endpoint
URL
Description

Page index

Index of all page URLs and titles

Full docs

Complete documentation in one file

You can also append .md to any documentation page URL to get the raw Markdown, ready to paste into a chat context window.


Agent Guidelines in WDK Repos

Each WDK package repository includes an AGENTS.md file in its root. This file provides AI agents with context about the project structure, coding conventions, testing patterns, and linting rules.

If your AI tool has access to the WDK source repositories (e.g., via a local clone), it will automatically ingest AGENTS.md for additional context beyond the documentation.


Example Prompt

Here's an example prompt you can use to generate a multichain wallet with WDK. Try it with MCP connected or paste the relevant quickstart docs for best results:


Tips for Effective AI-Assisted Development

  • Be specific about the chain. Tell the AI which blockchain you're targeting (e.g., "I'm building on Ethereum using @tetherto/wdk-wallet-evm") so it picks the right module.

  • Reference the exact package name. Mention the full @tetherto/wdk-* package name in your prompt for more accurate code generation.

  • Ask the AI to check docs first. Prompt with "Check the WDK documentation before answering" to ensure it uses the MCP-connected docs rather than outdated training data.

  • Start with a quickstart. Point the AI at the Node.js Quickstart or React Native Quickstart as a working reference before building custom features.

  • Iterate in steps. Use the AI to scaffold your WDK integration first, then refine module configuration and error handling in follow-up prompts.