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 集成