LLX Agent MCP Implementation

LLX Agent MCP Implementation

A minimal MCP server with a sample search_news skill that demonstrates how Claude Code can automatically call a skill over the MCP protocol.

Category
访问服务器

README

LLX Agent — MCP Skills Library

A confidential "skills library": employees use local Claude, which auto-calls these skills over MCP. The skill code/data run in the cloud and are never downloaded locally, so employees can use the skills but cannot read them.

Full architecture & the 7-phase rollout plan: see ../workflow/mcp structure.md. This README is the operational guide (how to run, change, redeploy); that doc explains the why.

Status: ✅ Live on Azure (since 2026-06-29)

Endpoint https://llx-mcp.delightfuldesert-f5bbaa56.eastus.azurecontainerapps.io/mcp
Skills each skill is its own file in server/skills/ (auto-loaded)
Source (public GitHub) Cathylixi/LLX-Agent-MCP-Implementation
Azure RG LLXSolutions · app llx-mcp · ACR cafa6fd6c51facr · env managedEnvironment-LLXSolutions-b380 (East US)

How employees connect

Put this .mcp.json in the folder where they open Claude Code. It holds only the URL — no skill content:

{ "mcpServers": { "llx-skills": {
  "type": "http",
  "url": "https://llx-mcp.delightfuldesert-f5bbaa56.eastus.azurecontainerapps.io/mcp"
} } }

Then just ask naturally and Claude auto-calls the matching skill.

Skills

Each skill is its own file in server/skills/. server/main.py auto-loads every file in that folder at startup, so adding a skill = drop a new .py file in server/skills/ (copy an existing one as a template) — nothing else to edit.

Project layout

server/
  main.py        # entry point — auto-loads every skill (rarely touch)
  app.py         # the shared MCP server instance
  skills/        # ONE FILE PER SKILL  ← add / edit skills here
requirements.txt # Python dependencies
Dockerfile       # how Azure packages the server
.mcp.json        # client config (points at the cloud endpoint)

Change a skill & redeploy

Editing GitHub does NOT auto-update Azure. The full loop:

  1. Add or edit a file in server/skills/, commit, and push to GitHub.
  2. Open Azure Cloud Shell: go to https://portal.azure.com, click the >_ icon in the top bar, choose Bash.
  3. Run these two commands (no local Docker / CLI needed):
az acr build --registry cafa6fd6c51facr --image llx-mcp:v2 https://github.com/Cathylixi/LLX-Agent-MCP-Implementation.git
az containerapp update --name llx-mcp --resource-group LLXSolutions --image cafa6fd6c51facr.azurecr.io/llx-mcp:v2

Why update (not up): update only swaps the image and keeps the existing ingress and secrets/env vars (like the database MONGO_URI). Use it for all redeploys after the first one.

Why manual: auto-deploy needs a "service principal", which the org account ai@llxsolutions.com isn't allowed to create — so we build & deploy by hand.

Tag note: we always reuse the same tag (currently :v2), so each deploy overwrites the last (no version history). Bump to :v3, :v4, … in both commands if you want rollback points.

Connecting a database (Azure Cosmos DB)

The server can query the company database server-side and return only the results, so employees never see the database address or password. Connected since 2026-06-29.

  • Database: Azure Cosmos DB (MongoDB API), database llxdocument, cluster llx-solutions-msft5.
  • Driver: pymongo[srv] in requirements.txt (the +srv URI needs dnspython).
  • Skill: the database skill is a file in server/skills/. It reads the connection string from the MONGO_URI env var and queries the DB server-side.
  • Full write-up: ../workflow/connecting database.md.

Golden rules: (1) the connection string is a secret — it lives in an encrypted Azure secret, never in the code/GitHub; (2) expose specific, read-only query skills, never a generic "run any SQL" skill.

How it was deployed (run in Azure Cloud Shell)

# 1. build the image (includes pymongo[srv])
az acr build --registry cafa6fd6c51facr --image llx-mcp:v2 https://github.com/Cathylixi/LLX-Agent-MCP-Implementation.git

# 2. store the connection string as an encrypted secret
#    (copy the value from AI-for-Word/backend/.env line 8; keep the single quotes)
az containerapp secret set --name llx-mcp --resource-group LLXSolutions --secrets mongo-uri='<CONNECTION_STRING>'

# 3. deploy the image AND wire the secret to the MONGO_URI env var
az containerapp update --name llx-mcp --resource-group LLXSolutions --image cafa6fd6c51facr.azurecr.io/llx-mcp:v2 --set-env-vars MONGO_URI=secretref:mongo-uri

To change the connection string later, re-run step 2 only (then restart a revision). To add new DB query skills, edit main.py and redeploy (steps 1 + 3).

If the connection times out: open the Cosmos DB in the portal → Networking → allow access from Azure services / public Azure datacenters.

Verify it's working

After deploying (or any time), check the live server with a quick MCP client:

pip install mcp        # once
python - <<'PY'
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
URL = "https://llx-mcp.delightfuldesert-f5bbaa56.eastus.azurecontainerapps.io/mcp"
async def main():
    async with streamablehttp_client(URL) as (r, w, _):
        async with ClientSession(r, w) as s:
            await s.initialize()
            print([t.name for t in (await s.list_tools()).tools])
            print((await s.call_tool("db_list_collections", {})).content[0].text)
asyncio.run(main())
PY

Expect it to print the available tool names and the database collections. (Or in Claude Code with the .mcp.json above, just ask it to list the collections.)

⚠️ Security gap (fix before real data)

The endpoint has no authentication — anyone with the URL can call it.

  • ✅ Outsiders cannot read the skill code/prompts (those stay server-side).
  • ⚠️ But they can call the skills, get the results, see tool names, and burn cost.

Fine for the fake-data demo. Once skills return real confidential data, add token auth so only employees can call them.

Local development (optional)

To test changes on your own machine before deploying:

pip install -r requirements.txt
python server/main.py          # serves at http://127.0.0.1:8000/mcp

Temporarily point .mcp.json at http://127.0.0.1:8000/mcp, open Claude Code in this folder, and try a skill. Restart the server after each code change (a stale server keeps the old port 8000 and your new skill won't show up).

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选