UK Data: Code utilities

uk.co.reliness由 reliness.co.uk 發布官方發布者v1.5.0更新於 Nov 7, 2026

Deterministic string, list and number routines: palindromes, sorting, searching, validation, merging

發布方自己的服務:UK Data: Compliance and finance checks

已驗證Streamable HTTP可網頁執行開發者工具資料與分析

概覽

AI 產生的概覽

遠端 MCP 端點,提供 32 個確定性的字串、清單與數字工具常式,例如回文判斷、排序、搜尋與驗證。

可以做什麼
  • 檢查字串:回文、易位構詞、旋轉、括號配對、首個不重複字元、最長單字、反轉
  • 搜尋與排序清單:二分搜尋、排序、第 k 小、前 n 大、峰值元素、多數元素、重複與缺失數字、和為目標值的數對
  • 分析陣列:最大子陣列和、平衡索引、下一個更大元素、攤平巢狀清單、合併有序清單
  • 驗證與計算數字:IPv4 位址格式、完全平方數、整數次方、各位數字立方和、位元計數、二進位加法
  • 處理結構與排程:合併字典、驗證 9x9 數獨、判斷會議是否衝突及最少會議室數
適用情境
適合想把小型、定義明確的演算法檢查與計算交給託管服務、而不在本機撰寫與執行程式碼的情境,例如快速資料驗證或演算法題求解。
執行需求
需要遠端 streamable HTTP 端點,不需本機執行環境或安裝套件。可選的 Authorization 標頭攜帶 bearer 金鑰可提高免費每日額度,免費金鑰需向服務商的金鑰端點取得。每次工具呼叫消耗 1 個額度。
安裝前請注意
每次呼叫計 1 個額度,免費每日額度有限,大量使用需要金鑰。Authorization 中的 bearer 金鑰屬於機密,應透過標頭提供而非外流。送出的字串、清單等輸入會由遠端服務商處理。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/uk.co.reliness%2Fcode-utilities/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "uk-data-code-utilities": {
      "type": "http",
      "url": "https://ukdata.reliness.co.uk/mcp/code-utilities"
    }
  }
}

工具

32

is_valid_ip_address

is valid ip address

Validates whether a string is a properly formatted IPv4 address with four octets (0-255) separated by dots. (cost: 1 credit)

輸入參數ip

find_max_subarray_sum

find max subarray sum

Finds the maximum sum of any contiguous subarray using Kadane's algorithm. (cost: 1 credit)

輸入參數nums

merge_dictionaries

merge dictionaries

Merges two dictionaries into a single dictionary, with values from the second dictionary overwriting those from the first for duplicate keys. (cost: 1 credit)

輸入參數dict1dict2

find_kth_smallest

find kth smallest

Finds the kth smallest number in an unsorted list (1-indexed, where k=1 returns the smallest element). (cost: 1 credit)

輸入參數knums

count_bits

count bits

