Skip to main content

Standalone Hack Forums MCP launch surface

Project description

hf-mcp

hf-mcp is a standalone MCP server package for the Hack Forums API v2.

Product target

The product target is full documented Hack Forums API coverage. The registry and coverage matrix include:

  • core read helpers (me, users, forums, threads, posts)
  • extended read helpers (bytes, contracts, disputes, bratings)
  • later-lane documented read/write rows for sigmarket, contract, and documented admin/high-risk helpers
  • documented write helpers (threads.create, posts.reply, bytes.transfer, bytes.deposit, bytes.withdraw, bytes.bump)

Exposure model

Profiles and overlays are an exposure control layer for a specific user or deployment. They do not redefine product scope. If a deployment disables a row, that row still remains in the documented product coverage matrix.

Launch surface

  • console entrypoint: hf-mcp
  • module entrypoint: python -m hf_mcp
  • hf-mcp aliases hf-mcp serve (stdio runtime launch)
  • hf-mcp setup init creates first-run local config and prints the next commands
  • hf-mcp doctor validates local config/secrets/token readiness without network I/O
  • hf-mcp ships the mcp runtime dependency required for the stdio launch path
  • hf-mcp serve runs one stdio server instance and exits when the stdio client disconnects
  • hf-mcp serve fails closed on invalid bootstrap state (config/secrets/token/runtime dependency)

First run

pip install hf-mcp
hf-mcp setup init

Set secrets in your local environment (.env or shell):

export HF_MCP_CLIENT_ID=your_client_id
export HF_MCP_CLIENT_SECRET=your_client_secret

Configure OAuth redirect handling in your local environment (.env or shell):

# Hosted mode (recommended): register your hosted callback page URL in HF app settings.
# Host the static artifact at docs/oauth_callback.html (for example via GitHub Pages).
export HF_MCP_EXTERNAL_REDIRECT_URI=https://cortalabs.github.io/hf_mcp/oauth_callback.html

# The hosted callback page forwards to this fixed local target:
# http://127.0.0.1:8765/callback

# Legacy fallback (loopback only): if hosted mode is not used, set this instead.
export HF_MCP_REDIRECT_URI=http://127.0.0.1:8765/callback

Finish local bootstrap and readiness checks:

hf-mcp auth bootstrap
hf-mcp doctor
hf-mcp serve

Source distribution boundary

MANIFEST.in defines a package-local source distribution boundary rooted in products/hf_mcp. The source distribution includes package docs, tests, and runtime source from this product subtree only.

Documentation

  • docs/configuration.md
  • docs/coverage_matrix.md
  • docs/security_model.md
  • docs/export_boundary.md

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

hf_mcp-0.1.1.tar.gz (42.9 kB view details)

Uploaded Source

Built Distribution

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

hf_mcp-0.1.1-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 42.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hf_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42ab77dbb4f78691bdfec49f4cc7928d19d22c6e24c824f6bd25fc69423d3d59
MD5 7e793181231ee907ae38d2d29d7b4930
BLAKE2b-256 64a16ce0cb362c89275f04518a47bf36f8e15243caf459bcab800a2b727643f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hf_mcp-0.1.1.tar.gz:

Publisher: publish-hf-mcp-pypi.yml on CortaLabs/hf_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: hf_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hf_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6074bf1f07c6b4be583863e5eacae27afe3c9d1d0e988f7299274c7463538bf5
MD5 2e1b5244dd84eaf653241db475c2cbd4
BLAKE2b-256 0e145dbab21162a8e015009b07e8a2acf5d78fc3bcb4897e9e5142459edb169a

See more details on using hashes here.

Provenance

The following attestation bundles were made for hf_mcp-0.1.1-py3-none-any.whl:

Publisher: publish-hf-mcp-pypi.yml on CortaLabs/hf_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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