@openagentid/mcp (TypeScript)
OpenAgent middleware for the Model Context Protocol — adds OAS identity, Arsenal capability tokens, and AEGIS authorization to any MCP server in three lines.
Purpose
OpenAgent middleware for the Model Context Protocol — adds OAS identity, Arsenal capability tokens, and AEGIS authorization to any MCP server in three lines.
Read the framework integrations guide.
Source contract
| Field | Value |
|---|---|
| Package | @openagentid/mcp |
| Version | 0.1.1 |
| Language | TypeScript |
| Runtime floor | {'node': '>=20'} |
| Manifest | openagent-sdk/integrations/mcp/typescript/package.json |
| Distribution | Source package; registry publication not verified |
Manifest SHA-256: bab36ae7191a98df2ad143c0a25123c1b8a3a65483e16bd6c9b20ee23efd9241. The recorded Git revision identifies the containing repository; the manifest and entry-point hashes identify this working-tree snapshot.
Integration
Use the package root above from an authorized source checkout. Preserve sibling dependencies and their version/feature requirements. Install the runtime and compile the selected package before using its generated artifacts. The task guide describes configuration, trust boundaries, and error behavior. Test/conformance and deployment packages are supporting tools, not interchangeable production identity providers.
Declared package subpaths
{
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./server": {
"types": "./dist/server.d.ts",
"import": "./dist/server.js",
"require": "./dist/server.cjs"
},
"./client": {
"types": "./dist/client.d.ts",
"import": "./dist/client.js",
"require": "./dist/client.cjs"
},
"./errors": {
"types": "./dist/errors.d.ts",
"import": "./dist/errors.js",
"require": "./dist/errors.cjs"
},
"./skills": {
"types": "./dist/skills.d.ts",
"import": "./dist/skills.js",
"require": "./dist/skills.cjs"
},
"./types": {
"types": "./dist/types.d.ts",
"import": "./dist/types.js",
"require": "./dist/types.cjs"
}
}Exported entry points
The declarations below are extracted from the named entry files. This is a navigable source reference, not compiler-generated documentation of every transitive module. Feature gates and runtime requirements still apply. Private implementation files are not promoted to public APIs merely because they contain a public declaration.
openagent-sdk/integrations/mcp/typescript/src/index.ts
Source SHA-256: 5e5b7a231d0c70ff56167177dbf79163852b505707ca6b8b12eb3afab2f393ba.
export {
withOpenAgent,
ANONYMOUS_IDENTITY,
} from './server.js';
export type { McpServerLike } from './server.js';
export {
withOpenAgentClient,
buildIdentityMeta,
} from './client.js';
export type { McpClientLike, OpenAgentClientConfig } from './client.js';
export {
OpenAgentMcpError,
MissingIdentityError,
IdentityVerificationError,
AuthorizationDeniedError,
SkillsPolicyDeniedError,
McpErrorCode,
} from './errors.js';
export type { McpErrorCodeValue } from './errors.js';
export {
createSkillsPolicy,
combineSkillsPolicies,
InMemorySkillsPolicyStore,
DEFAULT_SKILL_TOOL_NAMES,
} from './skills.js';
export type {
export type {
export { defaultRequireScopes, defaultScopeFormat } from './types.js';