Linq

io.github.linq-team由 GitHub 帳號 linq-team 發布v0.79.0更新於 Nov 6, 2026

Send and manage iMessage, RCS, and SMS conversations through the Linq API.

已驗證STDIO僅桌面開發者工具溝通與協作

概覽

AI 產生的概覽

讓助理在沙箱中撰寫 TypeScript 呼叫 Linq API,藉此傳送與管理 iMessage、RCS 及 SMS 對話。

可以做什麼
  • 搜尋 Linq SDK 文件,找出方法、參數與用法範例
  • 在隔離沙箱中對已預先驗證的 Linq API 用戶端執行 TypeScript 程式碼
  • 透過程式碼傳送與管理 iMessage、RCS 及 SMS 對話
  • 回傳或列印每次執行的結果,因為變數不會在多次呼叫之間保留
適用情境
當你希望助理處理 Linq 訊息業務(傳送或管理 iMessage、RCS 及 SMS 對話),且能接受由它撰寫並執行 SDK 程式碼、而非呼叫固定工具時適用。
執行需求
以 npm 套件透過 npx 在本機執行,需要 Node.js。需要 Linq API 金鑰,放在 LINQ_API_V3_API_KEY;README 另提到 LINQ_WEBHOOK_SECRET。需要連線至 Linq API 的網路。也可選擇以遠端 HTTP 伺服器方式啟動,使用 Authorization Bearer 標頭或 x-linq-api-v3-api-key 標頭。
安裝前請注意
伺服器持有 Linq API 金鑰(LINQ_API_V3_API_KEY),README 另涉及 LINQ_WEBHOOK_SECRET,請勿放入共用設定。產生的程式碼可在你的 Linq 帳號上傳送訊息並改變對話狀態,應檢視助理實際執行的內容。程式碼在無網路與檔案系統存取的沙箱中執行,單次請求 30 秒逾時,每次執行約 5 分鐘上限。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Linq,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Linq API V3 TypeScript MCP Server

It is generated with Stainless.

Installation

Direct invocation

You can run the MCP Server directly via npx:

sh
export LINQ_API_V3_API_KEY="My API Key"export LINQ_WEBHOOK_SECRET="My Webhook Secret"npx -y @linqapp/sdk-mcp@latest

Via MCP Client

There is a partial list of existing clients at modelcontextprotocol.io. If you already have a client, consult their documentation to install the MCP server.

For clients with a configuration JSON, it might look something like this:

json
{  "mcpServers": {    "linqapp_sdk_api": {      "command": "npx",      "args": ["-y", "@linqapp/sdk-mcp"],      "env": {        "LINQ_API_V3_API_KEY": "My API Key",        "LINQ_WEBHOOK_SECRET": "My Webhook Secret"      }    }  }}

Cursor

If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables in Cursor's mcp.json, which can be found in Cursor Settings > Tools & MCP > New MCP Server.

[Add to Cursor]

VS Code

If you use MCP, you can install the MCP server by clicking the link below. You will need to set your environment variables in VS Code's mcp.json, which can be found via Command Palette > MCP: Open User Configuration.

Open VS Code

Claude Code

If you use Claude Code, you can install the MCP server by running the command below in your terminal. You will need to set your environment variables in Claude Code's .claude.json, which can be found in your home directory.

claude mcp add linqapp_sdk_mcp_api --env LINQ_API_V3_API_KEY="My API Key" LINQ_WEBHOOK_SECRET="My Webhook Secret" -- npx -y @linqapp/sdk-mcp

Code Mode

This MCP server is built on the "Code Mode" tool scheme. In this MCP Server, your agent will write code against the TypeScript SDK, which will then be executed in an isolated sandbox. To accomplish this, the server will expose two tools to your agent:

  • The first tool is a docs search tool, which can be used to generically query for documentation about your API/SDK.

  • The second tool is a code tool, where the agent can write code against the TypeScript SDK. The code will be executed in a sandbox environment without web or filesystem access. Then, anything the code returns or prints will be returned to the agent as the result of the tool call.

Using this scheme, agents are capable of performing very complex tasks deterministically and repeatably.

Running remotely

Launching the client with --transport=http launches the server as a remote server using Streamable HTTP transport. The --port setting can choose the port it will run on, and the --socket setting allows it to run on a Unix socket.

Authorization can be provided via the Authorization header using the Bearer scheme.

Additionally, authorization can be provided via the following headers:

HeaderEquivalent client optionSecurity scheme
x-linq-api-v3-api-keyapiKeyBearerAuth

A configuration JSON for this server might look like this, assuming the server is hosted at http://localhost:3000:

json
{  "mcpServers": {    "linqapp_sdk_api": {      "url": "http://localhost:3000",      "headers": {        "Authorization": "Bearer <auth value>"      }    }  }}

來源:packages/mcp-server/README.md,提交 8a85ce3

工具

2

execute

Runs JavaScript code to interact with the Linq API V3 API. You are a skilled TypeScript programmer writing code to interface with the service. Define an async function named "run" that takes a single parameter of an initialized SDK client and it will be run. For example: ``` async function run(client) { const chat = await client.chats.create({ from: '+12052535597', message: {}, to: ['+12052532136'], }); console.log(chat.chat); } ``` You will be returned anything that your function returns, plus the results of any console.log statements. Do not add try-catch blocks for single API calls. The tool will handle errors for you. Do not add comments unless necessary for generating better code. Code will run in a container, and cannot interact with the network outside of the given SDK client. Variables will not persist between calls, so make sure to return or log any data you might need later. Remember that you are writing TypeScript code, so you need to be careful with your types. Always type dynamic key-value stores explicitly as Record<string, YourValueType> instead of {}.

輸入參數code必填intent

search_docs

Search SDK documentation to find methods, parameters, and usage examples for interacting with the API. Use this before writing code when you need to discover the right approach.

輸入參數query必填detaillanguage必填

版本歷史

1
  1. v0.79.0最新Nov 6, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分