René's URL Explorer Experiment


Title: keygen: add generate_signing_keypair() programmatic API alongside adcp-keygen CLI · Issue #217 · adcontextprotocol/adcp-client-python · GitHub

Open Graph Title: keygen: add generate_signing_keypair() programmatic API alongside adcp-keygen CLI · Issue #217 · adcontextprotocol/adcp-client-python

X Title: keygen: add generate_signing_keypair() programmatic API alongside adcp-keygen CLI · Issue #217 · adcontextprotocol/adcp-client-python

Description: Observation Round-8 webhooks-9421 DX agent (PR #205) reported: "`adcp-keygen` shipped to `.venv/bin/` isn't on PATH when invoking `.venv/bin/python` directly (typical CI / subprocess context). First `subprocess.run(["adcp-keygen", ...])`...

Open Graph Description: Observation Round-8 webhooks-9421 DX agent (PR #205) reported: "`adcp-keygen` shipped to `.venv/bin/` isn't on PATH when invoking `.venv/bin/python` directly (typical CI / subprocess context). Firs...

X Description: Observation Round-8 webhooks-9421 DX agent (PR #205) reported: "`adcp-keygen` shipped to `.venv/bin/` isn't on PATH when invoking `.venv/bin/python` directly (typical CI / subprocess conte...

Opengraph URL: https://github.com/adcontextprotocol/adcp-client-python/issues/217

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"keygen: add generate_signing_keypair() programmatic API alongside adcp-keygen CLI","articleBody":"## Observation\n\nRound-8 webhooks-9421 DX agent (PR #205) reported:\n\n> \"\\`adcp-keygen\\` shipped to \\`.venv/bin/\\` isn't on PATH when invoking \\`.venv/bin/python\\` directly (typical CI / subprocess context). First \\`subprocess.run([\\\"adcp-keygen\\\", ...])\\` raised \\`FileNotFoundError\\`. Worked around with \\`Path(sys.executable).parent / \\\"adcp-keygen\\\"\\`. Suggest either documenting this idiom in the keygen module or shipping \\`generate_signing_keypair()\\` as a programmatic API returning \\`(pem_bytes, public_jwk)\\` so callers don't need to shell out.\"\n\n## Proposal\n\nAdd a programmatic entry point to `src/adcp/signing/keygen.py`:\n\n```python\ndef generate_signing_keypair(\n    *,\n    alg: Literal[\"ed25519\", \"es256\"] = \"ed25519\",\n    kid: str | None = None,\n    purpose: Literal[\"request-signing\", \"webhook-signing\"] = \"request-signing\",\n    passphrase: bytes | None = None,\n) -> tuple[bytes, dict[str, Any]]:\n    \"\"\"Generate a signing keypair. Returns (pem_bytes, public_jwk).\n\n    Programmatic companion to the ``adcp-keygen`` CLI — call this from\n    tests, provisioning scripts, or any non-shell context where spawning\n    a subprocess is wrong.\n\n    Returns:\n        (pem_bytes, public_jwk) tuple. ``pem_bytes`` is the PKCS#8\n        private key (optionally encrypted if ``passphrase`` is set).\n        ``public_jwk`` is the public half, ready to publish at your\n        agent's ``jwks_uri``.\n    \"\"\"\n```\n\nRe-export from `adcp.signing` + top-level `adcp`. Rewrite the CLI's `main()` to call this helper + handle file-writing + stdout printing separately. Zero duplication between CLI and programmatic paths.\n\n## Acceptance\n\n- Unit test: `generate_signing_keypair()` returns a PEM that loads via `load_pem_private_key` and a JWK that `WebhookSender.from_jwk` accepts.\n- Unit test: `purpose=\"webhook-signing\"` produces a JWK with `adcp_use: \"webhook-signing\"`.\n- CLI tests still pass — CLI `main()` now just wraps the helper.\n- Doc example in `src/adcp/signing/__init__.py` showing programmatic + CLI equivalence.\n\n## Priority\n\n4.1 DX polish. Current CLI works; this eliminates subprocess-path ergonomic tax for test harnesses and provisioning code.\n\nRelated: adcontextprotocol/adcp-client-python#205 (round-8 validation)","author":{"url":"https://github.com/bokelley","@type":"Person","name":"bokelley"},"datePublished":"2026-04-20T04:40:13Z","url":"https://github.com/adcontextprotocol/adcp-client-python/issues/217"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f3cf8092-6d03-151e-8f8c-a94829d52d93
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id836C:240CD1:AD1714:DDEBC8:6B00F67E
html-safe-noncea220eb258da03397cc4e2d0e0990c32bfb1ba804a24a833c4a3174e0ed7dc6d9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzZDOjI0MENEMTpBRDE3MTQ6RERFQkM4OjZCMDBGNjdFIiwidmlzaXRvcl9pZCI6IjU0NDY1NDE2ODU5MDk2ODE3OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb9a699d2246c3a5ebeee049329790b1e6af2369b3b3695d13b99296380cc792f
hovercard-subject-tagissue:4293119728
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/adcontextprotocol/adcp-client-python/217/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a638c0a91bf92b38200e2b3da1fbe36c55cbc2b91d7066623425f12707aab654/adcontextprotocol/adcp-client-python/issues/217
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a638c0a91bf92b38200e2b3da1fbe36c55cbc2b91d7066623425f12707aab654/adcontextprotocol/adcp-client-python/issues/217
og:image:altObservation Round-8 webhooks-9421 DX agent (PR #205) reported: "`adcp-keygen` shipped to `.venv/bin/` isn't on PATH when invoking `.venv/bin/python` directly (typical CI / subprocess context). Firs...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebokelley
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/adcontextprotocol/adcp-client-python git https://github.com/adcontextprotocol/adcp-client-python.git
octolytics-dimension-user_id221690821
octolytics-dimension-user_loginadcontextprotocol
octolytics-dimension-repository_id1090305973
octolytics-dimension-repository_nwoadcontextprotocol/adcp-client-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1090305973
octolytics-dimension-repository_network_root_nwoadcontextprotocol/adcp-client-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/adcontextprotocol/adcp-client-python/issues/217#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadcontextprotocol%2Fadcp-client-python%2Fissues%2F217
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadcontextprotocol%2Fadcp-client-python%2Fissues%2F217
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=adcontextprotocol%2Fadcp-client-python
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/217
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/217
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/217
adcontextprotocolhttps://github.com/adcontextprotocol
adcp-client-pythonhttps://github.com/adcontextprotocol/adcp-client-python
Codehttps://github.com/adcontextprotocol/adcp-client-python
Issues44 (44)https://github.com/adcontextprotocol/adcp-client-python/issues
Pull requests13 (13)https://github.com/adcontextprotocol/adcp-client-python/pulls
Actionshttps://github.com/adcontextprotocol/adcp-client-python/actions
Projectshttps://github.com/adcontextprotocol/adcp-client-python/projects
Security and qualityhttps://github.com/adcontextprotocol/adcp-client-python/security
Insightshttps://github.com/adcontextprotocol/adcp-client-python/insights
https://github.com/adcontextprotocol/adcp-client-python
New issuehttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/217
New issuehttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/217
#177https://github.com/adcontextprotocol/adcp-client-python/pull/177
#243https://github.com/adcontextprotocol/adcp-client-python/pull/243
keygen: add generate_signing_keypair() programmatic API alongside adcp-keygen CLIhttps://github.com/adcontextprotocol/adcp-client-python/issues/217#top
#177https://github.com/adcontextprotocol/adcp-client-python/pull/177
#243https://github.com/adcontextprotocol/adcp-client-python/pull/243
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on Apr 20, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/217#issue-4293119728
#205https://github.com/adcontextprotocol/adcp-client-python/pull/205
#205https://github.com/adcontextprotocol/adcp-client-python/pull/205
bokelleyhttps://github.com/bokelley
completedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#243https://github.com/adcontextprotocol/adcp-client-python/pull/243
on Apr 20, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/217#event-24690350011
bokelleyhttps://github.com/bokelley
on Apr 20, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/217#event-24690350020
Merge pull request #243 from adcontextprotocol/bokelley/keygen-progra…https://github.com/adcontextprotocol/adcp-client-python/commit/dd2b9614957d65787868b5effddb2775b74afae9
#243https://github.com/adcontextprotocol/adcp-client-python/pull/243
https://docs.github.com/articles/closing-issues-via-commit-messages
dd2b961https://github.com/adcontextprotocol/adcp-client-python/commit/dd2b9614957d65787868b5effddb2775b74afae9
KonstantinMirinhttps://github.com/KonstantinMirin
on May 13, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/217#event-25486654496
feat(signing): generate_signing_keypair() programmatic API (closes ad…https://github.com/KonstantinMirin/adcp-client-python/commit/c6d5505c8d6025961f0bd9d6af1041102b4bee82
ad…https://github.com/adcontextprotocol/adcp-client-python/issues/217
https://docs.github.com/articles/closing-issues-via-commit-messages
c6d5505https://github.com/KonstantinMirin/adcp-client-python/commit/c6d5505c8d6025961f0bd9d6af1041102b4bee82
Sign up for freehttps://github.com/signup?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/217
Sign in to commenthttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/217
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.