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.2.tar.gz (46.0 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.2-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hf_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 46.0 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.2.tar.gz
Algorithm Hash digest
SHA256 ea65d3f56c2fe742ae65e922b22e985aa30d332ed440e28dd7513269958a866d
MD5 c3d16b9ef23aa95215d0424a180ac832
BLAKE2b-256 72a57e32f61279365869ae5a9755b39744c811a4fada732b2d8f1e018e07e7dc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hf_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 30.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c519feaecc609c4a03cb545bb1f7418eb0767852d0cecaa18bd95e0f8d900e1
MD5 ae18dbc0c915573db726d6cc11394b33
BLAKE2b-256 a0956aca3d04ae44cfd678cafdd87ce4fca44db97af79a7f5a175a3b1c9a17c8

See more details on using hashes here.

Provenance

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