Skip to main content

MCP server that shares microservice API contracts between AI coding assistants

Project description

HIS Service Registry (MCP)

An MCP server that lets multiple Claude Code sessions share microservice API contracts, so a Claude working on one service can look up another service's real endpoints and field names instead of guessing.

What's inside

  • list_services — list all microservices in the registry.
  • get_service_api — get one service's endpoints, request fields, response fields.
  • add_service — add or update a service's API contract.

Data is stored in a PostgreSQL database (table: services).

Setup

1. Start the database (PostgreSQL in Docker)

First time only — creates the container:

docker run -d --name registry-db \
  -e POSTGRES_PASSWORD=devpass -e POSTGRES_DB=registry \
  -p 5432:5432 postgres:16

Create the table (first time only):

docker exec -i registry-db psql -U postgres -d registry -c "CREATE TABLE IF NOT EXISTS services (name TEXT PRIMARY KEY, description TEXT NOT NULL, contract JSONB NOT NULL, updated_at TIMESTAMPTZ NOT NULL DEFAULT now());"

After a reboot, just start the existing container again:

docker start registry-db

2. Install dependencies

uv sync

3. Run / test with the Inspector

uv run mcp dev src/service_registry/server.py

Configuration

The database connection is read from the REGISTRY_DB_URL environment variable. Default (local Docker):

postgresql://postgres:devpass@127.0.0.1:5432/registry

Note: use 127.0.0.1, not localhost, on Windows — localhost can resolve to IPv6 and hang against the Docker-mapped IPv4 port.

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

mcp_service_registry-0.1.0.tar.gz (68.4 kB view details)

Uploaded Source

Built Distribution

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

mcp_service_registry-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_service_registry-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_service_registry-0.1.0.tar.gz
  • Upload date:
  • Size: 68.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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 mcp_service_registry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 44cfc775d7be23d3ec0a81bcf5625159f5072dca82828b2c99f327e970cd511a
MD5 43790c6bee4207bcea52926e2f9c5047
BLAKE2b-256 fb3c9a9e0c23592473b4526f333e8ada27d4df77ecfada95b2ff4ad748767e43

See more details on using hashes here.

File details

Details for the file mcp_service_registry-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_service_registry-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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 mcp_service_registry-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ead6a5d0b19d301e9553217f2ca2bf51a6096e44f6b444ef12ea752a4bd91bf5
MD5 69bfffa87ad886929ad66e784ccb5393
BLAKE2b-256 835d037e3f4a1ff2ff74c21beeab41c540ba5b16ee7702a3c262a182df43234a

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