Counts the number of set bits (1's) in the binary representation of a non-negative integer. (cost: 1 credit)

輸入參數num

reverse_string

reverse string

Reverses the order of characters in a given string, returning the string backwards. (cost: 1 credit)

輸入參數text

min_meeting_rooms

min meeting rooms

Finds the minimum number of meeting rooms required to accommodate all meetings given their time intervals. Uses interval scheduling algorithm. (cost: 1 credit)

輸入參數intervals

find_next_greater_element

find next greater element

For each element in a list, finds the next greater element to its right. Returns -1 if no greater element exists. (cost: 1 credit)

輸入參數nums

binary_addition

binary addition

Adds two binary numbers represented as strings and returns the sum as a binary string. Performs binary arithmetic with carry propagation. (cost: 1 credit)

輸入參數ab

is_palindrome

is palindrome

Checks if a string is a valid palindrome, considering only alphanumeric characters and ignoring case and spaces. (cost: 1 credit)

輸入參數text

sort_numbers

sort numbers

Sorts a list of numbers in ascending order using a deterministic sorting algorithm. (cost: 1 credit)

輸入參數numbers

find_pairs_with_sum

find pairs with sum

Finds all unique pairs of integers in a list that sum to a specified target value. Returns pairs as arrays. (cost: 1 credit)

輸入參數numstarget

is_perfect_square

is perfect square

Checks if a number is a perfect square (i.e., the square of an integer). (cost: 1 credit)

輸入參數num

find_n_largest

find n largest

Finds the n largest numbers from a list and returns them in descending order. (cost: 1 credit)

輸入參數nnums

is_valid_parentheses

is valid parentheses

Checks if a string contains properly balanced and nested parentheses, brackets, and braces. Returns true if every opening symbol has a matching closing symbol in the correct order. (cost: 1 credit)

輸入參數s

find_minimum_rotated_sorted_array

find minimum rotated sorted array

Finds the minimum element in a rotated sorted array using binary search. The array was originally sorted in ascending order then rotated at some pivot point. (cost: 1 credit)

輸入參數nums

flatten_list

flatten list

Flattens a nested list structure into a single-level list by recursively extracting all elements regardless of nesting depth. (cost: 1 credit)

輸入參數nested_list

is_anagram

is anagram

Checks if two words are anagrams by comparing if they contain the same characters with the same frequencies, ignoring case and whitespace. (cost: 1 credit)

輸入參數word1word2

find_first_non_repeating_char

find first non repeating char

Finds the first character in a string that appears only once. Returns null if all characters repeat. (cost: 1 credit)

輸入參數s

find_equilibrium_index

find equilibrium index

Finds the equilibrium index in an array where the sum of elements to the left equals the sum of elements to the right. Returns -1 if no such index exists. (cost: 1 credit)

輸入參數arr

find_missing_number

find missing number

Finds the missing number in a sequence of integers from 0 to n where exactly one number is missing. Uses sum formula or XOR method. (cost: 1 credit)

輸入參數nums

is_power

is power

Checks if a given number is an exact integer power of a specified base. Returns true if num = base^k for some non-negative integer k, false otherwise. (cost: 1 credit)

輸入參數numbase

find_longest_word

find longest word

Finds and returns the longest word in a given text string. If multiple words have the same maximum length, returns the first occurrence. (cost: 1 credit)

輸入參數text

can_attend_meetings

can attend meetings

Determines if a person can attend all meetings given a list of time intervals by checking for overlapping time slots. Returns true if no meetings conflict, false otherwise. (cost: 1 credit)

輸入參數intervals

is_rotation

is rotation

Checks if one string is a rotation of another string by verifying if str1 appears in str2 concatenated with itself. Returns true if str1 is a rotation of str2, false otherwise. (cost: 1 credit)

輸入參數str1str2

find_peak_element

find peak element

Finds a peak element in a list where an element is greater than its neighbors. Returns the index of any peak element found. (cost: 1 credit)

輸入參數nums

find_duplicate_number

find duplicate number

Finds the duplicate number in a list of integers where exactly one number appears more than once. Returns the duplicate value. (cost: 1 credit)

輸入參數nums

is_sum_of_cubes

is sum of cubes

Checks if a number equals the sum of the cubes of its digits (e.g., 153 = 1³ + 5³ + 3³). Returns true if the condition holds, false otherwise. (cost: 1 credit)

輸入參數num

validate_sudoku

validate sudoku

Checks if a 9x9 Sudoku board is valid by verifying that each row, column, and 3x3 sub-grid contains no duplicate digits 1-9. Returns true if valid, false otherwise. (cost: 1 credit)

輸入參數board

find_majority_element

find majority element

Finds the majority element in a list that appears more than ⌊n/2⌋ times using Boyer-Moore voting algorithm. Returns the majority element if it exists, null otherwise. (cost: 1 credit)

輸入參數nums

merge_sorted_lists

merge sorted lists

Merges two sorted lists into a single sorted list maintaining ascending order. Returns the merged sorted list. (cost: 1 credit)

輸入參數list1list2

版本歷史

1
  1. v1.5.0最新Nov 7, 2026

評分

已滿足適用檢查項的 83%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。

其他 Reliness 整合