
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@grantex/mpp
Advanced tools
Grantex agent identity and delegation for MPP (Machine Payments Protocol)
Agent identity and delegation for the Machine Payments Protocol (MPP). Lets merchants verify who authorized an AI agent's payment before fulfilling the request.
npm install @grantex/mpp @grantex/sdk
import { Grantex } from '@grantex/sdk';
import { issuePassport } from '@grantex/mpp';
const grantex = new Grantex({ apiKey: process.env.GRANTEX_API_KEY });
const passport = await issuePassport(grantex, {
agentId: 'ag_01HXYZ...',
grantId: 'grnt_01HXYZ...',
allowedMPPCategories: ['inference', 'compute'],
maxTransactionAmount: { amount: 50, currency: 'USDC' },
expiresIn: '24h',
});
import { createMppPassportMiddleware } from '@grantex/mpp';
const middleware = createMppPassportMiddleware({ passport });
const enrichedRequest = await middleware(new Request(url, init));
const response = await fetch(enrichedRequest);
import { verifyPassport, requireAgentPassport } from '@grantex/mpp';
// Standalone
const verified = await verifyPassport(encodedCredential, {
requiredCategories: ['inference'],
maxAmount: 10,
});
// Express middleware
app.use('/api/resource', requireAgentPassport({
requiredCategories: ['inference'],
}));
import { lookupOrgTrust } from '@grantex/mpp';
const record = await lookupOrgTrust('did:web:acme.com');
// { organizationDID, trustLevel, verificationMethod, domains, verifiedAt }
| Code | Description |
|---|---|
PASSPORT_EXPIRED | Passport validUntil has passed |
PASSPORT_REVOKED | StatusList2021 bit is set |
INVALID_SIGNATURE | Ed25519/RS256 signature verification failed |
UNTRUSTED_ISSUER | Issuer DID not in trusted list |
CATEGORY_MISMATCH | Passport categories don't cover required service |
AMOUNT_EXCEEDED | Passport max amount below required threshold |
MISSING_PASSPORT | No X-Grantex-Passport header |
MALFORMED_CREDENTIAL | Invalid base64url or missing VC fields |
Apache-2.0
FAQs
Grantex agent identity and delegation for MPP (Machine Payments Protocol)
We found that @grantex/mpp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.