Skip to main content

AI Agent Integration

ULink provides a Model Context Protocol (MCP) server that enables AI coding agents to manage deep links programmatically. AI agents can authenticate developers, create projects, configure platforms, and set up deep linking — all without the developer visiting the dashboard.

Quick Start

1. Install the MCP Server

npx @ulinkly/mcp-server@latest

Or add to your MCP client configuration (Claude Code, Cursor, Windsurf):

{
"mcpServers": {
"ulink": {
"command": "npx",
"args": ["-y", "@ulinkly/mcp-server@latest"]
}
}
}

2. Authenticate

Call the check_auth_status tool to see if credentials exist. If not, call authenticate — it opens a browser window where the developer can sign in or create a free account.

After authentication, create a project with create_project, then check get_onboarding_status to see what steps remain. Use the remaining MCP tools to configure domains, platforms, and create links.

For guided setup, invoke the @ulinkly/setup onboarding skill which walks through all 7 phases automatically.

MCP Tool Reference

ToolCategoryAuth RequiredDescription
check_auth_statusAuthNoCheck if valid credentials exist
authenticateAuthNoOpen browser for sign-in or sign-up
get_onboarding_statusOnboardingYesGet setup progress and next step
list_projectsProjectsYesList all projects
create_projectProjectsYesCreate a new project
get_projectProjectsYesGet project details
update_projectProjectsYesUpdate project name or URL
configure_projectProjectsYesUpdate platform config
create_linkLinksYesCreate a unified deep link
list_linksLinksYesList links for a project
get_linkLinksYesGet link details
update_linkLinksYesUpdate a link
delete_linkLinksYesDelete a link
get_link_analyticsLinksYesGet click analytics
list_domainsDomainsYesList domains for a project
add_domainDomainsYesAdd a custom domain
verify_domainDomainsYesVerify domain DNS
delete_domainDomainsYesRemove a domain
list_api_keysAPI KeysYesList API keys
create_api_keyAPI KeysYesCreate a new API key
revoke_api_keyAPI KeysYesRevoke an API key
get_subscriptionAccountYesGet subscription details
list_plansAccountYesList available plans
get_usageAccountYesGet usage statistics

Common Workflows

Set Up Deep Linking for a New App

  1. authenticate — Sign in or create account
  2. create_project — Create a new project with your app name
  3. get_onboarding_status — See what steps remain
  4. add_domain — Add a shared.ly subdomain or custom domain
  5. configure_project — Set iOS bundle ID, Android package name, URL schemes
  6. Run ulink verify via CLI to validate configuration
  7. create_link — Create your first deep link
  1. list_projects — Find your project ID
  2. create_link — Create a link with destination URLs for each platform

Check Analytics

  1. list_links — Find the link ID
  2. get_link_analytics — View clicks by device, platform, country, referrer

Environment Variables

VariableDescriptionDefault
ULINK_API_KEYAPI key for authentication (alternative to browser OAuth)
ULINK_API_URLAPI base URLhttps://api.ulink.ly
ULINK_FRONTEND_URLFrontend URL for OAuth flowhttps://ulink.ly

Authentication Methods

The MCP server supports two authentication methods:

  1. Browser OAuth (default) — The authenticate tool opens a browser for sign-in. Tokens are stored encrypted in ~/.ulink/config.json.
  2. API Key — Set the ULINK_API_KEY environment variable. Get an API key from the dashboard or via the create_api_key tool.