Skip to content

Add CreateJwt MCP tool for Dev Proxy jwt create command#122

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-mcp-tool-for-jwt-tokens
Draft

Add CreateJwt MCP tool for Dev Proxy jwt create command#122
Copilot wants to merge 2 commits intomainfrom
copilot/add-mcp-tool-for-jwt-tokens

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

New MCP tool that wraps devproxy jwt create to let LLM clients generate JWT tokens on demand.

Changes

  • src/createJwt.ts — New module executing devproxy jwt create via execFile (not exec) to avoid shell injection from user-supplied args. Supports all CLI parameters: name, issuer, audiences, roles, scopes, claims, validFor, signingKey.
  • src/index.ts — Registers CreateJwt tool with Zod schemas. All parameters optional, matching CLI defaults.

Usage

The tool accepts the same parameters as the CLI:

{
  "name": "Megan Bowen",
  "issuer": "my-app",
  "audiences": ["https://myserver.com"],
  "roles": ["admin"],
  "scopes": ["read", "write"],
  "claims": ["custom:claim"],
  "validFor": 120
}

Array parameters (audiences, roles, scopes, claims) expand to repeated --flag value pairs per the CLI convention.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • learn.microsoft.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Add MCP tool for creating JWT tokens via Dev Proxy Add CreateJwt MCP tool for Dev Proxy jwt create command Apr 27, 2026
Copilot AI requested a review from garrytrinder April 27, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: Add MCP tool for creating JWT tokens via Dev Proxy jwt create command

2 participants