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.1.tar.gz (163.6 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.1-py3-none-any.whl (297.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xhr_mcp_server-0.1.1.tar.gz
  • Upload date:
  • Size: 163.6 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.1.tar.gz
Algorithm Hash digest
SHA256 46e1a032257aebbb6f3e28054ee2ec924b1d15b09aa6dc8fb6181f47800daade
MD5 ebdcbe20f42e6971e813b5c530f6390d
BLAKE2b-256 d1589d4ca829cfe3fbcf4643befbaf33775675b0ab3fdcaee9700d3df954dffa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xhr_mcp_server-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 297.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b041b9e56f93fa683176e87a875b854c1c5d33a1ed1dbb83ac0b77eda7dde3d
MD5 7ec3d9be33c44a259ff5c21c7d425ad5
BLAKE2b-256 3a9cbc125341ce1d09f27fd7cea3296aaf3c3989551dc8a263dfd62f0b4168b8

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