Skip to main content

X-HR MCP server using stdio transport

Project description

XHR MCP Server

Python MCP server for X-HR tools. This package is intended to run as a stdio MCP server so external clients can launch it as a local subprocess and communicate through standard input/output.

Transport

This server uses MCP stdio transport.

It is not intended to expose an HTTP MCP endpoint. MCP clients should start the package command directly and let the client manage the stdio session.

Install

From PyPI, once published:

pip install xhr-mcp-server

Or run it without a persistent install:

uvx xhr-mcp-server

For local development:

uv sync

MCP Client Config

Example stdio configuration:

{
  "mcpServers": {
    "xhr": {
      "command": "uvx",
      "args": ["xhr-mcp-server"]
    }
  }
}

If the package is installed in the same environment as the MCP client:

{
  "mcpServers": {
    "xhr": {
      "command": "xhr-mcp-server",
      "args": []
    }
  }
}

Local Development

Run from the repository root:

uv run xhr-mcp-server

The installed package exposes the same command:

xhr-mcp-server

Environment

Common environment variables:

LOG_LEVEL=DEBUG
LOG_FORMAT=pretty
API_BASE_URL=https://api.dev.x-hr.ai
XHR_PAT=

API_BASE_URL defaults to https://api.x-hr.co when unset. For local testing, set it to the dev API URL shown above. XHR_PAT is optional. When present and the MCP request does not include an authorization header, script tools forward it as authorization: Bearer <XHR_PAT>. Script tools also use that authorization header to call /v1/im/me and fill xhr-employee-id and xhr-company-id when they are missing.

Notes

Database migrations, Alembic, SQLAlchemy, and Postgres are intentionally not part of this package.

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

xhr_mcp_server-0.1.4.tar.gz (163.9 kB view details)

Uploaded Source

Built Distribution

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

xhr_mcp_server-0.1.4-py3-none-any.whl (297.7 kB view details)

Uploaded Python 3

File details

Details for the file xhr_mcp_server-0.1.4.tar.gz.

File metadata

  • Download URL: xhr_mcp_server-0.1.4.tar.gz
  • Upload date:
  • Size: 163.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for xhr_mcp_server-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e5663255bccd49e50cc561356291b1d188b4e518a6497b80a03bba0b324bdf3e
MD5 540c07e476f05c365d2fcc3766983443
BLAKE2b-256 a4909d5028736801cd5dfd89a7b9ca0bd7a5828a97f35d1a2677fe82a837cd88

See more details on using hashes here.

File details

Details for the file xhr_mcp_server-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: xhr_mcp_server-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 297.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for xhr_mcp_server-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3fd9ca9e57e4f9f4cc0ef10a6aead8cf10b312f4c83580edb16517a8dbae1772
MD5 597f1e384d62f753d6145990622dae4b
BLAKE2b-256 acc2b72987111910a2c4e1f69bcac02798fe975a59a4a7b9b14651a98efde940

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