# Yacc rule count, body discarded

> Yacc rule count, body discarded is an MCP server for developer tools. Remote MCP endpoint reporting a Yacc rule count while discarding the grammar body. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **Repository:** https://github.com/sadri-dridi/named-mcp-utilities
- **MCP Registry name:** io.github.sadri-dridi/yacc-ok
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

This is one of many single-purpose endpoints in a repository called Named MCP utilities, where each folder maps to one official registry name. The registry entry for this one is described only as a Yacc rule count with the body discarded, which suggests the grammar text is not kept after the count is produced.

It runs as a remote streamable-http server hosted on a Cloudflare Workers address under an agent-observatory sensor, and no installable package is published. Clients connect by URL. The README does not list tool names, inputs or outputs for this endpoint.

The sibling endpoints in the same repository follow the same pattern of tiny checks that discard the submitted value, and the repository also includes doors that route agents to an advertising service. Treat this as a narrow utility with limited documentation.

## Features

- **Yacc rule counting:** Registry description says it returns a count of rules for Yacc input.
- **Body discarded:** The submitted grammar body is described as discarded rather than retained.
- **Remote streamable-http:** Accessed through a hosted streamable-http MCP URL with no local install.
- **Registry-named endpoint:** Published under its own official registry name, io.github.sadri-dridi/yacc-ok.

## Good for

- Let an agent quickly check how many rules a Yacc grammar contains
- Test remote MCP client connectivity against a minimal endpoint
- Run a lightweight grammar sanity check without storing the source

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http yacc-ok https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/yacc-ok/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/yacc-ok/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "yacc-ok": {
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/yacc-ok/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "yacc-ok": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/yacc-ok/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "yacc-ok": {
      "serverUrl": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/yacc-ok/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "yacc-ok": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/yacc-ok/mcp"
    }
  }
}
```

## FAQ

### How do I connect to it?

Use the streamable-http remote URL listed in the registry entry; there is no installable package.

### Does it keep the grammar I send?

The description says the body is discarded.

### Is it part of a larger project?

Yes, it is one of many endpoints in the sadri-dridi named-mcp-utilities repository.

### How do I add Yacc rule count, body discarded to Claude Code?

Run this command in your terminal: claude mcp add --transport http yacc-ok https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/yacc-ok/mcp

### What are the best alternatives to Yacc rule count, body discarded?

The closest alternatives to Yacc rule count, body discarded are YAML anchor count, body discarded, Word count, text discarded, YAML key count, body discarded, Yards to meters, number discarded and XML tag count, body discarded.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [YAML anchor count, body discarded](https://ai-powered.com/mcp/yaml-anchor-count-body-discarded): YAML anchor count, body discarded is an open-source MCP server for developer tools.
- [Word count, text discarded](https://ai-powered.com/mcp/word-count-text-discarded): Word count, text discarded is an MCP server for developer tools.
- [YAML key count, body discarded](https://ai-powered.com/mcp/yaml-key-count-body-discarded): YAML key count, body discarded is an MCP server for developer tools.
- [Yards to meters, number discarded](https://ai-powered.com/mcp/yards-to-meters-number-discarded): Yards to meters, number discarded is an MCP server for developer tools.
- [XML tag count, body discarded](https://ai-powered.com/mcp/xml-tag-count-body-discarded): XML tag count, body discarded is an MCP server for developer tools.
- [Whitespace word count, text discarded](https://ai-powered.com/mcp/whitespace-word-count-text-discarded): Whitespace word count, text discarded is an MCP server for developer tools.
- [WADL resource count, body discarded](https://ai-powered.com/mcp/wadl-resource-count-body-discarded): WADL resource count, body discarded is an open-source MCP server for developer tools.
- [Unicode word count, text discarded](https://ai-powered.com/mcp/unicode-word-count-text-discarded): Unicode word count, text discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/yacc-rule-count-body-discarded
