
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
Angular library for the WebMCP (Web Model Context Protocol) browser API. Expose your Angular application as an AI-agent-ready tool provider using idiomatic Angular patterns.
npm install ng-webmcp
import { bootstrapApplication } from '@angular/platform-browser';
import { provideWebmcp } from 'ng-webmcp';
bootstrapApplication(AppComponent, {
providers: [provideWebmcp({ fallbackBehavior: 'warn' })],
});
import { WebmcpModule } from 'ng-webmcp';
@NgModule({
imports: [WebmcpModule.forRoot({ fallbackBehavior: 'warn' })],
})
export class AppModule {}
import { inject, Injectable } from '@angular/core';
import {
WebmcpService,
WebmcpTool,
registerDecoratedTools,
} from 'ng-webmcp';
@Injectable({ providedIn: 'root' })
export class ProductService {
private webmcp = inject(WebmcpService);
constructor() {
registerDecoratedTools(this, this.webmcp);
}
@WebmcpTool({
name: 'search-products',
description: 'Search the product catalog',
annotations: { readOnlyHint: true, untrustedContentHint: true },
inputSchema: {
query: { type: 'string', description: 'Search term' },
},
})
async search(args: { query: string }) {
const results = await this.api.search(args.query);
return { content: [{ type: 'text', text: JSON.stringify(results) }] };
}
}
import { installWebMcpPolyfill } from 'ng-webmcp/testing';
installWebMcpPolyfill();
Import this before bootstrapping Angular.
annotations supports readOnlyHint, destructiveHint, idempotentHint, openWorldHint, and untrustedContentHint.
From Chrome 149.0.7810.0, set untrustedContentHint: true for tools returning data from untrusted/external sources.
The GitHub Actions release workflow publishes only when the pushed tag exactly matches the library version in projects/ng-webmcp/package.json.
Configure npm Trusted Publisher for this GitHub repository and workflow file before creating the tag. No NPM_TOKEN secret is required.
npm run build:lib
git tag v0.1.0
git push origin v0.1.0
FAQs
Angular library for exposing WebMCP tools from browser applications.
We found that ng-webmcp 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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.