Skip to main content

Minimal MCP server that generates random integers, strings, and UUIDs.

Project description

alevlas-random-mcp

A minimal MCP server exposing three random-generation tools. Built for the Kiro enterprise MCP registry demo.

Tools

  • generate_random_int(min_value, max_value) → one integer in [min, max]
  • generate_random_string(length, alphabet="alphanumeric") → random string
  • generate_uuid(version=4) → UUID4 (or UUID7 if version=7)

Run locally (for dev)

uv sync
export KB_MCP_LOG_LEVEL=DEBUG      # optional
uv run random-mcp --self-test      # prints one example of each tool

Try with Kiro directly (without the registry)

Drop this into ~/.kiro/settings/mcp.json or a workspace .kiro/mcp.json:

{
  "mcpServers": {
    "alevlas-random-local": {
      "command": "uv",
      "args": ["--project", "<absolute-path>/random-mcp", "run", "random-mcp"],
      "disabled": false,
      "autoApprove": ["generate_random_int", "generate_random_string", "generate_uuid"]
    }
  }
}

Reconnect from the Kiro MCP panel. Ask Kiro to "generate 5 random UUIDs."

Publish to CodeArtifact

Run from the repo root (after terraform apply has created the domain and repo):

pwsh -File ../scripts/publish-random-mcp.ps1

Verify the published package runs from CodeArtifact:

$env:UV_INDEX_URL = (pwsh -File ../scripts/get-index-url.ps1)
uvx alevlas-random-mcp --self-test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alevlas_random_mcp-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alevlas_random_mcp-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file alevlas_random_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: alevlas_random_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for alevlas_random_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fefadd00faf0528b877be3e4ce92c276f3f9b85aacdf75947c589b858004d8a3
MD5 cc7b663b8600c8a6f506efbb701c4984
BLAKE2b-256 293931fa0d63d6b03385f84490518bc59c24051d76170074515dd549371d062f

See more details on using hashes here.

File details

Details for the file alevlas_random_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: alevlas_random_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for alevlas_random_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 445793417d1125cb4db3073c782e76760fc30c7d03f7ad778b945be70ff2e398
MD5 1531dd594d4699f756821a74a8d8a9f8
BLAKE2b-256 96855c8f23cdef4476470810672f31a6c6d0850f457e62648e776ca5a1ab90eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page