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, tracked in docs/coverage_matrix.md. Operator-facing truth today is split into two groups:

  • concrete shipped helpers: me.read, users.read, forums.read, threads.read, posts.read, bytes.read, contracts.read, disputes.read, bratings.read, sigmarket.market.read, sigmarket.order.read, admin.high_risk.read, threads.create, posts.reply, bytes.transfer, bytes.deposit, bytes.withdraw, bytes.bump
  • registry-shipped placeholder rows (documented coverage tracking, not live-write promises): contracts.write, sigmarket.write, admin.high_risk.write

Anchored browse contract after HFMCP-INT-03:

  • threads.read is forum-anchored (fid required, optional tid narrowing)
  • posts.read is thread-anchored (tid required, optional pid narrowing)

MCP tool outputs are JSON-first (dict payloads) today. Any future readable output must be additive and must not break existing JSON consumers.

Live testing boundary: no automated live writes. Manual live checks only on TID 6083735 or FID 375, ideally using one testing thread total.

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.3.tar.gz (48.8 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.3-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 48.8 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.3.tar.gz
Algorithm Hash digest
SHA256 2a44f129ef947d5601cb108fbae115c0f7a07ff206af70bdc593e9bd6e526965
MD5 fa940b5ab4b53d719b143fd9f238ed9b
BLAKE2b-256 16ecbe022b6221fba5e5b92d6c010e5052f41e6851aaf4939d99250cef1503ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for hf_mcp-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: hf_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 32.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 03669f9e5868e1e8a50724cb020c6f835c2dacb6f0cb8e639f786fd9f9fa07fb
MD5 5264379b43ecdc7b0a119ec076a55ebf
BLAKE2b-256 6601eb8dfb98e64e44ffe2b9c96936c80c7d4f820a65107a61f477712be27237

See more details on using hashes here.

Provenance

The following attestation bundles were made for hf_mcp-0.1.3-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