linkyun-ops-mcp
This server is an MCP adapter for LinkYun operations, providing tools for metrics querying, agent management, home recommendation configuration, and campaign tracking analytics — all forwarded to the LinkYun Ops HTTP API.
Metrics
ops_list_metrics— List all available operations metrics.ops_query_metric— Query a specific metric usingaggregate,timeseries,compare, orrankoperations, with support for platform/workspace scope, time ranges, granularity (hour/day/week/month), and optional agent filtering.
Home Recommendations
ops_get_home_recommendations— Retrieve current banner, platform recommendation, and hot ranking config for a workspace.ops_preview_home_recommendations— Validate and preview changes without writing them.ops_set_home_recommendations— Apply home recommendation changes with an audit reason.
Agent Management
ops_list_agents— List/search workspace agents with filters (status, hidden, agent code, pagination).ops_get_agent— Get a single agent's details (status, hidden flag, category, display tags).ops_list_agent_tags— List active tag dimensions, tags, and category mappings.ops_update_agent— Update an agent's status, hidden flag, category, or display tags with an audit reason.
Campaign Tracking Analytics
ops_get_tracking_summary— Query a campaign funnel summary, filterable by link, source, campaign, and time range.ops_get_tracking_breakdown— Compare funnels grouped bylink_id,source, orcampaign.ops_get_tracking_trend— Query hourly or daily funnel trend data over a time range.
Short-Link Management
ops_list_tracking_short_links— List short-link configurations, optionally with per-link funnel metrics.ops_create_tracking_short_link— Create a new campaign short-link (code, source, campaign, target URL, audit reason).ops_update_tracking_short_link— Update or disable an existing short-link with an audit reason.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@linkyun-ops-mcp list all agents"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
linkyun-ops-mcp
MCP adapter for LinkYun operations metrics.
The server exposes MCP tools for Agents and forwards every request to the
linkyun-agent Ops HTTP API. It does not connect to databases, generate SQL,
define metrics, or make authorization decisions.
Tools
ops_list_metrics: list metrics available to the configured operator token.ops_query_metric: query one backend metric with the backend query contract.ops_get_home_recommendations: get home banner/platform/hot ranking config.ops_preview_home_recommendations: validate partial home recommendation config.ops_set_home_recommendations: replace supplied home recommendation modules with audit.ops_list_agents: list/find workspace agents with operations fields.ops_get_agent: get one workspace agent by code.ops_list_agent_tags: list active tag library and discover categories.ops_update_agent: update allowed Agent operations fields with audit.ops_get_tracking_summary: query one campaign tracking funnel summary.ops_get_tracking_breakdown: compare funnels bylink_id,source, orcampaign.ops_get_tracking_trend: query hourly or daily campaign funnel trends.ops_list_tracking_short_links: list short-link configs, optionally with metrics.ops_create_tracking_short_link: create a short-link config with audit reason.ops_update_tracking_short_link: update a short-link config with audit reason.
Related MCP server: opencode-cli-mcp
Configuration
LINKYUN_OPS_BASE_URL=http://localhost:8080
LINKYUN_OPS_TOKEN=ops_...
LINKYUN_OPS_CLIENT=linkyun-ops-mcp
LINKYUN_OPS_TIMEOUT_MS=10000Development
npm.cmd install
npm.cmd run build
npm.cmd test
npm.cmd run lint
openspec validate ops-mcp-adapter-mvp --strict
openspec validate ops-agent-management-tools --strict
openspec validate ops-tracking-analytics-v2 --strictClaude Desktop Example
{
"mcpServers": {
"linkyun-ops": {
"command": "node",
"args": ["D:/Projects/linkyun/linkyun-ops/linkyun-ops-mcp/dist/index.js"],
"env": {
"LINKYUN_OPS_BASE_URL": "http://localhost:8080",
"LINKYUN_OPS_TOKEN": "ops_..."
}
}
}
}Agents must convert relative time phrases into explicit RFC3339 timestamps
before calling ops_query_metric or tracking analytics tools.
Metric Notes
ops_query_metric forwards metric codes to the backend Ops API. Adding a new
backend metric usually does not require an MCP tool schema change unless the
query contract itself changes.
Common backend metric codes:
accounts_createdregistered_usersagents_createdchat_messagesagent_assistant_messagesagent_likesmoment_likesmoment_favorites
agent_likes, moment_likes, and moment_favorites support rank in the
backend. They also accept optional agent_code for aggregate, timeseries, and
compare queries; for Moment metrics, agent_code means Moments belonging to
that Agent.
Tracking Notes
Tracking analytics tools forward to backend Ops APIs and return backend JSON unchanged. Adding a new backend event count or conversion-rate field does not require an MCP schema change unless the request contract changes.
Supported event counts include:
clicklanding_openvalid_openregister_startregister_successcreate_idol_startcreate_idol_successchat_startfirst_message_sentfirst_agent_reply_receiveddiscovery_viewagent_searchagent_design_sheet_viewadd_friend_successmessage_sentagent_reply_receivedchat_send_failagent_reply_timeoutgroup_chat_create_successgroup_chat_upgrade_successgroup_message_sentgroup_agent_reply_receivedgroup_reply_timeoutmoments_viewagent_moments_viewmoment_likemoment_commentshare_agent_openguest_session_create_successguest_message_sentguest_reply_receivedguest_enter_appwelcome_viewguest_explore_clickguest_home_viewguest_tab_clickauth_required_viewauth_required_sourceauth_required_actionauth_required_closeauth_method_selectauth_successauth_failredirect_after_auth_startredirect_after_auth_successredirect_after_auth_failpending_action_execute_successpending_action_execute_failguest_to_auth_startguest_to_auth_successguest_create_intentguest_companion_intentguest_interaction_intent
Tracking responses may include these conversion-rate fields:
landing_open_rate = landing_open / clickvalid_open_rate = valid_open / landing_openregister_start_rate = register_start / landing_openregister_success_rate = register_success / landing_opencreate_idol_start_rate = create_idol_start / landing_opencreate_idol_success_rate = create_idol_success / landing_openregister_to_create_success_rate = create_idol_success / register_successchat_start_rate = chat_start / valid_openfirst_message_sent_rate = first_message_sent / valid_openfirst_agent_reply_received_rate = first_agent_reply_received / first_message_sent
Use ops_get_tracking_breakdown for channel or campaign comparison, and
ops_get_tracking_trend for day/hour trend charts. Short-link writes require
reason; disabling a link uses status: "disabled" rather than delete.
Use ops_list_tracking_short_links with include_metrics=true and explicit
created_from / created_to values to return per-link funnel metrics.
Example tracking questions:
List short links with metrics for
2026-07-01T00:00:00+08:00to2026-07-08T00:00:00+08:00.Compare
ai_world_launch_202606bysourcefor an explicit date range.Query daily funnel trend for one
link_id.Query whether campaign traffic reached chat activation using
chat_start,first_message_sent, andfirst_agent_reply_received.
Available Tools
15 toolsops_create_tracking_short_linkC
Create a campaign short-link configuration. Requires a reason for backend audit.
Inputs: code (required), reason (required), source (required), link_id (required), +3 more.
ops_get_agentA
Get one workspace agent by agent_code, including status, hidden flag, category, and display tags.
Inputs: agent_code (required), workspace_code (required).
ops_get_home_recommendationsC
Get current home banner, platform recommendation, and hot ranking configuration.
Inputs: workspace_code (required).
ops_get_tracking_breakdownC
Compare campaign tracking funnels grouped by link_id, source, or campaign. Convert relative dates to explicit RFC3339 timestamps before calling.
Inputs: group_by (required), limit, offset, source, +4 more.
ops_get_tracking_summaryC
Query one LinkYun campaign tracking funnel summary. Convert relative dates to explicit RFC3339 timestamps before calling.
Inputs: source, link_id, campaign, created_to, +1 more.
ops_get_tracking_trendC
Query campaign tracking funnel trends by hour or day. Requires explicit RFC3339 created_from and created_to.
Inputs: grain (required), created_to (required), created_from (required), source, +2 more.
ops_list_agentsC
List or find agents in a workspace for operations management. Supports filters for agent_code, status, hidden, limit, and offset.
Inputs: workspace_code (required), limit, hidden, offset, +2 more.
ops_list_agent_tagsB
List active frontend-visible Agent tag dimensions/tags and discover category mappings.
Inputs: no named parameters.
ops_list_metricsA
List LinkYun operations metrics available to the configured token.
Inputs: no named parameters.
ops_list_tracking_short_linksC
List campaign short-link configurations. Optionally include per-link funnel metrics for an explicit time window.
Inputs: limit, offset, status, created_to, +2 more.
ops_preview_home_recommendationsA
Validate and preview a partial home recommendation config without writing changes. Only supplied modules are replaced; omitted modules are preserved.
Inputs: modules (required), workspace_code (required), reason.
ops_query_metricC
Query one LinkYun operations metric. Send explicit RFC3339 ranges and the backend query contract only.
Inputs: range (required), scope (required), metric (required), operation (required), +5 more.
ops_set_home_recommendationsA
Replace supplied home recommendation modules for a workspace. Omitted modules are preserved. Requires a reason.
Inputs: modules (required), workspace_code (required), reason.
ops_update_agentB
Update one workspace Agent operations fields: status, hidden flag, category_key, and display_tag_keys. Requires a reason.
Inputs: reason (required), agent_code (required), workspace_code (required), hidden, +3 more.
ops_update_tracking_short_linkC
Update a campaign short-link configuration by code. Requires a reason for backend audit.
Inputs: code (required), reason (required), source (required), link_id (required), +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct resource and action: agents, short links, home recommendations, tracking, and metrics are all clearly separated. There is no ambiguity between similar tools like list vs get or summary vs breakdown.
All tools follow the consistent pattern 'ops_{verb}_{noun}' (e.g., ops_list_agents, ops_create_tracking_short_link). Verbs like get/list, create/update, and preview/query are used consistently for their respective operations.
With 15 tools, the server covers multiple sub-domains (agents, short links, home recommendations, tracking, metrics) without being bloated. Each tool serves a clear purpose, and the count is well-scoped for the operations management domain.
The tool surface covers core CRUD and query operations for agents, short links, home recommendations, and tracking. Minor gaps exist, such as missing delete operations for short links or agent creation, but these are likely handled by other systems or are out of scope for this ops server.
Maintenance
Related MCP Connectors
Remote MCP utilities for agents: structured data, commerce checks, and x402 paid API discovery.
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
MCP federation gateway: route, govern and observe agent tools across clouds and MCP servers.
Work with roles, tasks and delegated agent work within current workspace permissions. Setup: In a remote MCP client that supports Streamable HTTP and OAuth, add https://platform.samuelz.com/api/v1/mcp/operator?toolset=agent. Sign in to Samuelz and select your authorized workspace. An active workspace membership and the relevant module permissions are required. Review the requested permissions before authorizing. Existing approval requirements continue to apply.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.54MIT
- AlicenseBqualityBmaintenanceWraps opencode CLI's HTTP API into MCP tools for agent run, session management, and server status, plus a fleet webapp dashboard.253MIT
- AlicenseNot gradedqualityDmaintenanceProvides a standardized MCP interface for interacting with HTTP tools and services, enabling unified API access and management.MIT
- FlicenseNot gradedqualityDmaintenanceExposes DevOps/SRE operations like Kubernetes pod status, Prometheus metrics queries, and deploy history as tools for MCP-compatible clients.-