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.3.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.3-py3-none-any.whl (297.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xhr_mcp_server-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e7290a3487f02f575c11036199ea5350567ae7b97df46396cab8c706f7a35868
MD5 6c8cb428285a8f7ca0a1807735a205b7
BLAKE2b-256 291e6d04d0d39f2ea06860b7e51767d5fbd4875170f126a99b1b7db1e2f3f191

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xhr_mcp_server-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 297.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6f19ac7357e415db39888a0d242315a48f6b65787070cf1371cb40f910813d05
MD5 739d61192a4a45254242b0961abd89fa
BLAKE2b-256 c9d5e3016d7afcab0a84fc726d85dbdb65ed8514a8f3082713f1fcfb56a48528

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